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

Home » Public Forums » archive » Re: How to make GIF file?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: How to make GIF file? [message #4546 is a reply to message #4543] Fri, 09 June 1995 00:00 Go to previous message
Robert.M.Candey is currently offline  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
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: IDL and supercomputing
Next Topic: Looking for time_test benchmark results

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

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

Total time taken to generate the page: 0.00358 seconds