MathGroup Archive 2010

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

Search the Archive

Re: Scaled tick and label FontSizes for plots

  • To: mathgroup at smc.vnet.net
  • Subject: [mg107133] Re: [mg107078] Scaled tick and label FontSizes for plots
  • From: "David Park" <djmpark at comcast.net>
  • Date: Wed, 3 Feb 2010 06:13:07 -0500 (EST)
  • References: <21664647.1265100347560.JavaMail.root@n11>

It seems like a bug or at least a 'feature'. LabelStyle includes ticks, you
don't need both, and it seems that TicksStyle gets in the way of LabelStyle.

You could use these, if you want them both the same.

Plot[x^2, {x, -1, 1},
 AxesLabel -> {"x", "f(x)"},
 LabelStyle -> Directive[FontSize -> Scaled[.08]]] 

Plot[x^2, {x, -1, 1},
 AxesLabel -> {"x", "f(x)"},
 BaseStyle -> {FontSize -> Scaled[.08]}] 

You could control them separately with:

Plot[x^2, {x, -1, 1},
 AxesLabel -> {"x", "f(x)"},
 BaseStyle -> {FontSize -> Scaled[.08]},
 TicksStyle -> Directive[Red, FontSize -> Scaled[.03]]]


David Park
djmpark at comcast.net
http://home.comcast.net/~djmpark/  



From: Robert Rosenbaum [mailto:robertr at math.uh.edu] 

It would seem that the code below should give the same font size to the 
tick labels as it does to the axis labels, yet it does not (on my 7.0.0 
running on OS 10.6.2).  Does anyone know what's going on here?

Plot[x^2, {x, -1, 1}, AxesLabel -> {"x", "f(x)"},
 LabelStyle -> Directive[FontSize -> Scaled[.05]],
 TicksStyle -> Directive[FontSize -> Scaled[.05]]]




Best,
Robert









  • Prev by Date: Re: Conjecture:at least one prime p between (n-1)n/2 and n(n+1)/2
  • Next by Date: Re: matrix problem
  • Previous by thread: Re: Scaled tick and label FontSizes for plots
  • Next by thread: Re: Howto sum up a list?