Group Abstract Group Abstract

Message Boards Message Boards

0
|
7.2K Views
|
5 Replies
|
5 Total Likes
View groups...
Share
Share this post:

[?] Get plot with just axes crossing at the origin?

Posted 8 years ago

Hi, when I plot (3D) a 2 variable scalar function in wolfram Mathemática I always get the function in a box formed by the axis. How could I get rid of that box and just see the surface I´m plotting and the three ortogonal axis crossing at the origin??

POSTED BY: Victor Gutierrez
5 Replies
POSTED BY: Gianluca Gorni
Posted 8 years ago
POSTED BY: Hans Milton
POSTED BY: Victor Gutierrez
Posted 8 years ago
POSTED BY: Hans Milton

In dimension 2 it's easy:

Graphics[Circle[], Axes -> True, AxesStyle -> Arrowheads[.1]]

In dimension 3 the box can be deleted with Boxed->False and perhaps Axes->False too. To get the arrows one roundabout way is this:

pl = Graphics3D[{Opacity[.1], Sphere[]}];
{{xmin, xmax}, {ymin, ymax}, {zmin, zmax}} = 
  PlotRange /. AbsoluteOptions[pl, PlotRange];
Show[pl, Graphics3D[{Arrow[{{xmin, 0, 0}, {xmax, 0, 0}}], 
   Arrow[{{0, ymin, 0}, {0, ymax, 0}}], 
   Arrow[{{0, 0, zmin}, {0, 0, zmax}}]}], Boxed -> False]

It can be automated, if necessary. Anyone knows a more elegant solution?

POSTED BY: Gianluca Gorni
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard