MathGroup Archive 1999

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

Search the Archive

Re: Re: adjusting frame size in plot

  • To: mathgroup at
  • Subject: [mg20294] Re: [mg20279] Re: adjusting frame size in plot
  • From: "David Park" <djmp at>
  • Date: Tue, 12 Oct 1999 03:39:31 -0400
  • Sender: owner-wri-mathgroup at

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

>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
>          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?
>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

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