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

Home » Public Forums » archive » Resizeable Graphics Windows for Traditional Commands
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: Resizeable Graphics window [message #75205 is a reply to message #75113] Thu, 17 February 2011 12:24 Go to previous messageGo to previous message
Jeremy Bailin is currently offline  Jeremy Bailin
Messages: 618
Registered: April 2008
Senior Member
> I would turn "execution" of the commands off until
> you were finished loading the commands:
>
> cgplot,indgen(100),/window,psym=2
> cgControl, EXECUTE=0
> for i=0,89 do cgplots,[i,i],[i-1,i+1],/addcmd
> cgControl, EXECUTE=1

Ah yes, that's clearly a better option. :-)= Lots of nice little tricks within CG still to learn...

Speaking of which, I've got another odd issue with the aspect ratio of output. If I output a postscript file, I get the wrong aspect ratio, but if I out a .png file via ImageMagick, I get the right aspect ratio. Even weirder is that if I set ps_delete=0, the intermediate postscript file has the *right* aspect ratio. I've looked at the code in both sections, and I can't see any difference that could account for it... and if I try to manually run the commands that create the ImageMagicked .png file, I get the wrong aspect ratio!

So I'm befuddled. :-)=

{ x86_64 darwin unix Mac OS X 7.0.4 Sep 3 2008 64 64}

-Jeremy.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL Book is Finished!
Next Topic: Re: Code optimization

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

Current Time: Sat Nov 29 06:18:14 PST 2025

Total time taken to generate the page: 0.79682 seconds