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

Home » Public Forums » archive » Plotting a horizontal line over a cgImage
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: Plotting a horizontal line over a cgImage [message #93654 is a reply to message #93582] Thu, 22 September 2016 14:08 Go to previous messageGo to previous message
Jeremy Bailin is currently offline  Jeremy Bailin
Messages: 618
Registered: April 2008
Senior Member
On Monday, August 29, 2016 at 11:03:11 AM UTC-5, Christina Haig wrote:
> This question probably has a very specific audience, but anyone who might be able to help me I would greatly appreciate.
>
> Here is a good example of a cgimage plot, somewhat complex, but nothing untoward:
>
> p = pos[*,0]
> cgimage,data1,/DEVICE,/SCALE,/AXES,position=[p[0],p[1],p[2], p[3]],$
> xrange=[mint,maxt],yrange=[minp,maxp],charsize=3,$
> AXKEYWORDS={xtickformat:'(A1)',ylog:1,yticks:2,$
> ytickname:['10!e0','10!e1','10!e2']},/noerase
>
> As you can see, the yrange goes roughly from 1 to 100ish. I would like to plot a horizontal line at 2 that references the axes set in the cgimage command, and at the position of the same (there are 12 total plots in my output). Now oplot obviously does not allow the position command. So I attempted to cleverly use the cgplot command to overplot the line.
>
> cgplot,[mint,maxt],[2.0,2.0],thick=4,line=5,color=255,$
> position=[p[0],p[1],p[2],p[3]],/overplot
>
> However nothing shows up in my plot. Can anyone advise me how I might solve this problem?
>
> Thanks,
> Christina

Are minp and maxp what you think they are?

-Jeremy.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Need e-book of Image Analysis, Classification and Change Detection in Remote Sensing: With Algorithms for ENVI/IDL and Python by Mort Canty
Next Topic: Convert MJD date range to number of days elapsed in IDL

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

Current Time: Wed Oct 08 17:56:26 PDT 2025

Total time taken to generate the page: 0.00501 seconds