Multiple plots in one figure [message #68313] |
Sun, 11 October 2009 20:48 |
Nicki
Messages: 14 Registered: September 2009
|
Junior Member |
|
|
Hello there.
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??
|
|
|