Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.math.mathematica

Topic: Setting the Font Family and Font Size in BoxWhiskerChart
Replies: 1   Last Post: Jun 6, 2013 7:25 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View  
David Park

Posts: 1,560
Registered: 5/19/07
Re: Setting the Font Family and Font Size in BoxWhiskerChart
Posted: Jun 6, 2013 7:25 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Use BaseStyle for ticks and regular plot labels.

BoxWhiskerChart[RandomVariate[NormalDistribution[0, 1], 100],
BaseStyle -> {FontFamily -> "Palatino", FontSize -> 18},
PlotLabel -> "Using BaseStyle for Font"]

If you also want to control the font in the Tooltip you will have to define
a LabelingFunction.

dataTooltip[data_] :=
Module[{names = {"Max", "75%", "Median", "25%", "Min"}, values},
values = {Max, Quantile[#, 3/4] &, Median, Quantile[#, 1/4] &, Min}[
data] // Through;
Grid[Transpose[{names, values}],
Alignment -> {{Center, "."}, Automatic},
Dividers -> All,
Frame -> True]
]

BoxWhiskerChart[RandomVariate[NormalDistribution[0, 1], 100],
LabelingFunction -> (Placed[
Style[dataTooltip[#], 18, FontFamily -> "Palatino"], Tooltip] &),
BaseStyle -> {FontFamily -> "Palatino", FontSize -> 18},
PlotLabel -> "Plot and Tooltip Fonts"]

Not used here but the Presentations Application has a BoxWhiskerDraw
primitive so you can easily combine BoxWhisker elements with other
primitives and rotate/translate them to any desired locations.


David Park
djmpark@comcast.net
http://home.comcast.net/~djmpark/index.html





From: Gregory Lypny [mailto:gregory.lypny@videotron.ca]


Hello everyone,

How can I change the font in a BoxWhiskerChart to Palatino?

Gregory





Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.