Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #12963 > unrolled thread
| Started by | dabd <dario.rehman@gmail.com> |
|---|---|
| First post | 2012-12-28 10:32 +0000 |
| Last post | 2012-12-28 10:32 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
format legend? dabd <dario.rehman@gmail.com> - 2012-12-28 10:32 +0000
| From | dabd <dario.rehman@gmail.com> |
|---|---|
| Date | 2012-12-28 10:32 +0000 |
| Subject | format legend? |
| Message-ID | <kbjsfi$mvg$1@smc.vnet.net> |
Plot[Evaluate[{(b/(b + 1)) (n/(1 - n))} /.
n -> Range[0.05, 0.40, 0.05]], {b, 0, 2},
PlotLegends ->
Table[StringForm["n=``",
ToString[k, InputForm, NumberMarks :> False]], {k, 0.05, 0.40,
0.05}]]
How can I format the numbers in the legend with 2 decimal places?
Thanks.
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web