Re: How to make GIF file? [message #4546 is a reply to message #4543] |
Fri, 09 June 1995 00:00  |
Robert.M.Candey
Messages: 23 Registered: June 1995
|
Junior Member |
|
|
In article <3ra31t$j08@hecate.umd.edu>, bleau@UMDSP.UMD.EDU wrote:
> Hi. I running IDL V3.6.1 and have a question about plotting. First, let me
> describe what I'm trying to do overall, in case anyone has a better suggestion
> on how to do it.
>
> I want to create a GIF file to put on my system and have it served over
the WWW
> to other sites. This GIF file is a fairly simple plot, with X- and Y-axis, a
> bunch of points, and lines connecting them. The raw data for this is an Ascii
> file with columns of floating point numbers.
> . . .
>
> Larry Bleau
> University of Maryland
> bleau@umdsp.umd.edu
> 301-405-6223
This is off the top of my head but should be close. I guess we need to add this to the IDL FAQ.
set_plot,'Z' ; plot to Z so IDL can be used in batch mode
device,z_buffer=0,set_resolution=[400,300] ; size of GIF image
loadct,13 ; or whatever color palette, Z device defaults to 256 colors
plot, . . . ; whatever plot and xyout commands
tvlct, r,g,b, /get ; get colortable actually used
image = tvrd() ; get bitmap from Z device
write_gif, 'file.gif', image, r,g,b
If you transfer the GIF image to a Macintosh, use Fetch and set its Suffix Mapping Custom option to assign the filetype 'GIFf' and use binary transfer.
--
Robert.M.Candey@gsfc.nasa.gov
NASA Goddard Space Flight Center, Code 632
Greenbelt, MD 20771 USA 1-301-286-6707
|
|
|