From: Jim Lambaugh on 16 Mar 2010 06:59 Hi In my plot I need to label my y-axis N, but Mathematica recognizes this as numerical value. How do I turn this off while plotting, so I can label my axis N? Also, I need to change the font of the N. But I guess that is easy as long as the above problem is taken care of (i.e. just use Style)? Best, Jim.
From: Jim Lambaugh on 17 Mar 2010 05:39 On 16 Mar., 11:59, Jim Lambaugh <lamba...(a)gmail.com> wrote: > Hi > > In my plot I need to label my y-axis N, but Mathematica recognizes > this as numerical value. How do I turn this off while plotting, so I > can label my axis N? > > Also, I need to change the font of the N. But I guess that is easy as > long as the above problem is taken care of (i.e. just use Style)? > > Best, > Jim. Ok, so I use "N", as you have suggested. Now the thing is, I wish to write something like N(200,300), but I do not want "200" and "300" to be italic, only N. I tried Style["N",Italic] <> "(200,300)", but apparently Style["N",Italic] is not a string. What can I do here?
From: Mike Bryniarski on 17 Mar 2010 05:41 Make your label a string by putting quotes around it ie: "N" On Mar 16, 6:59 am, Jim Lambaugh <lamba...(a)gmail.com> wrote: > Hi > > In my plot I need to label my y-axis N, but Mathematica recognizes > this as numerical value. How do I turn this off while plotting, so I > can label my axis N? > > Also, I need to change the font of the N. But I guess that is easy as > long as the above problem is taken care of (i.e. just use Style)? > > Best, > Jim.
From: Helen Read on 17 Mar 2010 05:41 On 3/16/2010 6:59 AM, Jim Lambaugh wrote: > Hi > > In my plot I need to label my y-axis N, but Mathematica recognizes > this as numerical value. How do I turn this off while plotting, so I > can label my axis N? Do it as a string "N" instead of N. > Also, I need to change the font of the N. But I guess that is easy as > long as the above problem is taken care of (i.e. just use Style)? Exactly. Plot[x^2, {x, -3, 3}, AxesLabel -> {Style["Fred", Purple, Italic, 14], Style["N", Red, Bold, 16]}] -- Helen Read University of Vermont
From: Bill Rowe on 17 Mar 2010 05:42 On 3/16/10 at 5:58 AM, lambaugh(a)gmail.com (Jim Lambaugh) wrote: >In my plot I need to label my y-axis N, but Mathematica recognizes >this as numerical value. How do I turn this off while plotting, so I >can label my axis N? Use a string to specify the label. For example, Histogram[RandomReal[NormalDistribution[0, 1], 1000], AxesLabel -> {"\[Sigma]", "N"}] >Also, I need to change the font of the N. But I guess that is easy >as long as the above problem is taken care of (i.e. just use Style)? Yes, Style will do what you need here.
|
Next
|
Last
Pages: 1 2 3 Prev: Styling print output Next: NMinimize method in NonlinearModelFit not accepted! |