Prev: errorbar
Next: A question about Graphics3D
From: Ulf-Dietrich Braumann on 10 Feb 2010 03:35 Hello, how can I get an upright \[Micro] within AxesLabel? E.g. Plot[x^2,{x,0,9},AxesLabel->{"Time [d]","Height [\[Micro]m]"},LabelStyle->{FontSize->20,FontSlant->Plain}] should demonstrate the problem. Just \[Micro] remains slanted. However, turning on bold typeface (this is not what I need) Plot[x^2,{x,0,9},AxesLabel->{"Time [d]","Height [\[Micro]m]"},LabelStyle->{FontSize->20,FontSlant->Plain,FontWeight->Bold}] the \[Micro] appears upright Any idea how to obtain this for Fontweight->Plain ? Regards - Ulf-Dietrich
From: Patrick Scheibe on 11 Feb 2010 05:17 Hi, the approach is really simple but due to the lack of documentation maybe not so easy to find: Just take the font you want. In your case the mu of the Symbol font: xlabel = Style["Time [d]", 20, FontFamily -> "Times"]; ylabel = Row[{Style["Height [", 20, FontFamily -> "Times"], Style["\[Mu]", 20, FontFamily -> "Symbol"], Style["m]", 20, FontFamily -> "Times"]}]; Plot[x^2, {x, 0, 9}, AxesLabel -> {xlabel, ylabel}] This looks quite perfect on my OSX but *not so good* (to put it mildly) on my Linuxbox. Anyway, it works and I think on a Windoze it will look as good as on OSX. By the way: On my OSX it seems I can use all TrueType (I tried only these) fonts inside Mathematica. There you can do cool stuff like Style["Hello world!",50, FontFamily->"Handwriting - Dakota"] Cheers Patrick On Wed, 2010-02-10 at 03:35 -0500, Ulf-Dietrich Braumann wrote: > Hello, how can I get an upright \[Micro] within AxesLabel? > > E.g. > Plot[x^2,{x,0,9},AxesLabel->{"Time [d]","Height [\[Micro]m]"},LabelStyle->{FontSize->20,FontSlant->Plain}] > should demonstrate the problem. Just \[Micro] remains slanted. > > However, turning on bold typeface (this is not what I need) > Plot[x^2,{x,0,9},AxesLabel->{"Time [d]","Height [\[Micro]m]"},LabelStyle->{FontSize->20,FontSlant->Plain,FontWeight->Bold}] > the \[Micro] appears upright > > Any idea how to obtain this for Fontweight->Plain ? > > Regards - Ulf-Dietrich >
From: Tomas Garza on 11 Feb 2010 06:13 Sorry, but I can't replicate your problem. Evaluating both your examples gives upright characters in the labels. Tomas > Date: Wed, 10 Feb 2010 03:35:34 -0500 > From: braumann(a)uni-leipzig.de > Subject: Upright \[Micro] in AxesLabel > To: mathgroup(a)smc.vnet.net > > Hello, how can I get an upright \[Micro] within AxesLabel? > > E.g. > Plot[x^2,{x,0,9},AxesLabel->{"Time [d]","Height [\[Micro]m]"},LabelStyle->{FontSize->20,FontSlant->Plain}] > should demonstrate the problem. Just \[Micro] remains slanted. > > However, turning on bold typeface (this is not what I need) > Plot[x^2,{x,0,9},AxesLabel->{"Time [d]","Height [\[Micro]m]"},LabelStyle->{FontSize->20,FontSlant->Plain,FontWeight->Bold}] > the \[Micro] appears upright > > Any idea how to obtain this for Fontweight->Plain ? > > Regards - Ulf-Dietrich >
From: Patrick Scheibe on 11 Feb 2010 06:52 Hi, your answer would be more helpful if it were like: Evaluating both of your examples on my OS blub with Mathematica Version blubblub gives upright characters. On Ubuntu 9.10 and OSX Leopard and Snow Leopard I was not able to get really upright mu's when I input them as "esc mu esc". But I wrote another reply where I pointed out how you can get it on these systems. On which os are you working? Cheers Patrick On Thu, 2010-02-11 at 05:19 -0500, Tomas Garza wrote: > Sorry, but I can't replicate your problem. Evaluating both your examples > gives upright characters in the labels. > Tomas > > > Date: Wed, 10 Feb 2010 03:35:34 -0500 > > From: braumann(a)uni-leipzig.de > > Subject: Upright \[Micro] in AxesLabel > > To: mathgroup(a)smc.vnet.net > > > > Hello, how can I get an upright \[Micro] within AxesLabel? > > > > E.g. > > Plot[x^2,{x,0,9},AxesLabel->{"Time [d]","Height [\[Micro]m]"},LabelStyle->{FontSize->20,FontSlant->Plain}] > > should demonstrate the problem. Just \[Micro] remains slanted. > > > > However, turning on bold typeface (this is not what I need) > > Plot[x^2,{x,0,9},AxesLabel->{"Time [d]","Height [\[Micro]m]"},LabelStyle->{FontSize->20,FontSlant->Plain,FontWeight->Bold}] > > the \[Micro] appears upright > > > > Any idea how to obtain this for Fontweight->Plain ? > > > > Regards - Ulf-Dietrich > > >
From: John Fultz on 12 Feb 2010 04:40
There seems to be some general confusion about how to reproduce your problem. I can't reproduce it either, but here's a bit of speculation. Maybe what you were using wasn't \[Micro], but \[Mu]. They look similar, but the Mathematica rendering of \[Mu] (and all other Greek characters used in math) always has a slanted appearance, which is exactly what you're complaining about. So...go back to your problem notebook and try retyping the character as \[Micro]. Sincerely, John Fultz jfultz(a)wolfram.com User Interface Group Wolfram Research, Inc. On Wed, 10 Feb 2010 03:35:34 -0500 (EST), Ulf-Dietrich Braumann wrote: > Hello, how can I get an upright \[Micro] within AxesLabel? > > E.g. > Plot[x^2,{x,0,9},AxesLabel->{"Time [d]","Height [\[Micro]m]"},LabelStyle- > >{FontSize->20,FontSlant->Plain}] > should demonstrate the problem. Just \[Micro] remains slanted. > > However, turning on bold typeface (this is not what I need) > Plot[x^2,{x,0,9},AxesLabel->{"Time [d]","Height [\[Micro]m]"},LabelStyle- > >{FontSize->20,FontSlant->Plain,FontWeight->Bold}] > the \[Micro] appears upright > > Any idea how to obtain this for Fontweight->Plain ? > > Regards - Ulf-Dietrich |