format legend?
- To: mathgroup at smc.vnet.net
- Subject: [mg129266] format legend?
- From: dabd <dario.rehman at gmail.com>
- Date: Fri, 28 Dec 2012 05:33:23 -0500 (EST)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- Delivered-to: l-mathgroup@wolfram.com
- Delivered-to: mathgroup-newout@smc.vnet.net
- Delivered-to: mathgroup-newsend@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.
- Follow-Ups:
- Re: format legend?
- From: Bob Hanlon <hanlonr357@gmail.com>
- Re: format legend?