Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1999
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1999

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Re: adjusting frame size in plot

  • To: mathgroup at smc.vnet.net
  • Subject: [mg20295] Re: [mg20279] Re: adjusting frame size in plot
  • From: Martin Heimann <martin.heimann at bgc-jena.mpg.de>
  • Date: Tue, 12 Oct 1999 03:39:32 -0400
  • Sender: owner-wri-mathgroup at wolfram.com

Thanks for the suggestion! But if I want to make a stacked plot of, say
7 different quantities over the same (e.g. time) axis I would still
have to figure out by serious trial and error of how to adjust the plot
region of each diagram. And I'd have to go through this trial and error
process each time I obtain a new dataset... I claim that it is
(unfortunately) much faster to export the data tables and make the
graph in a serious scientific graphics program.

Martin Heimann

David Park wrote:

> Well, one way to handle this is to use PlotRegion. It does involve some trial and
> error, but not much. Just leave some blank space to account for the shorter axes
> labels in the upper plot. You don't have to export the data to another program.
>
> Show[GraphicsArray[{{Plot[Sin[x], {x, 0, 2 Pi},
> DisplayFunction -> Identity, PlotRegion -> {{0.07, 1}, {0, 1}}]}, {Plot[
>           10000 Sin[x], {x, 0, 2Pi},
> DisplayFunction -> Identity]}}],
> DisplayFunction -> $DisplayFunction]
>
> But Mathematica is still confusing in that image size refers to the overall plot
> dimensions with all the labels and it is not easy to calculate the space taken up by
> the labels in advance. Mathematica gets really bad with long thin plots. But the
> PlotRegion option is usually the way to fix things up.
>
> David Park
> djmp at earthlink.net
> http://home.earthlink.net/~djmp/
>
> >Dear colleagues,
> >
> >can I reiterate Scot's question? This is an old shortcoming of
> >Mathematica und I'm not aware if it has been corrected in Version 4. Look
> >at the simple case of two stacked diagrams:
> >
> >Show[GraphicsArray[{{Plot[Sin[x], {x, 0, 2 Pi},
> >          DisplayFunction -> Identity]}, {Plot[10000 Sin[x], {x, 0, 2
> >Pi},
> >          DisplayFunction -> Identity]}}],
> >  DisplayFunction -> $DisplayFunction]
> >
> >The fact that one cannot stack different plots over the same x-axis
> >without trial and error is a serious shortcoming of Mathematica. Any
> >decent scientific graphics package can do this! It effectively means that
> >one has to export the data to annother graphics package... I hope that
> >somebody from WRI can comment on this. Is there a workaround? or at least
> >something in the pipeline for the next upgrade of Mathematica?
> >
> >Cheers,
> >Martin Heimann
> >
> >Scot wrote:
> >
> >> I have 2 near-identical plots, one with a range from 0 to 100 and the
> >> other with a range from 0 to 20.  As the tick label 100 is longer than
> >> 20, the corresponding graph has a smaller frame.
> >>
> >> How can I force the two graphs to have the same frame size using
> >> Mathematica 3.0?
> >
> >--
> >----------------------------------------------------------------
> >Max-Planck-Institut fuer Biogeochemie
> >Postfach 100164, D-07701 Jena, Germany
> >(Street Address: Tatzendpromenade 1a)
> >
> >Tel. Office:  +49-3641-64-3773/3701
> >Tel. Mobile:  +49-170-6307299
> >Fax. :  +49-3641-64-3789/3710
> >Email: martin.heimann at bgc-jena.mpg.de
> >
> >
> >
> >

--
----------------------------------------------------------------
Max-Planck-Institut fuer Biogeochemie
Postfach 100164, D-07701 Jena, Germany
(Street Address: Tatzendpromenade 1a)

Tel. Office:  +49-3641-64-3773/3701
Tel. Mobile:  +49-170-6307299
Fax. :  +49-3641-64-3789/3710
Email: martin.heimann at bgc-jena.mpg.de




  • Prev by Date: FW: Re: adjusting frame size in plot
  • Next by Date: Re: adjusting frame size in plot
  • Previous by thread: FW: Re: adjusting frame size in plot
  • Next by thread: Re: adjusting frame size in plot