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 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: !M in IDL8 [message #82102] Tue, 20 November 2012 14:48 Go to next message
Mark Piper is currently offline  Mark Piper
Messages: 198
Registered: December 2009
Senior Member
On Tuesday, November 20, 2012 2:43:09 PM UTC-7, Jeremy Bailin wrote:
>
> 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.

I think this is a bug (which I'll log). It's worse on Windows, where even the !X isn't honored. This:

IDL> plot, findgen(2), title='!7T!X foo !Mb bar'

behaves correctly in 7.1, but not in 8.X with the Hershey fonts.

mp
Re: !M in IDL8 [message #82104 is a reply to message #82102] Tue, 20 November 2012 13:43 Go to previous messageGo to next 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.
Re: !M in IDL8 [message #82105 is a reply to message #82104] Tue, 20 November 2012 13:11 Go to previous messageGo to next message
Mark Piper is currently offline  Mark Piper
Messages: 198
Registered: December 2009
Senior Member
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
Re: !M in IDL8 [message #82159 is a reply to message #82102] Wed, 21 November 2012 12:22 Go to previous message
Jeremy Bailin is currently offline  Jeremy Bailin
Messages: 618
Registered: April 2008
Senior Member
> I think this is a bug (which I'll log). It's worse on Windows, where even the !X isn't honored. This:
>
> IDL> plot, findgen(2), title='!7T!X foo !Mb bar'
>
> behaves correctly in 7.1, but not in 8.X with the Hershey fonts.
>
> mp

Okay, good to know I'm not crazy! The !X might not literally be a bug
but look like one because of your testing - since !M seems to not
release, it becomes the old font so the !X effectively switches to math
mode. For example, if I run your code in a fresh IDL8 session, "foo" is
correct, but if I run it again then it's wrong.

-Jeremy.
  Switch to threaded view of this topic Create a new topic Submit Reply
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: Wed Oct 08 15:47:26 PDT 2025

Total time taken to generate the page: 0.00658 seconds