MathGroup Archive 2010

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

Search the Archive

variable graph size when including Legend and FrameTicks

  • To: mathgroup at smc.vnet.net
  • Subject: [mg107545] variable graph size when including Legend and FrameTicks
  • From: Judy Bunder <judyb at uow.edu.au>
  • Date: Tue, 16 Feb 2010 03:54:47 -0500 (EST)

Hi,

these four plots are basically the same, but the graph size is different 
in each case. Can anything be done about this? I'm using Mathematica 6.

Needs["PlotLegends`"]

Plot[{x, x^2}, {x, 0, 5}, Axes -> False, Frame -> True,ImageSize -> 300]

Plot[{x, x^2}, {x, 0, 5}, Axes -> False, Frame -> True, FrameTicks -> 
{{0, 1, 2, 3, 4, 5}, {0, 5, 10, 15, 20, 25}, {{0, ""}, {1, ""}, {2, ""}, 
{3, ""}, {4, ""}, {5, ""}}, {{0, ""}, {5, ""}, {10, ""}, {15, ""}, {20, 
""}, {25, ""}}}, ImageSize -> 300]

Plot[{x, x^2}, {x, 0, 5}, Axes -> False, Frame -> True, PlotLegend -> 
{"x", "x^2"}, LegendTextSpace -> 1, LegendPosition -> {-0.5, 0}, 
LegendSize -> {0.2, 0.3}, ImageSize -> 300]

Plot[{x, x^2}, {x, 0, 5}, Axes -> False, Frame -> True, FrameTicks -> 
{{0, 1, 2, 3, 4, 5}, {0, 5, 10, 15, 20,  25}, {{0, ""}, {1, ""}, {2, 
""}, {3, ""}, {4, ""}, {5, ""}}, {{0, ""}, {5, ""}, {10, ""}, {15, ""}, 
{20, ""}, {25, ""}}}, PlotLegend -> {"x", "x^2"}, LegendTextSpace -> 1, 
LegendPosition -> {-0.5, 0}, LegendSize -> {0.2, 0.3}, ImageSize -> 300]

Thanks,
Judy



  • Prev by Date: Re: need help determined time to travel a path
  • Next by Date: Re: (-1)^(1/2.) on Mathematica!
  • Previous by thread: Re: "changebit" front-end option for Demonstrations NBs
  • Next by thread: Poor choice in PiecewiseExpand ?