Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
NOCLIP in XYOUTS not working with !P.FONT
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
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.")
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.")
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.")
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