Creating a jpeg file from a colored plot [message #78127] |
Wed, 26 October 2011 18:17 |
moxament
Messages: 26 Registered: April 2008
|
Junior Member |
|
|
Hello all,
I have three victors and I want to plot them in a colored plot and
save them as jpeg image. The three vectors are v1, v2, v3.
I did the following:
Device, decomposed = 0
R = [0, 1, 1, 0, 0]
G = [0, 1, 0, 1, 0]
B = [0, 1, 0, 0, 1]
Tvlct, R * 255, G * 255, B * 255
Plot, v1, background = 255, color = 0
Oplot, v2, color = 2
Oplot, v3, color = 3
So, I got a colored plot with three lines, v1, v2, v3. After that, I
wanted to save the plot as jpeg file. Thus, I did the following:
im = tvrd()
Write_jpeg, ‘filename’, im
And the final result was a black and white jpeg image plot with the
black line only (v1). My question is that how can I save the plot as
colored jpeg image with all the plotted vectors.
Your help is appreciated,
MD
|
|
|