| Re: multiple sign in postscript output in direct graphics [message #85733 is a reply to message #85723] |
Thu, 29 August 2013 10:52   |
chris_torrence@NOSPAM
Messages: 528 Registered: March 2007
|
Senior Member |
|
|
Okay, I tracked this down. It looks like if you use hardware/device fonts (!p.font = 0) then IDL automatically replaces any mathematical "x" characters with bullets.
For example:
set_plot,'ps'
!p.font = 0
plot, [0,1], [4.1e-8, 4.2e-8], /ystyle , title='xx!Mx'
device,/close
Why it does this, I have no idea, but it has been that way since at least 1992. If you use Hershey vector or Truetype fonts then you get the correct "x" symbol.
Now, I can go ahead and fix this so that for scientific notation on the axis tick marks it uses the "x" for all fonts. I don't want to fix the other issue with "!Mx" because people might actually be expecting these to be bullet characters.
Is anyone going to freak out if I replace the bullet characters on axis tick labels with "x" characters? Note that this behavior won't affect custom tick labels - only IDL generated labels. If you have custom tick labels that happen to have !Mx characters you will still get bullets, as you (presumably) expect.
-Chris
ExelisVIS
|
|
|
|