X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 18 Jul 2011 09:54 AM by  anon
Multicolor Line in the same plot
 0 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
18 Jul 2011 09:54 AM
    Hi all, I would like to plot a 3D array using different colors,at the moment I am still tryng in 2D to obtain what I am thinking with a code like this: for j=0, 100 do begin z=[0.00, 3.0, 6.0, 9.0, 12.0] x=z*sin(i)*0.1 y=z*cos(i)*0.1 plot, /NOERASE, z[0:2], x[0:2], xrange=[0,14], yrange=[-1,1], color=red plot, z[2:4], x[2:4], xrange=[0,14], yrange=[-1,1], color=blu wait, 0.1 endfor But I doesn't work as I hope, it just draws the second part of the vector... Thanks in advance for your suggestions Ciao EDIT: I solved: simply insert the /NOERASE in the second plot command, I don't delete the post maybe it can be usefull to someone else...
    You are not authorized to post a reply.