| Re: !M in IDL8 [message #82104 is a reply to message #82102] |
Tue, 20 November 2012 13:43   |
Jeremy Bailin
Messages: 618 Registered: April 2008
|
Senior Member |
|
|
On 11/20/12 4:11 PM, Mark Piper wrote:
> On Tuesday, November 20, 2012 12:31:38 PM UTC-7, Jeremy Bailin wrote:
>> Did the meaning of !M as an embedded formatting command change in IDL8??
>>
>> I am running some code that generates plots that worked perfectly in
>>
>> IDL7, but when I run it in IDL8 the entire text after the !M stays in
>>
>> math mode, rather than reverting to the previous font after one
>>
>> character. The online docs seem ambiguous - on
>>
>> http://www.exelisvis.com/docs/Embedded_Formatting_Comm.html it is listed
>>
>> both as "Switch to the math/symbol font for one character, then switch
>>
>> back." under Positioning Commands, and identical to !9 in Changing Fonts
>>
>> within a String.
>>
>>
>>
>> This is going to be a real pain for any code I have that generates plots
>>
>> in units of solar masses if that's "expected behaviour".
>>
>>
>>
>> IDL> print, !version
>>
>> { x86_64 darwin unix Mac OS X 8.2.1 Aug 20 2012 64 64}
>>
>>
>>
>>
>>
>> -Jeremy.
>
> Hi Jeremy,
>
> I can't find any recent changes to !M. Can you give me more info? This:
>
> IDL> plot, findgen(2), title='foo !Mb bar'
>
> gives me the "greater than or equal to" sign (Windows and Linux) between the foo and the bar.
>
> mp
>
Trying to recreate it, I've discovered that it only occurs if there is a
font change earlier in the string.
IDL> plot, findgen(2), title='!7T!X [M!D!Mn!N/yr]'
-Jeremy.
|
|
|
|