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

Home » Public Forums » archive » Re: Multiple plots in one figure
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: Multiple plots in one figure [message #68312 is a reply to message #68311] Sun, 11 October 2009 21:01 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Nicki writes:

> I just recently started to use IDL. I'm now having the following
> problem... i need to get one figure with multiple plots in it. I
> already know how to do this, but just in a really complicated way...
>
> say, i have the following equation: y=mx+a
>
> and for m=1 my a is 1
>
> and for m=10 my a is 2
> and let's get a third plot, let's say for m=5 and and for that case
> the a is equal to 4
> or something like that... and now i want to have one figure with the 3
> plots in it...
>
> so far i have done it like this:
>
> m1=1
> a1=1
>
> m2=10
> a2=2
>
> blaaa and then y1=m1*x+a1 and so on and then plot, overplot etc..... I
> know this is faar too complicated and there should be something far
> simpler starting with
>
> m=[1,5,10]
> a=[1,4,2] or so...
>
>
> i tried to read it up but i don't get it... something with 'if... do
> begin... else...' isn't it?! :) You see i have no idea...
>
> Can somebody help me out??

You are doing it the right way. At least, I *think* you are. :-)

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Browse for Cloud-Free MODIS Images
Next Topic: Re: Browse for Cloud-Free MODIS Images

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

Current Time: Wed Oct 08 19:31:33 PDT 2025

Total time taken to generate the page: 0.00395 seconds