Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #3026

Re: How show axes labels with AxesOrigin->{0,0,0} in 3D?

From Murray Eisenberg <murray@math.umass.edu>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: How show axes labels with AxesOrigin->{0,0,0} in 3D?
Date 2011-06-08 11:16 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <isnllk$n7b$1@smc.vnet.net> (permalink)

Show all headers | View raw


Aha! Thanks for spotting that the 3D axes labels are really there. But 
they're hardly in an optimal position.

In 2D, the axes labels are at the ends of the axes. So you'd think, for 
the sake of Mathematica's much-vaunted consistency, that the same would 
be the case in 3D.

The example does not really make a reasonable argument against using 
axes in 3D that emanate from the origin. Rather, it makes a convincing 
argument that WRI made a dumb design decision when they implemented 
AxesOrigin for 3D.

On 6/7/2011 6:46 AM, Robert Rosenbaum wrote:
> Running your example on my Mathematica 7 in OS X, the axes labels appear, but are small and difficult to distinguish from the mesh lines on the surface.  I hazard to guess that they appear on your machine too, but you failed to detect them by eye.
>
> The following modification makes the labels more apparent:
>
> mystyle = {Red, 16};
> Plot3D[x^2 - y^2, {x, -2, 2}, {y, -2, 2}, AxesOrigin ->  {0, 0, 0},
>   AxesLabel ->  {Style["x", mystyle], Style["y", mystyle],
>     Style["z", mystyle]}, BoxRatios ->  {1, 1, 1}, Boxed ->  False,
>   MeshStyle ->  None]
>
> Incidentally, your example makes a reasonable argument against using axes that emanate from the origin.  Of course, if axes labels were placed at the ends of the axes instead of along the axes, they would be easier to see in your example.  Perhaps there is a way to accomplish this.
>
>
>
> On Jun 6, 2011, at 5:23 AM, Murray Eisenberg wrote:
>
>> Since Mathematica 7, 3D graphics has allowed the AxesOrigin option so
>> that, for example, the axes can go through the origin {0,0,0}, just like
>> the way that mathematicians (or at least college calculus teachers) do
>> it and teach their students to do it.
>>
>> That works, but...
>>
>> If you include an AxesLabel option, the labels do not appear, e.g., from:
>>
>>     Plot3D[x^2 - y^2, {x, -2, 2}, {y, -2, 2},
>>            AxesOrigin ->  {0, 0, 0},
>>            AxesLabel ->  {x, y, z},
>>            BoxRatios ->  {1, 1, 1}, Boxed ->  False]
>>
>> Is there some way to make the axes labels appear (other than to add them
>> manually using the Text function, say in an Epilog)?
>>
>> [And is this just another instance of WRI protracted stubbornness even
>> in admitting that having 3D axes emanating from the origin is a
>> permissible way of handling 3D graphics?  (Scientific/engineering
>> convention seems overwhelmingly to favor axes along edges of a 3D
>> graphic, whereas in math -- as I suggested, at least in multivariable
>> calculus -- axes emanating from the origin is the norm.)
>>
>> --
>> Murray Eisenberg                     murray@math.umass.edu
>> Mathematics&  Statistics Dept.
>> Lederle Graduate Research Tower      phone 413 549-1020 (H)
>> University of Massachusetts                413 545-2859 (W)
>> 710 North Pleasant Street            fax   413 545-1801
>> Amherst, MA 01003-9305
>>
>
>
> Best,
> Robert
>
>
>
>
>

-- 
Murray Eisenberg                     murray@math.umass.edu
Mathematics & Statistics Dept.
Lederle Graduate Research Tower      phone 413 549-1020 (H)
University of Massachusetts                413 545-2859 (W)
710 North Pleasant Street            fax   413 545-1801
Amherst, MA 01003-9305

Back to comp.soft-sys.math.mathematica | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Re: How show axes labels with AxesOrigin->{0,0,0} in 3D? Murray Eisenberg <murray@math.umass.edu> - 2011-06-08 11:16 +0000
  Re: How show axes labels with AxesOrigin->{0,0,0} in 3D? Peter Breitfeld <phbrf@t-online.de> - 2011-06-09 09:45 +0000
  Is there ToNumber? Ted Sariyski <tsariysk@craft-tech.com> - 2011-06-11 07:59 +0000
    Re: Is there ToNumber? Albert Retey <awnl@gmx-topmail.de> - 2011-06-14 11:52 +0000
    How to extract a pattern Ted Sariyski <tsariysk@craft-tech.com> - 2011-06-15 11:20 +0000
    Re: Is there ToNumber? "Hans Michel" <hmichel@cox.net> - 2011-06-16 08:02 +0000
  Re: Is there ToNumber? "Dr. Peter Klamser" <klamser@googlemail.com> - 2011-06-11 10:52 +0000
  Re: Is there ToNumber? "Harvey P. Dale" <hpd1@nyu.edu> - 2011-06-12 09:07 +0000
  Re: Is there ToNumber? ADL <alberto.dilullo@tiscali.it> - 2011-06-12 09:07 +0000
  Re: Is there ToNumber? "Hans Michel" <hmichel@cox.net> - 2011-06-12 23:00 +0000
  Re: Is there ToNumber? "Dr. Peter Klamser" <klamser@googlemail.com> - 2011-06-12 23:01 +0000
  Re: Is there ToNumber? DrMajorBob <btreat1@austin.rr.com> - 2011-06-15 11:19 +0000
  Re: Is there ToNumber? Daniel Lichtblau <danl@wolfram.com> - 2011-06-15 11:19 +0000

csiph-web