Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2000
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2000

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

Search the Archive

Re: AxesLabel for ContourPlot

  • To: mathgroup at smc.vnet.net
  • Subject: [mg25685] Re: AxesLabel for ContourPlot
  • From: "Allan Hayes" <hay at haystack.demon.co.uk>
  • Date: Thu, 19 Oct 2000 04:35:15 -0400 (EDT)
  • References: <8sjk31$g0d@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Christopher,

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
hay at haystack.demon.co.uk
Voice: +44 (0)116 271 4198
Fax: +44 (0)870 164 0565

"Christopher Tong" <ctong at physics.purdue.edu> wrote in message
news:8sjk31$g0d at smc.vnet.net...
>
> 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
>
>
>




  • Prev by Date: RE: A question of matrix multiply, who can solve it?
  • Next by Date: Re: Compiled functions in NDSolve.
  • Previous by thread: Re: AxesLabel for ContourPlot
  • Next by thread: FunctionExpand bug. Serious.