2
$\begingroup$

Is there an easy way to display Automatically the Frameticks at the bottom and top in a BoxWhiskerChart? Currently it is only showing the numbers at the bottom.

data = Table[{i, RandomVariate[NormalDistribution[i, 2], 100]}, {i, 
100, 125}];
BoxWhiskerChart[data[[All, 2]], BarOrigin -> Left, 
ChartLabels -> data[[All, 1]], AspectRatio -> 1, 
GridLines -> {Automatic, None}, 
FrameTicks -> {{None, None}, {Automatic, Automatic}}]

enter image description here

$\endgroup$
0

1 Answer 1

3
$\begingroup$

Try All instead of Automatic in the FrameTicks option

data = Table[{i, RandomVariate[NormalDistribution[i, 2], 100]}, {i, 
    100, 125}];
BoxWhiskerChart[data[[All, 2]], BarOrigin -> Left, 
 ChartLabels -> data[[All, 1]], AspectRatio -> 1, 
 GridLines -> {Automatic, None}, 
 FrameTicks -> {{None, None}, {All, All}}]

Plot

I can't figure out why it doesn't respect the None on the left/right edges, anyone knows?

$\endgroup$
5
  • $\begingroup$ In Mma 8.0 the "None" is respected $\endgroup$ Commented Nov 7, 2012 at 0:02
  • $\begingroup$ @belisarius I run 8.0.4.0 on linux, which OS are you using? $\endgroup$
    – ssch
    Commented Nov 7, 2012 at 0:05
  • $\begingroup$ I'm using Mma 8.0.0.0 That's the difference $\endgroup$ Commented Nov 7, 2012 at 0:08
  • $\begingroup$ I'm using 8.0.4 MacOSX $\endgroup$
    – Zviovich
    Commented Nov 7, 2012 at 1:54
  • $\begingroup$ @DiegoZviovich MacOSX? Qué es eso? :D $\endgroup$ Commented Nov 7, 2012 at 4:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.