MathGroup Archive 2007

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

Search the Archive

Re: RegionPlot ignores the AxesLabel Option?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg83325] Re: RegionPlot ignores the AxesLabel Option?
  • From: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>
  • Date: Sat, 17 Nov 2007 05:30:24 -0500 (EST)
  • Organization: The Open University, Milton Keynes, UK
  • References: <fhjskh$54a$1@smc.vnet.net>

W. Craig Carter wrote:

> Does anyone else get this behavior:
> 
> RegionPlot[y <= x^2, {x,-1,1}, {y,0,1},AxesLabel->{"x","y"}]
> 
> does *not* show the labels?

Yes. And this is normal, indeed, though not necessarily obvious at first 
sight.

RegionPlot accepts the same options as Graphics, nevertheless it uses 
frames around the plot and disables any axis. (You can see the options 
and their settings by evaluating Options[RegionPlot], and see that Axes 
-> False). The axes being turned off, the option AxisLabel is without 
effect, regardless of its actual value.

So to see the labels, we should use FrameLabel as in the following example:

RegionPlot[y <= x^2, {x, -1, 1}, {y, 0, 1}, FrameLabel -> {"x", "y"}]

Best regards,
-- 
Jean-Marc


  • Prev by Date: Re: Strange Result from Histogram in V6
  • Next by Date: Re: Does ColorFunction-> have different meanings to Plot3D and
  • Previous by thread: Re: RegionPlot ignores the AxesLabel Option?
  • Next by thread: Get list of function variables?