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

Home » Public Forums » archive » Re: wrong bounding box
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: wrong bounding box [message #20099 is a reply to message #20081] Wed, 17 May 2000 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Andrew (noymer@my-deja.com) writes:

> I have another question re: EPS files.
>
> DEVICE, XSize=10, YSize=8, /ENCAPSULATED, $
> Filename='foo.eps'
>
> The bounding box is usually right on. But when I have
> a second Y axis, the BB is too far to the left, i.e.
> the rightmost y-axis-labels are clipped.
>
> Easily fixed: modify the BB by hand. It's the second
> line of the EPS file, which is just an ASCII text file.
>
> But: why is this??? How hard can it be to calculate a
> frigging bounding box?
>
> And: can I use the xoffset keyword? Man page says this
> does not work for /ENCAPSULATED.

Because I am thinking about things domestic this week,
I offer a home decorating quiz:

You bought a brand new dining room table from the
expensive shop on the corner. When you get it home
you find it doesn't fit in the dining room. Should you:

A. Take out the exterior wall and build an addition
to accommodate the table.

B. Lop off enough of the table with your chain saw
to make it fit.

C. Take the table back to the store and exchange it
for a smaller one.

Well?

I'm guessing your would answer A. IDL certainly would answer
B. But I am sure God's answer would be C, and is the reason
she invented the Position keyword for the Plot command. :-)

Cheers,

David

P.S. From my book:

curve = LoadData(1)
Plot, curve, YStyle=8, YTitle='Solid Line', $
Position=[0.15, 0.15, 0.85, 0.95]
Axis, YAxis=1, YRange=[0,Max(curve)*5)], /Save, $
YTitle='Dashed Line'
OPlot, curve*5, LineStyle=2

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL5.2.1: Filling Contours on a Map Background
Next Topic: Re: Creating directories ?

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

Current Time: Wed Oct 08 15:21:21 PDT 2025

Total time taken to generate the page: 0.00459 seconds