Christina Haig
2016-08-29 16:03:09 UTC
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
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