Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2009

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

Search the Archive

Re: changing color, size etc on text

  • To: mathgroup at smc.vnet.net
  • Subject: [mg101197] Re: changing color, size etc on text
  • From: "Sjoerd C. de Vries" <sjoerd.c.devries at gmail.com>
  • Date: Fri, 26 Jun 2009 06:52:43 -0400 (EDT)
  • References: <h1vm77$aeb$1@smc.vnet.net>

Ad 1:
you multiplied Style[ ] with NumberForm[ ]. Actually, you probably
want  "Accumulated Amount" to be joined with the NumberForm. You can
use the StringJoin operator (infix form <>) to do that. But first
convert the NumberForm to a string using ToString.

The # is Last doesn't make sense. There's no corresponding &. Don't
know what you want to do there. So, for the time being it should look
like

Plot[x, {x, 0, 2}, PlotLabel -> Style["Accumulated Amount " <>
    ToString[
     NumberForm[
      Last[#],
      ExponentFunction -> (If[Abs[#] <= 15, Null, #] &),
      NumberSigns -> {"-$ ", "$"},
      NumberPadding -> {"", "0"}
      ]
     ], Bold, Italic, Blue] ]

Cheers -- Sjoerd

 On Jun 25, 1:14 pm, Lobotomy <labb... at gmail.com> wrote:
> Hi
> I want to modify text and numbers here and there. These are the places
> where i want to change color, size etc...
> Isn't there just one way of doing this?? ive tried using Style which
> works in some places, but not here...
>
> 1:In the PlotLabel for my ListLinePlot: I have modified the words, but
> i dont know how to make the numbers and "$" to be changed into the
> same style
>
> PlotLabel ->
>  Style["Accumulated Amount", Bold, Italic, Blue] NumberForm[Last[#],
>    ExponentFunction -> (If[Abs[#] <= 15, Null, #] &),
>    NumberSigns -> {"-$ ", "$"}, NumberPadding -> {"", "0"}]
>
> 2: In the labels for my BarChart. I want the number and the text to be
> changed
>
> ChartLabels -> Style["Accumulated Amount", Bold, Italic, Blue]
>  Placed[{"$ per month required "}, Top], LabelingFunction -> Above
>
> 3: Finally in the ChartLegends of my piechart.
> ChartLegends -> {"Added Contributions", "Initial Investment",
>    "Growth", "Target Amount"}],



  • Prev by Date: Re: FindInstance over Integers
  • Next by Date: Re: Wolfram | Alpha: Acres per square mile? (oddities)
  • Previous by thread: changing color, size etc on text
  • Next by thread: Wolfram | Alpha: Acres per square mile? (oddities)