Thanks,
Chris
a contour plot has frames and the axes covered by the contour polygons.
FrameLabel->{x,y} may help.
Regards
Jens
Would the option FrameLabel help or do you really need axes?
If you do want to have axes:
cp = ContourPlot[x^2 + y^2, {x, 0, 1}, {y, 0, 1}, ColorFunction -> Hue]
The following does not work, because the axes are behind the picture
Show[cp, Axes -> True, Frame -> False,
Axes -> True, AxesOrigin -> {.3, .5}]
However, we can construct the axes as a separate object;
axs = FullGraphics[
Graphics[{}, PlotRange -> {{0, 1}, {0, 1}}, Axes -> True,
AxesOrigin -> {.3, .5},
AbsoluteOptions[cp, PlotRange]
]];
And then superimpose them:
Show[cp, axs, Frame -> False];
--
Allan
---------------------
Allan Hayes
Mathematica Training and Consulting
Leicester UK
www.haystack.demon.co.uk
h...@haystack.demon.co.uk
Voice: +44 (0)116 271 4198
Fax: +44 (0)870 164 0565
"Christopher Tong" <ct...@physics.purdue.edu> wrote in message
news:8sjk31$g...@smc.vnet.net...
Options[ContourPlot]
to inspect what the default options are for ContourPlot. You should
see that the option Axes->False. Thus you cannot use AxesLabel
as am option. Since the default option Frame->True, you should
use the option
FrameLabel->{"xlabel","ylabel"}
You can also set as options
Axes->True, Frame->False
and then use
AxesLabel->{"xlabel","ylabel"}
Cheers,
Brian
In article <8sjk31$g...@smc.vnet.net>,
Christopher Tong <ct...@physics.purdue.edu> wrote:
>
> Anybody know how to make ContourPlot show an
> AxesLabel? I can't get it to do so even when I
> include the AxesLabel->{"x","y"} option. It also
> doesn't work when I use Show to display a contour plot.
> I am using Mathematica 4.0.2.0 on a PC.
>
> Thanks,
> Chris
>
>
Sent via Deja.com http://www.deja.com/
Before you buy.