MathGroup Archive 2009

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

Search the Archive

Re: BoxWhiskerPlot - BoxLabels and FrameTicks won't work together

  • To: mathgroup at smc.vnet.net
  • Subject: [mg103015] Re: BoxWhiskerPlot - BoxLabels and FrameTicks won't work together
  • From: janeywit <janeywit at gmail.com>
  • Date: Thu, 3 Sep 2009 19:57:22 -0400 (EDT)
  • References: <5699121.1251971388637.JavaMail.root@n11> <h7o96v$o70$1@smc.vnet.net>

Thanks for the reply - actually I did think of this solution but it
didn't work on my real data.  Now I realise that this is because I had
specified a value for BoxExtraSpacing so the boxes didn't sit exactly
on tick-marks.    I guess there is no handy way around that?!
Thanks again!

On Sep 3, 12:27 pm, "David Park" <djmp... at comcast.net> wrote:
> Because BoxLabels are really part of the FrameTicks and you are specifyin=
g
> your own FrameTicks with None for the lower horizontal Frame scale. Use:
>
> Needs["StatisticalPlots`"]
> list1 = {4, 3, 5, 6, 4, 5, 7, 5, 3}
> list2 = {5, 6, 7, 6, 7, 5, 4}
>
> BoxWhiskerPlot[list1, list2,
>  FrameTicks -> {{{3, 3.5, 4, 4.5}, None}, {{{1, "A"}, {2, "B"}},
>     None}}]
>
> David Park
> djmp... at comcast.nethttp://home.comcast.net/~djmpark/ 
>
> From: janeywit [mailto:janey... at gmail.com]
>
> Hi,
> I have the problem that I can't seem to have both BoxLabels and
> FrameTicks show up together.  Here's an example:
>
> Needs["StatisticalPlots`"]
>
> list1 = {4, 3, 5, 6, 4, 5, 7, 5, 3}
>
> list2 = {5, 6, 7, 6, 7, 5, 4}
>
> BoxWhiskerPlot[list1, list2,  BoxLabels -> {"A", "B"}, FrameTicks ->
> {{{3, 3.5, 4, 4.5}, None}, {None, None}}]
>
> If I remove the FrameTicks then the BoxLabels show up correctly, but I
> can't seem to have both together.  Is there any way to do this?
>
> Thanks!



  • Prev by Date: Re: Mapping to a specific column or row in a matrix
  • Next by Date: Re: Mapping to a specific column or row in a matrix
  • Previous by thread: Re: BoxWhiskerPlot - BoxLabels and FrameTicks won't work together
  • Next by thread: How to color a 3D surface