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

Home » Public Forums » archive » Re: colour + nice fonts
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
Re: colour + nice fonts [message #43965] Mon, 09 May 2005 08:53
Paolo Grigis is currently offline  Paolo Grigis
Messages: 171
Registered: December 2003
Senior Member
Margrethe wrote:
> hello!
>
> I'm trying to create a nice-looking colour plot as jpg for my
> presentation.
> Following various advice, I first make the plot twice as big as I want
> it and thereafter use tvrd and tvimage to display it half the original
> size so that the plotting symbols, numbers and characters appear nice
> and smooth. But the color information is lost! Any idea how I can
> solve this?

Since the jpg format is not the best one for plots anyway, I would
suggest to use the eps format if your presentation software can handle
it. (powerpoint is surprisingly good with eps figures!).

Paolo


> Help is very much appreciated!
>
> set_plot,'x'
> window,xsize=1200,ysize=1200
> !p.font=1
> device,set_font='Helvetica',/TT_font
>
> [plotting...]
>
> im=tvrd( )
> window,1,xsize=600,ysize=600
> tvimage,rebin(im,600,600) <---- greyscale :-(
>
Re: colour + nice fonts [message #43966 is a reply to message #43965] Mon, 09 May 2005 07:41 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Margrethe writes:

> I'm trying to create a nice-looking colour plot as jpg for my
> presentation.
> Following various advice, I first make the plot twice as big as I want
> it and thereafter use tvrd and tvimage to display it half the original
> size so that the plotting symbols, numbers and characters appear nice
> and smooth. But the color information is lost! Any idea how I can
> solve this?
> Help is very much appreciated!
>
> set_plot,'x'
> window,xsize=1200,ysize=1200
> !p.font=1
> device,set_font='Helvetica',/TT_font
>
> [plotting...]
>
> im=tvrd( )
> window,1,xsize=600,ysize=600
> tvimage,rebin(im,600,600) <---- greyscale :-(

Wrong TVRD. Try TVREAD:

http://www.dfanning.com/programs/tvread.pro

Or, use that TRUE keyword. :-)

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Re: colour + nice fonts [message #43967 is a reply to message #43966] Mon, 09 May 2005 07:38 Go to previous message
maarten is currently offline  maarten
Messages: 30
Registered: April 2002
Member
You should set the true keyword in tvrd, to specify that you are reading
colours.
For example: im = tvrd(true=1) should do the trick.

cheers maarten



Margrethe wrote:
> hello!
>
> I'm trying to create a nice-looking colour plot as jpg for my
> presentation.
> Following various advice, I first make the plot twice as big as I want
> it and thereafter use tvrd and tvimage to display it half the original
> size so that the plotting symbols, numbers and characters appear nice
> and smooth. But the color information is lost! Any idea how I can
> solve this?
> Help is very much appreciated!
>
> set_plot,'x'
> window,xsize=1200,ysize=1200
> !p.font=1
> device,set_font='Helvetica',/TT_font
>
> [plotting...]
>
> im=tvrd( )
> window,1,xsize=600,ysize=600
> tvimage,rebin(im,600,600) <---- greyscale :-(
>
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: colour + nice fonts
Next Topic: map MODIS HDF data to Mercator conformal projection

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

Current Time: Wed Oct 08 17:11:32 PDT 2025

Total time taken to generate the page: 0.00712 seconds