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

Home » Public Forums » archive » Creating a jpeg file from a colored plot
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
Creating a jpeg file from a colored plot [message #78127] Wed, 26 October 2011 18:17
moxament is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: expanded area is shown when trying to plot an image on a map
Next Topic: Re: Creating a jpeg file from a colored plot

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

Current Time: Wed Oct 08 11:45:46 PDT 2025

Total time taken to generate the page: 0.00570 seconds