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

Home » Public Forums » archive » Re: Coyote Graphics Raster File Output
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: Coyote Graphics Raster File Output [message #79765] Tue, 03 April 2012 11:53
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Fanning writes:

> To address this problem, I have added a new IM_WIDTH
> keyword to PS_END. With this keyword, you can specify
> the final output width of raster file output created
> with ImageMagick. For example, these commands will
> now result in an output PNG file that is exactly 800
> pixels wide:
>
> PS_Start
> cgHistoplot, cgDemodata(7), /Fill
> PS_End, /PNG, IM_WIDTH=800

Actually, as I discovered when I sat down to write
an article about this, the keyword to PS_END is WIDTH,
not IM_WIDTH. You *do* however, set the default values
for the width of raster output with the IM_WIDTH keyword
to cgWindow_SetDefs and cgControl, as described.

Also, when I was writing the article, I thought it would
be a good idea to an an OUTPUT keyword to cgControl, which
can be used to select the specific kind of output you
desire in exactly the same way you would select output
on a cgPlot command. In other words, the OUTPUT keyword
is now a short hand way to set the Create_PNG, Create_JPEG,
Create_PS, etc. keywords to cgControl.

cgControl, OUTPUT='myplot.png'

This new functionality is here:

http://www.idlcoyote.com/programs/cgcontrol.pro

The article that describes how to set the raster file
width is here:

http://www.idlcoyote.com/cg_tips/rasterdims.php

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Undefined Variable: DC_Write_Fixed/DC_Write_Free - PV WAVE
Next Topic: Re: modify colors in contour plots

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

Current Time: Wed Oct 08 17:08:46 PDT 2025

Total time taken to generate the page: 0.00483 seconds