Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2008

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

Search the Archive

Re: labeling axes in a ContourPlot

  • To: mathgroup at smc.vnet.net
  • Subject: [mg92888] Re: labeling axes in a ContourPlot
  • From: wanshoupu at gmail.com
  • Date: Fri, 17 Oct 2008 05:22:33 -0400 (EDT)
  • References: <gb7ocj$nhh$1@smc.vnet.net>

On Sep 22, 4:26 am, phillman5 <PHILLM... at gmail.com> wrote:
> 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.

try global command:
$TextStyle = {FontSize -> 15}


  • Prev by Date: ListPlot Problem
  • Next by Date: Re: Variable amount of Buttons in Mathematica
  • Previous by thread: Re: ListPlot Problem
  • Next by thread: solving systems of transcendental equations