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

Home » Public Forums » archive » Re: Coyote Graphics Pixmap is Available
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 Pixmap is Available [message #79157] Tue, 07 February 2012 13:00
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Fanning writes:

> Commands, of course, can be loaded like this, too:
>
> pixmap = cgPixmap()
> cgPlot, cgDemoData(1), /Window
> cgPlot, cgDemoData(1), PSym=2, Color="red", /Overplot
> window
> pixmap -> Copy
> pixmap -> Output, 'test.png'

Whoops! Needed a /AddCmd on that 2nd cgPlot command, of course!

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.")
Re: Coyote Graphics Pixmap is Available [message #79158 is a reply to message #79157] Tue, 07 February 2012 12:59 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Fanning writes:

> You can add commands to the pixmap window, for example, like this:
>
> data = cgDemoData(17)
> pixmap = cgPixmap('cgPlot', data, COLOR='red')
> pixmap = cgPixmap('cgPlot', data, PSYM=2, /Overplot, $
> COLOR='dodger blue', /AddCmd)
> pixmap = cgPixmap('cgPlot', cgDemoData(17), color='olive', $
> Linestyle = 2, /Overplot, /AddCmd)
> pixmap = cgPixmap(/ListCmd)
> pixmap = cgPixmap('cgPlot', data, COLOR='purple', $
> /ReplaceCMD, CMDINDEX=0)

Commands, of course, can be loaded like this, too:

pixmap = cgPixmap()
cgPlot, cgDemoData(1), /Window
cgPlot, cgDemoData(1), PSym=2, Color="red", /Overplot
window
pixmap -> Copy
pixmap -> Output, 'test.png'

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: Coyote Graphics Pixmap is Available
Next Topic: Re: how to hide a tab... ?

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

Current Time: Sat Oct 11 12:48:00 PDT 2025

Total time taken to generate the page: 0.07875 seconds