Re: colorbar positioning in postscript [message #51334 is a reply to message #51332] |
Mon, 13 November 2006 06:38  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Jess writes:
> I am using David Fannings colorbar routine to place a colorbar on the
> RHS of my image which I want to write to postscript. Positioning both
> image and colorbar in normalised coords (using tvimage for the image).
> Thanks David for the great routines tvimage and colorbar. When writing
> to PS device, I am scaling the positions from normalised coords to the
> size of the PS image, but this is causing a call to axis in colorbar
> to crash with:
>
> % AXIS: Data coordinate system not established.
> % Error occurred at: COLORBAR 353
> /usr/local/rsi/add-ons/fanning/colorbar.pro
>
> Can someone point out where I went wrong?
I think you went wrong when you thought you needed
to do something different for PostScript. Both of
those routines were written expressly so that you
do NOT have to do anything different to get them
to work in PostScript.
I simply make my PostScript "window" the right size,
and just call the same routine that places the graphics
in the display window. If graphics are placed with
normalized or data coordinates, they should show up
in the same locations in both windows.
Have you tried this simpler approach?
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|