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

Home » Public Forums » archive » NOCLIP in XYOUTS not working with !P.FONT
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
NOCLIP in XYOUTS not working with !P.FONT [message #89675] Wed, 12 November 2014 03:59 Go to next message
Kaushal Sharma is currently offline  Kaushal Sharma
Messages: 12
Registered: August 2013
Junior Member
In my plotting routine, if I am using !P.FONT=2 before the device command. Now when I use XYOUTS for labelling some data points with (NOCLIP=0,/DATA), it is still putting the labels for those points which are out of the plotting frame.
But when I remove !P.FONT=2 at the starting of the programme, NOCLIP works fine. I don't know why NOCLIP is causing problem with !P/FONT.
Re: NOCLIP in XYOUTS not working with !P.FONT [message #89676 is a reply to message #89675] Wed, 12 November 2014 05:28 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Kaushal Sharma writes:

> In my plotting routine, if I am using !P.FONT=2 before the device command. Now when I use XYOUTS for labelling some data points with (NOCLIP=0,/DATA), it is still putting the labels for those points which are out of the plotting frame.
> But when I remove !P.FONT=2 at the starting of the programme, NOCLIP works fine. I don't know why NOCLIP is causing problem with !P/FONT.

I'm not sure what it means to set !P.Font=2, since the only values
officially "accepted" are -1, 0, and 1, but having NOCLIP unrecognized
when using true-type fonts (!P.Font=1) is probably a long-time bug in
IDL. I normally run into this the bug when doing map projections:

http://www.idlcoyote.com/map_tips/noclip.html

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
Re: NOCLIP in XYOUTS not working with !P.FONT [message #89677 is a reply to message #89676] Wed, 12 November 2014 06:43 Go to previous messageGo to next message
Kaushal Sharma is currently offline  Kaushal Sharma
Messages: 12
Registered: August 2013
Junior Member
Hmm.. It is !P.FONT=1 (1 and 2 results in the same font) which is causing problem with XYOUTS.
What are the other fonts available and how can I use them with XYOUTS for labelling without any issues?

On Wednesday, November 12, 2014 6:58:38 PM UTC+5:30, David Fanning wrote:
> Kaushal Sharma writes:
>
>> In my plotting routine, if I am using !P.FONT=2 before the device command. Now when I use XYOUTS for labelling some data points with (NOCLIP=0,/DATA), it is still putting the labels for those points which are out of the plotting frame.
>> But when I remove !P.FONT=2 at the starting of the programme, NOCLIP works fine. I don't know why NOCLIP is causing problem with !P/FONT.
>
> I'm not sure what it means to set !P.Font=2, since the only values
> officially "accepted" are -1, 0, and 1, but having NOCLIP unrecognized
> when using true-type fonts (!P.Font=1) is probably a long-time bug in
> IDL. I normally run into this the bug when doing map projections:
>
> http://www.idlcoyote.com/map_tips/noclip.html
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
> Sepore ma de ni thue. ("Perhaps thou speakest truth.")
Re: NOCLIP in XYOUTS not working with !P.FONT [message #89678 is a reply to message #89677] Wed, 12 November 2014 09:05 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Kaushal Sharma writes:

> Hmm.. It is !P.FONT=1 (1 and 2 results in the same font) which is causing problem with XYOUTS.
> What are the other fonts available and how can I use them with XYOUTS for labelling without any issues?

Fonts without issues!? Not sure there is such a thing. :-)

Hershey fonts (!P.Font=-1) always work. They just don't look so great.

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
Re: NOCLIP in XYOUTS not working with !P.FONT [message #89680 is a reply to message #89678] Wed, 12 November 2014 23:55 Go to previous message
Gordon Farquharson is currently offline  Gordon Farquharson
Messages: 48
Registered: December 2010
Member
Hershey fonts are why I still use IDL. Well, that, and the large body of IDL code I have. I'm not kidding. I do like the Hershey fonts.

Gordon
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: ignoring the strings
Next Topic: Three questions if you can please help

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

Current Time: Wed Oct 08 09:08:05 PDT 2025

Total time taken to generate the page: 0.00746 seconds