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 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: wrong bounding box [message #20076] Thu, 18 May 2000 00:00
Kenneth P. Bowman is currently offline  Kenneth P. Bowman
Messages: 585
Registered: May 2000
Senior Member
In article <8fvole$s5d$1@nnrp1.deja.com>, Andrew <noymer@my-deja.com>
wrote:

Here's a workaround: Save the file as PS instead of EPS. Run it
through Adobe Acrobat Distiller to make a PDF file. You can open the
PDF file in Illustrator and save it in Illustrator or EPS format.

Ken
Re: wrong bounding box [message #20080 is a reply to message #20076] Thu, 18 May 2000 00:00 Go to previous message
noymer is currently offline  noymer
Messages: 65
Registered: June 1999
Member
In article <MPG.138c4aba88e8cc85989b29@news.frii.com>,
davidf@dfanning.com (David Fanning) wrote:

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

Well it seemed like a good idea at the time. :-)

Andrew
noymer@my-deja.com


Sent via Deja.com http://www.deja.com/
Before you buy.
Re: wrong bounding box [message #20081 is a reply to message #20076] Wed, 17 May 2000 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Ken Bowman (k-bowman@null.tamu.edu) writes:

> There is definitely something wrong with the way the bounding box is
> set when encapsulation is turned on. All my axis labels on the left-most
> plots disappear when I turn encapsulation on. Opening the file in
> Illustrator shows that the bounding box is the problem.
>
> I'm using P.MULTI. I'd rather not have to duplicate that function to
> position my plots when I turn encapsulation on.

Possibly. But I have hundreds of encapsulated PostScript
files in my book and not a one of them has the annotation
cut off. I'll see what I can find out.

You could set the outside margin with !P.Multi to give
yourself more room for the plots (!X.OMargin). Remember
that these units are character units. And save the defaults
or they are *very* hard to guess. :-)

Cheers,

David

--
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
Re: wrong bounding box [message #20084 is a reply to message #20081] Wed, 17 May 2000 00:00 Go to previous message
K. Bowman is currently offline  K. Bowman
Messages: 330
Registered: May 2000
Senior Member
In article <MPG.138c4aba88e8cc85989b29@news.frii.com>, David Fanning <davidf@dfanning.com> wrote:

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

David,

There is definitely something wrong with the way the bounding box is
set when encapsulation is turned on. All my axis labels on the left-most
plots disappear when I turn encapsulation on. Opening the file in
Illustrator shows that the bounding box is the problem.

I'm using P.MULTI. I'd rather not have to duplicate that function to
position my plots when I turn encapsulation on.

Ken
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
  Switch to threaded view of this topic Create a new topic Submit Reply
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 13:33:32 PDT 2025

Total time taken to generate the page: 0.00482 seconds