MathGroup Archive 2008

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

Search the Archive

Re: Re: A 3D Plot Query

  • To: mathgroup at smc.vnet.net
  • Subject: [mg94318] Re: [mg94267] Re: A 3D Plot Query
  • From: Curtis Osterhoudt <cfo at lanl.gov>
  • Date: Wed, 10 Dec 2008 04:48:05 -0500 (EST)
  • Organization: LANL
  • References: <ghj01t$ff8$1@smc.vnet.net> <200812091513.37065.cfo@lanl.gov> <493ef8f7.077e420a.3540.3139@mx.google.com>
  • Reply-to: cfo at lanl.gov

Hi, Sjoerd,

I agree with you. I think this is one of the cases where Mathematica's defaults work pretty well for one plotting task, and perhaps less well for another. Of course, by explicitly putting in an AxesOrigin and PlotRange for a 2D plot, one can get the same behavior as in 3D plots. So the behavior is at least somewhat consistent between the 2D and 3D cases.

Plot[Sin[x] + 2, {x, -3, 3}, AxesOrigin -> {0, 0}, 
 PlotRange -> {1, 3}]

      Regards, 
              Curtis


On Tuesday 09 December 2008 16:02:08 Sjoerd C. de Vries wrote:
> Hi Curtis,
> 
> I can see that it works and I can feel some of the logic behind it, but if you'd extend this to 2D plots it would mean that Mathematica wouldn't plot the x-axis if the plotted function doesn't intersect him, and it clearly does.
> 
> Cheers --Sjoerd
> 
> > -----Original Message-----
> > From: Curtis Osterhoudt [mailto:cfo at lanl.gov]
> > Sent: 09 December 2008 23:14
> > To: mathgroup at smc.vnet.net
> > Cc: sjoerd.c.devries at gmail.com
> > Subject: Re: [mg94267] Re: A 3D Plot Query
> > 
> > Hi, Sjoerd,
> > 
> >    If you explicitly choose the plot range (with PlotRange ->{-1, 2}),
> > then the AxesOrigin is included in the graphic, and the x- and y-axes
> > are shown.
> > 
> >                   Hope that helps!
> >                              Curtis O.
> > 
> > 
> > 
> > 
> > 
> > On Tuesday 09 December 2008 05:00:12 sjoerd.c.devries at gmail.com wrote:
> > 
> > [...]
> > >
> > > Plot3D[2 - (x^2 + y^2), {x, -1, 1}, {y, -1, 1}, Boxed -> False,
> > >  AxesOrigin -> {0, 0, 0}, AspectRatio -> 1,
> > >  RegionFunction -> Function[{x, y, z}, x^2 + y^2 < 1]]
> > >
> > > Strangely, this hides the x and y-axes. Looks like a bug.
> > >
> > > Cheers -- Sjoerd
> 
> 



-- 
==========================================================
Curtis Osterhoudt
cfo at remove_this.lanl.and_this.gov
PGP Key ID: 0x4DCA2A10
Please avoid sending me Word or PowerPoint attachments
See http://www.gnu.org/philosophy/no-word-attachments.html
==========================================================


  • Prev by Date: Re: Continuous function, solve an equation and 2D image
  • Next by Date: Re: Drop elements from list
  • Previous by thread: Re: Re: A 3D Plot Query
  • Next by thread: Re: Re: A 3D Plot Query