Home > Archive > Mathematica > November 2007 > PlotLabel - SubscriptBox - Vers. 6: FontColor not working?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
PlotLabel - SubscriptBox - Vers. 6: FontColor not working?
|
|
| Thomas BOHL 2007-11-27, 8:20 am |
| Dear all,
switching over to Mathematica Version 6 (6.0.1.0) on Linux x86 (SLC4) I
have a number of problems which I did not have with previous versions of
Mathematica. One is the following:
ListPlot[Table[Random[], {10}],
AxesLabel -> {Style["Subscript[f, RF]", \
FontSlant->Plain, FontColor->Red],Style[ \
"y-axis", FontColor->Red]} ]
.... does not produce an x axis label as expected. What I would expect is
a label with a the FontSlant as indicated and of FontColor as indicated.
However, the label is written with "f" in italic, the subscript in plain
and both in a colour of light grey.
The y axis label (no Subscript) is as expected.
With the same code on Windows XP at least the FontColor is as specified,
the FontSlant is also here not as specified (but I could live with that
if I have to).
In summary there are two problems for me with Subscript (on Linux):
- the FontSlant specification is not working
- the FontColor specification is not working
Could somebody please give me hint how to get at least FontColor working
on Linux?
Thank you very much and kind regards,
Thomas.
P.S.
1)The result of a cell command (not as label)
Style["Subscript[f, RF]",\
FontSlant->"Plain",FontColor->Red]
is of correct FontSlant but the FontColor is still incorrect and using
the same Mathematica expression in a label changes the FontSlant of the
letter "f" to italic and the FontColor is of course still wrong (light
grey).
2)
Also LabelStyle->Red does not change the colour of a subscripted expression.
| |
| Kevin J. McCann 2007-11-28, 4:38 am |
| I tried this with 6.0.1 under WXP-SP2 and it works as you might expect,
i.e. in color. The Italics are due to SingleLetterItalics->True in
either the Core or Default nb. I could not figure out how to get around
these myself. I tried all sorts of things to get rid of the Italics. So,
I did the unthinkable - I edited Core to change all those to False. I
also got rid of the annoying Courier fonts that show up in equations.
Kevin
Thomas BOHL wrote:
> Dear all,
>
> switching over to Mathematica Version 6 (6.0.1.0) on Linux x86 (SLC4) I
> have a number of problems which I did not have with previous versions of
> Mathematica. One is the following:
>
> ListPlot[Table[Random[], {10}],
> AxesLabel -> {Style["Subscript[f, RF]", \
> FontSlant->Plain, FontColor->Red],Style[ \
> "y-axis", FontColor->Red]} ]
>
> ... does not produce an x axis label as expected. What I would expect is
> a label with a the FontSlant as indicated and of FontColor as indicated.
>
> However, the label is written with "f" in italic, the subscript in plain
> and both in a colour of light grey.
>
> The y axis label (no Subscript) is as expected.
>
>
> With the same code on Windows XP at least the FontColor is as specified,
> the FontSlant is also here not as specified (but I could live with that
> if I have to).
>
> In summary there are two problems for me with Subscript (on Linux):
> - the FontSlant specification is not working
> - the FontColor specification is not working
>
>
> Could somebody please give me hint how to get at least FontColor working
> on Linux?
>
>
>
> Thank you very much and kind regards,
> Thomas.
>
>
>
> P.S.
> 1)The result of a cell command (not as label)
>
> Style["Subscript[f, RF]",\
> FontSlant->"Plain",FontColor->Red]
>
> is of correct FontSlant but the FontColor is still incorrect and using
> the same Mathematica expression in a label changes the FontSlant of the
> letter "f" to italic and the FontColor is of course still wrong (light
> grey).
>
> 2)
> Also LabelStyle->Red does not change the colour of a subscripted expression.
>
>
>
>
>
--
Kevin J. McCann
Research Associate Professor
JCET/Physics
Physics Building
University of Maryland, Baltimore County
1000 Hilltop Circle
Baltimore, MD 21250
| |
| Thomas BOHL 2007-11-29, 8:18 am |
| Hi Sid,
thanks for your suggestion.
In fact I did not put "" on Subscript because I entered the expression
using the palette. Only copying the Mathematica code into the e-mail
made the quotation marks appear.
Originally I had:
ListPlot[Table[Random[],{10}],AxesLabel->{Subscript[f, RF], \
"y-axis"}]
which still gives an x-axis label in light grey instead of black and a
mix of FontSlants, which was not the case in previous versions of
Mathematica.
However, your suggestion shows how a workaround could do the job by
using Style and having no quotation marks. This works fine for me now.
The FontSlant is still not ok but I see a mail treating this subject.
Thank you very much and kind regards,
Thomas.
Syd Geraghty wrote:
> Hi Thomas,
>
> Deleting the "" on Subscript works OK as does "Oblique" on FontSlant.
>
> ListPlot[Table[Random[], {10}],
> AxesLabel -> {Style[Subscript[f, RF], FontSlant -> "Oblique",
> FontColor -> Red], Style["y-axis", FontColor -> Red]}]
>
>
>
>
>
>
>
> HTH, Also does this Copy as Pict for the result email OK for this group??
>
>
> Yours truly ... Syd
>
> Syd Geraghty B.Sc., M.Sc.
> sydgeraghty@mac.com
> San Jose, CA
>
> My System
>
> Mathematic 6.0.1 for Mac OS X x86 (32 - bit) (June 19, 2007) License
> L2983-5890
> MacOS X V 10.4 .10
> MacBook Pro 2.33 Ghz Intel Core 2 Duo 2GB RAM
>
> On Nov 27, 2007, at 6:10 AM, Thomas BOHL wrote:
>
>
| |
| Thomas BOHL 2007-11-29, 8:18 am |
| Hi Kevin,
thanks for your suggestion to pointing out the SingleLetterItalics->True
option, of which I was not aware.
I changed this option with the OptionsInspector but it did not have any
influence on the axis label.
Thanks again for pointing out this option SingleLetterItalics but I
think I give up about the FontSlant for the moment.
Thank you very much and kind regards,
Thomas.
Syd Geraghty wrote:
> Hi Thomas,
>
> Deleting the "" on Subscript works OK as does "Oblique" on FontSlant.
>
> ListPlot[Table[Random[], {10}],
> AxesLabel -> {Style[Subscript[f, RF], FontSlant -> "Oblique",
> FontColor -> Red], Style["y-axis", FontColor -> Red]}]
>
Kevin J. McCann wrote:
> I tried this with 6.0.1 under WXP-SP2 and it works as you might expect,
> i.e. in color. The Italics are due to SingleLetterItalics->True in
> either the Core or Default nb. I could not figure out how to get around
> these myself. I tried all sorts of things to get rid of the Italics. So,
> I did the unthinkable - I edited Core to change all those to False. I
> also got rid of the annoying Courier fonts that show up in equations.
>
> Kevin
> Thomas BOHL wrote:
>
| |
| Helen Read 2007-11-29, 8:18 am |
| Thomas BOHL wrote:
> Dear all,
>
> switching over to Mathematica Version 6 (6.0.1.0) on Linux x86 (SLC4) I
> have a number of problems which I did not have with previous versions of
> Mathematica. One is the following:
>
> ListPlot[Table[Random[], {10}],
> AxesLabel -> {Style["Subscript[f, RF]", \
> FontSlant->Plain, FontColor->Red],Style[ \
> "y-axis", FontColor->Red]} ]
>
> ... does not produce an x axis label as expected. What I would expect is
> a label with a the FontSlant as indicated and of FontColor as indicated.
>
> However, the label is written with "f" in italic, the subscript in plain
> and both in a colour of light grey.
>
> The y axis label (no Subscript) is as expected.
>
>
> With the same code on Windows XP at least the FontColor is as specified,
> the FontSlant is also here not as specified (but I could live with that
> if I have to).
>
> In summary there are two problems for me with Subscript (on Linux):
> - the FontSlant specification is not working
> - the FontColor specification is not working
>
>
> Could somebody please give me hint how to get at least FontColor working
> on Linux?
For one thing, there should be no quotes around Subscript[f,RF]. It
should be Style[Subscript[f, RF], not Style["Subscript[f, RF]". To get
rid of the single-letter italics, try StandardForm.
ListPlot[Table[Random[], {10}],
AxesLabel -> {Style[StandardForm[Subscript[f, RF]],
FontColor -> Red], Style["y-axis", FontColor -> Red]}]
I don't know what the issue is with the color; it works for me (WinXP).
--
Helen Read
University of Vermont
|
|
|
|
|