Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Barchart number output

0 views
Skip to first unread message

Lobotomy

unread,
Jul 1, 2009, 6:35:52 AM7/1/09
to
Hi

i have a barchart and the form is something like this...

BarChart[{y = 2000 + 500}, PlotLabel -> Style["$ per month required:
", Bold], NumberForm[N[y], {6,0}]]


i want it to say "$ per month required: 2500"

in this case. the real function y is much more complex and includes
variables... why does not the above work?

The reason is either my way of defining the function. im not sure if
you just can put a "y=" in front of it and then use the y in another
place... otherwise it is the NumberForm which is not in the correct
way. please help
/Tommy

Bob Hanlon

unread,
Jul 2, 2009, 7:15:14 AM7/2/09
to
BarChart[{y = 2000 + 500},
PlotLabel ->
Style["$ per month required: " <>
ToString[NumberForm[N[y], {6, 0}]], Bold]]

BarChart[{y = 2000 + 500},
PlotLabel ->
Style["$ per month required: " <>

ToString[y], Bold]]


Bob Hanlon

---- Lobotomy <lab...@gmail.com> wrote:

=============

Armand Tamzarian

unread,
Jul 2, 2009, 7:15:57 AM7/2/09
to

The two parts of your label were not "grouped"

PlotLabel -> Row[{Style["$ per month required:", Bold], NumberForm[N
[y], {6, 0}]}]

Mike

0 new messages