Hi Sullivan,
One thing about the new function graphics in IDL is that there it a lot of automation with re-scaling your graphs. If the data in your data space changes, then IDL automatically re-scales the graph to fit the data. You can avoid this by specifying the range parameters like XRANGE AND YRANGE. Here is an example code which you can step through to see how min_value works compared to YRANGE. Save this as a .pro file called overplot_example_honor.pro and then run the program. There are some lines which will stop the execution so that you can step through and see the changes that each plot make. Hope this helps!
pro overplot_example_honor
ireset, /no_prompt
a = findgen(10)*0.01+0.3
b = findgen(10)*0.01+0.2
c = findgen(10)*0.01+0.25
p1 = plot(a, color = 'red', yrange = [min([a,b]), max([a,b])])
p2 = plot(b, color = 'blue',/overplot)
stop
p3 = plot(c, color = 'green',/overplot)
stop
p3.min_value=.3
end
|