Re: colour + nice fonts [message #43965] |
Mon, 09 May 2005 08:53 |
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  |
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  |
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 :-(
>
|
|
|