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

Home » Public Forums » archive » Re: Problems with using oplot and a for loop
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Problems with using oplot and a for loop [message #76776] Fri, 01 July 2011 12:00
David Fanning is currently offline  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.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Problems with using oplot and a for loop
Next Topic: MORPH_HITORMISS "Don't care" pixels?

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

Current Time: Wed Oct 08 19:50:43 PDT 2025

Total time taken to generate the page: 0.00438 seconds