comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: !M in IDL8
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: !M in IDL8 [message #82104 is a reply to message #82102] Tue, 20 November 2012 13:43 Go to previous messageGo to previous message
Jeremy Bailin is currently offline  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.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: picking an option with radio buttons
Next Topic: Re: IDLDoc question on properties and fields

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Tue Dec 02 07:36:58 PST 2025

Total time taken to generate the page: 0.24460 seconds