MathGroup Archive 2008

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

Search the Archive

Re: Move frame labels closer to frame?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg91305] Re: Move frame labels closer to frame?
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Thu, 14 Aug 2008 07:00:56 -0400 (EDT)
  • References: <g7uo3p$5vf$1@smc.vnet.net>

Hi,

and

gr = FullGraphics[
    Plot[Sin[x], {x, 0, 2 Pi}, Frame -> True, Axes -> True,
     PlotLabel -> "Plot label", FrameLabel -> {"x", "y", None, None},
     FrameTicks -> Automatic]];

Manipulate[
  Show[gr /. {Text["x", a_, opts___] :> Text["x", Scaled[p1], opts],
                Text["y", a_, opts___] :> Text["y", Scaled[p2], opts]},
    AspectRatio -> 1/GoldenRatio],
  {{p1, {0.5, 0.1}}, {-0.5, -0.5}, {1.5, 1.5},
   ControlType -> Slider2D},
  {{p2, {-0.1, 0.5}}, {-0.5, -0.5}, {1.5, 1.5},
   ControlType -> Slider2D}
  ]

will let you move the labels to the positions you like.

Regards
   Jens

Mark Fisher wrote:
> Hi,
> 
> It seems to me that the frame labels are too far from the frame. Is
> there a way to control their placement and/or move them closer to the
> frame?
> 
> For example,
> 
> Plot[Sin[x], {x, 0, 2 Pi}, Frame -> True, Axes -> True,
>  PlotLabel -> "Plot label", FrameLabel -> {{"y", None}, {"x", None}},
>  FrameTicks -> Automatic]
> 
> I just think the "x" and "y" labels are too far from the frame. This
> becomes a real issue for me when I'm putting a bunch of plots in a
> GraphicsGrid.
> 
> Thanks.
> 
> --Mark
> 
> P.S. I'm using "6.0 for Microsoft Windows (32-bit) (May 21, 2008)"
> 


  • Prev by Date: Another Out of Memory Problem
  • Next by Date: Re: debugging code that contains compile
  • Previous by thread: Move frame labels closer to frame?
  • Next by thread: Re: Move frame labels closer to frame?