NOCLIP in XYOUTS not working with !P.FONT [message #89675] |
Wed, 12 November 2014 03:59  |
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   |
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   |
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.")
|
|
|
|
|