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

Home » Public Forums » archive » Re: colorbar positioning in postscript
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: colorbar positioning in postscript [message #51334 is a reply to message #51332] Mon, 13 November 2006 06:38 Go to previous message
David Fanning is currently offline  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.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Mac Cursor
Next Topic: Re: Random selection

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

Current Time: Sat Oct 11 03:05:40 PDT 2025

Total time taken to generate the page: 0.24100 seconds