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

Home » Public Forums » archive » write_jpeg and TVRD()
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
write_jpeg and TVRD() [message #31352] Sat, 29 June 2002 14:35 Go to next message
r_cherukuru3 is currently offline  r_cherukuru3
Messages: 5
Registered: May 2002
Junior Member
Hi!

I had generated a colourful plot and i had been trying to save this
by writing it into a jpg file using write_jpeg, but somehow i could
only save a grey scale plot!!!

My program looks something like this::

plot,x

oplot,y,color=10000
oplot,z,color=100000

write_jpeg,'myplot.jpg',tvrd()

Can anyone tell me, what is the missing part in my line which may help
me in saving my plot with colors?

thanks in advance
RC
Re: write_jpeg and TVRD() [message #31420 is a reply to message #31352] Thu, 04 July 2002 16:01 Go to previous message
nobody is currently offline  nobody
Messages: 12
Registered: September 1995
Junior Member
try using True=1 when you do these commands, like:

img=tvrd(True=1)
write_jpeg, 'img.jpg',img, True=1

On 29 Jun 2002 14:35:31 -0700, rc <r_cherukuru3@yahoo.co.uk> wrote:
> Hi!
>
> I had generated a colourful plot and i had been trying to save this
> by writing it into a jpg file using write_jpeg, but somehow i could
> only save a grey scale plot!!!
>
> My program looks something like this::
>
> plot,x
>
> oplot,y,color=10000
> oplot,z,color=100000
>
> write_jpeg,'myplot.jpg',tvrd()
>
> Can anyone tell me, what is the missing part in my line which may help
> me in saving my plot with colors?
>
> thanks in advance
> RC


--
Steve S.

tired of spam at no dot real dot address dot com
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: sorting array column/rowwise
Next Topic: Eigenvalue problem

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

Current Time: Wed Oct 08 13:42:27 PDT 2025

Total time taken to generate the page: 0.00564 seconds