[Date Index]
[Thread Index]
[Author Index]
Re: labeling axes in a ContourPlot
*To*: mathgroup at smc.vnet.net
*Subject*: [mg92234] Re: labeling axes in a ContourPlot
*From*: "David Park" <djmpark at comcast.net>
*Date*: Tue, 23 Sep 2008 07:36:12 -0400 (EDT)
*References*: <gb7ocj$nhh$1@smc.vnet.net>
Because ContourPlot uses a Frame instead of Axes.
ContourPlot[Sin[x] Cos[y], {x, -Pi, Pi}, {y, -Pi, Pi},
FrameLabel -> {"X", "Y", "Sin[x] Cos[y]"}]
A more conventional method of labeling the function might be:
ContourPlot[Sin[x] Cos[y], {x, -Pi, Pi}, {y, -Pi, Pi},
FrameLabel -> {"X", "Y"},
PlotLabel -> Style[Sin[x] Cos[y], 16]]
For myself, I usually make the opposite mistake of specifying a FrameLabel
instead of AxesLabel in Graphics3D.
--
David Park
djmpark at comcast.net
http://home.comcast.net/~djmpark/
"phillman5" <PHILLMAN5 at gmail.com> wrote in message
news:gb7ocj$nhh$1 at smc.vnet.net...
> Mathmatica ver 6/Mac Leopard
>
> How do you label the axes in ContourPlot?
>
> For a simple 3D plot
>
> Plot3D[Sin[x] Cos[y], {x, -Pi, Pi}, {y, -Pi, Pi},
> AxesLabel -> {"X", "Y", "Sin[x] Cos[y]"}]
>
> Works well. But why doesn't the following work?
>
> ContourPlot[Sin[x] Cos[y], {x, -Pi, Pi}, {y, -Pi, Pi},
> AxesLabel -> {"X", "Y", "Sin[x] Cos[y]"}]
>
> I also tried removing the 'z' label with no change.
>
> I have looked throughout the ContourPlot documentation and the options
> available and I don't see AxesLabel available. You can label the
> individual contours with their values, etc. Do you have to go to
> graphic primitives and do it manually?
>
> Second question: how would you change the font size for the numbers
> on the axes? I tried some the ways demonstrated for plot with no luck.
>
Prev by Date:
**Re: mathematica 6.0.3 and mac os x 10.5.5 crashes?**
Next by Date:
**Re: Changing names of variables in a loop**
Previous by thread:
**Re: labeling axes in a ContourPlot**
Next by thread:
**Strange size changes in Manipulate with GeometricTransformation**
| |