Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2009

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

Search the Archive

Re: Alignment of Graphics Within Expressions

  • To: mathgroup at smc.vnet.net
  • Subject: [mg98984] Re: Alignment of Graphics Within Expressions
  • From: Raffy <raffy at mac.com>
  • Date: Thu, 23 Apr 2009 06:43:12 -0400 (EDT)
  • References: <gsivfk$9db$1@smc.vnet.net>

On Apr 20, 4:11 pm, "David Park" <djmp... at comcast.net> wrote:
> Here are two BarCharts within a CirclePlus (but it might be any kind of
> expression).
>
> g1 = BarChart[{1, 2, 3}, Axes -> {True, False},
>
>    BaselinePosition -> Axis,
>
>    Ticks -> None,
>
>    ImageSize -> 40];
>
> g2 = BarChart[{-1, 2, -3},
>
>    BaselinePosition -> Axis,
>
>    Axes -> {True, False},
>
>    Ticks -> None, ImageSize -> 40];
>
> CirclePlus[g1, g2]
>
> The x axis of the bar charts are aligned with the baseline (approximately
> the bottom) of the CirclePlus symbol. Would it be possible to align the a=
xes
> with the center line of the CirclePlus symbol without going into any Row
> constructions or modifying the CirclePlus expression?
>
> David Park
>
> djmp... at comcast.net
>
>  <http://home.comcast.net/~djmpark>http://home.comcast.net/~djmpark/ 

BaselinePosition -> (Axis -> Center) does the trick.


  • Prev by Date: Re: pure function with optional number of arguments
  • Next by Date: Re: Has Fourier been fixed in Mathematica 7
  • Previous by thread: Re: Alignment of Graphics Within Expressions
  • Next by thread: Mathematica for gifted elementary school children