MathGroup Archive 2008

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

Search the Archive

Re: Label style in PieChart?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg91983] Re: Label style in PieChart?
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Tue, 16 Sep 2008 19:22:09 -0400 (EDT)
  • Organization: Uni Leipzig
  • References: <gal3f6$dsb$1@smc.vnet.net>
  • Reply-to: kuska at informatik.uni-leipzig.de

Hi,

Needs["PieCharts`"]

pct = 21.7

pieLab = StringJoin[ToString[pct], "%"];

PieChart[{pct, 100 - pct}, PieLabels -> {pieLab, ""},
  PieStyle -> {Directive[Darker[Blue], Opacity[0.4]],
    Directive[Gray, Opacity[0.1]]}, ImageSize -> 200,
  BaseStyle -> {FontSize -> 24, FontFamily -> "Brush Script Std"}]

works on my Windows box.

Regards
   Jens

Gordon Robertson wrote:
> Hello,
> 
> I'm using Mathematica 6.0.3 on OSX 10.5. In a PieChart, is it possible
> to control the label font size and family? I routinely control this for
> 'FrameLabel' with ListPLot. But in the following, adding
> 'LabelStyle -> Directive[12, FontFamily -> "Helvetica"]',  does not
> change the '21.7%' label, PieLabelStyle is not valid, PieStyle does
> not accept font information, and I have found nothing information in
> the Help system or on the web for this.
> 
> pct = 21.7
> 
> pieLab = StringJoin[ToString[pct], "%"]
> 
> PieChart[{pct, 100 - pct}, PieLabels -> {pieLab, ""},
> PieStyle -> {Directive[Darker[Blue], Opacity[0.4]], Directive[Gray,
> Opacity[0.1]]}, ImageSize -> 200]
> 
> Thank you -
> 
> G


  • Prev by Date: Re: Regressions in Mathematica
  • Next by Date: Problem in PL spectrum analysis
  • Previous by thread: Label style in PieChart?
  • Next by thread: Re: Label style in PieChart?