[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Easy way to make hard copies at full printer resolution



In article <m3yafgd5ze.fsf@c34680-a.grlnd1.tx.home.com>,
  David Fenyes <dfenyes@flash.net> wrote:
> >>>>> "Kristian" == Kristian Kjær <Kristian.Kjaer@Risoe.DK> writes:
>
>     Kristian>  Ideally I'd like to sit and type into the IDL command
>     Kristian> prompt, using native IDL commands and my own (wrapper,
>     Kristian> mainly) routines and, when a useful plot resulted on the
>     Kristian> screen, make a hard copy of it without any extra
>     Kristian> trouble.
>
> Why wouldn't setting the device to 'ps', doing your plot to a temp
> file, then shelling a 'gs' or 'gv' command work?  Your button could
> just lpr the temp file.
>
> Or, if you have to have the window in an IDL canvas, plot to 'ps',
> execute 'gs' with your screen resolution and output to a TIFF, then
> read the temp file and TV to your display.
>
> Alternatively, why can't you write plot wrappers that plot to the
> screen, and save the command to a temp string, then 'print screen'
> could set device to 'ps', execute the temp string, and print the temp
> file.
>
> Probably one of these could be done with simple wrappers and good
> display quality both in IDL and your printer.
>
> Regards,
>
> David.
> --
> David Fenyes  --  dfenyes@home.com
>

I have a routine that does that, but was built for in-house use and is
thously fairly rough (see my previous post).

Since then Prof. David Klassen has offered space on his web page
for this routine.  So I am currently cleaning it up (actually
re-writing, since it is so much fun) and hope to have a beta
version ready in two weeks. (It will be command driven, not yet
widgeted).

It will most probably not produce the type of plots that you may
want.  But I am trying to write it in a way that makes it easily
extendable -- meaning no need to get into the routine and add code
(that was the problem with the old version, it was growing like
the Thing), but
write objects that follow certain definitions, and then call the routine
with keywords, again that follow certain definitions.

So, stay tuned.  I work on this at 5:30 in the mornings (mostly) for
an hour or so, so it is taking time.

Mirko


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.