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

FW: Re: adjusting frame size in plot

  • To: mathgroup at smc.vnet.net
  • Subject: [mg20290] FW: [mg20279] Re: adjusting frame size in plot
  • From: "Ersek, Ted R" <ErsekTR at navair.navy.mil>
  • Date: Tue, 12 Oct 1999 03:39:29 -0400
  • Sender: owner-wri-mathgroup at wolfram.com

Martin Heimann responded to an earlier question with:
--------------------------------------
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. 

--------------------------------

If 4.0 has a nice solution to this problem I am not aware of it.  The most
convenient work around I can think of it to manually force the use of a
longer string for one of the tick marks on the vertical axis.  I do this
below by using 
"    1"  as a tick mark on the vertical axis.


Show[GraphicsArray[{
{Plot[Sin[x],{x, 0, 2 Pi}, 
  DisplayFunction -> Identity, 
  Ticks -> {Automatic, {{1, "    1"}, {0.5,0.5},{-0.5,-0.5},{-1,-1}}}]},
{Plot[10000 Sin[x], {x, 0, 2Pi},DisplayFunction -> Identity]}}],
  DisplayFunction -> $DisplayFunction];



Perhaps GraphicsArray should have an option to ensure all the axes line up.

-------------------------------
Regards,
Ted Ersek

For Mathematica tips, tricks see 
http://www.dot.net.au/~elisha/ersek/Tricks.html


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