MathGroup Archive 2011

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

Search the Archive

GraphicsGrid. Can I change ItemAspectRatio for rows?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg118695] GraphicsGrid. Can I change ItemAspectRatio for rows?
  • From: "Christopher O. Young" <cy56 at comcast.net>
  • Date: Sat, 7 May 2011 07:34:25 -0400 (EDT)

I can't seem to get rid of the extra white space around the sliders.

The following has way to much extra space for the sliders in the top boxes.

GraphicsGrid[
 {
  {Slider[Dynamic[h], {-2, 2, 0.25}, Appearance -> "Labeled"],
   Slider[Dynamic[r], {0, 1, 0.25}, Appearance -> "Labeled"]},
  {
   Graphics[
    Locator[Dynamic[s]],
    PlotRange -> 2,
    Frame -> True,
    Axes -> True
    ],
   Dynamic[
    Graphics3D[
     Sphere[{s[[1]], s[[2]], h}, r],
     PlotRange -> 2,
     Axes -> True,
     AxesLabel -> {"x", "y", "z"}
     ]
    ]
   }
  },
 ItemAspectRatio -> 0.25,
 Dividers -> All,
 Spacings -> Scaled[0.1]
 ]


On the other hand, if I use

   ItemAspectRatio -> {0.25, 1},

In place of ItemAspectRatio -> 0.25,

  above, I get the sizes I want for the grid boxes, but nothing gets plotted
in them.



  • Prev by Date: GraphicsGrid. Can I change ItemAspectRatio for rows?
  • Next by Date: Re: Import speed from different file types
  • Previous by thread: GraphicsGrid. Can I change ItemAspectRatio for rows?
  • Next by thread: Undocumented function to determine em-width of font in points (or mm)