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

Home » Public Forums » archive » Re: Problem in creating Postscript of "Transparent Histograms"
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: Problem in creating Postscript of "Transparent Histograms" [message #76541 is a reply to message #76539] Thu, 16 June 2011 09:47 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Poonam Chandra writes:

> I am creating transparent histogram plots using Coyote's tutorial
> ( http://www.idlcoyote.com/graphics_tips/overlaphisto.html ). It works
> fine but when I try to create it in Coyote's resizable window, the
> command cgSnapshot fails.

cgSnapshot fails because cgWindow is "protecting" itself
against unwanted intrusion. To take a snapshot of a cgWindow,
you need to get the window ID and use it like this:

cgPlot, cgDemoData(1), /Window
wid = cgQuery(/Current)
snap = cgSnapShot(/PNG, WID=wid)

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thue. ("Perhaps thos speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: MORPH_HITORMISS "Don't care" pixels?
Next Topic: Faster image median filtering

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

Current Time: Wed Oct 08 19:47:45 PDT 2025

Total time taken to generate the page: 0.00429 seconds