MathGroup Archive 2012

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

Search the Archive

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.



  • Prev by Date: How to change alignment of Grid/Matrix created using menu (Insert->Matrix/Table->New)
  • Next by Date: Re: Modeling of NFL game results
  • Previous by thread: How to change alignment of Grid/Matrix created using menu (Insert->Matrix/Table->New)
  • Next by thread: Re: format legend?