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


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

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

From Helen Read <readhpr@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: How show axes labels with AxesOrigin->{0,0,0} in 3D?
Date 2011-06-07 10:47 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <iskvkh$5qt$1@smc.vnet.net> (permalink)
References <isi9s0$lvi$1@smc.vnet.net>

Show all headers | View raw


On 6/6/2011 6:24 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)?

The labels are there, it's just difficult to see them, and they are 
strangely (poorly, really) placed. Try this.

plot1=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,
  AxesStyle -> Directive[Bold, 16]]


The labels certainly are not where I would put them. Compare:

plot2=Plot3D[x^2 - y^2, {x, -2, 2}, {y, -2, 2}, AxesLabel -> {x, y, z},
  BoxRatios -> {1, 1, 1}, Boxed -> False,
  AxesStyle -> Directive[Bold, 16]]


And if you change the ViewPoint to more or less approximate the way we 
draw it on the board in calculus class, the placement of the labels is 
even worse.

Compare:

Show[plot2,ViewPoint -> {2.362691025323322`, 1.7097627408932812`,
   1.7159261314840222`}]

Show[plot1,ViewPoint -> {2.362691025323322`, 1.7097627408932812`,
   1.7159261314840222`}]

In the latter, now the x label is in a very misleading place, and the y 
and z labels are right on top of each other to the point of illegibility.


-- 
Helen Read
University of Vermont

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


Thread

How show axes labels with AxesOrigin->{0,0,0} in 3D? Murray Eisenberg <murray@math.umass.edu> - 2011-06-06 10:24 +0000
  Re: How show axes labels with AxesOrigin->{0,0,0} in 3D? "Nasser M. Abbasi" <nma@12000.org> - 2011-06-07 10:47 +0000
  Re: How show axes labels with AxesOrigin->{0,0,0} in 3D? Helen Read <readhpr@gmail.com> - 2011-06-07 10:47 +0000

csiph-web