Re: Problems with using oplot and a for loop [message #76776] |
Fri, 01 July 2011 12:00 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Alexa writes:
> I'm am trying to plot a theoretical curve on top of my data. The
> theoretical curve is being read into the program correctly but when I
> use the oplot command the theoretical curve does not show up on the
> plot. I think it has to do with the fact that I'm using a separate for
> loop to read in the curve array but I don't know what else I should
> do.
I think it is more likely that the data range you set up
with your PLOT command (I don't see it here, by the way)
is such that the curve you are trying to overplot is outside
that range, and so doesn't show up on the plot.
I would check the data range of your PLOT (!Y.CRANGE,
for example) after you create the plot, and then compare
that with the range of your theoretical curve.
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thue. ("Perhaps thos speakest truth.")
|
|
|