|
|
Re: wrong bounding box [message #20081 is a reply to message #20076] |
Wed, 17 May 2000 00:00  |
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  |
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  |
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
|
|
|