I use the following code to draw arrows on arrows in 2D graphics:
Plot[Sin[x],{x,-10,10},AxesStyle->Arrowheads[Automatic]]
But such code doesn't work with Plot3D[…] and 3D graphics.
Is there any way to get axes with arrows on 3D graphics?
|
I use the following code to draw arrows on arrows in 2D graphics:
But such code doesn't work with Is there any way to get axes with arrows on 3D graphics? |
|||
|
Here is a simple way to do this:
This function draws three axes with arrows. To apply it:
This doesn't have axis labels, though. To add labels by leveraging the built-in axes, one compromise (to save the work of making all labels by hand) would be to do the following:
Edit
In my attempt at a labeled set of axes above, I deliberately set the axes to be invisible but left the ticks visible. You may find it more visually consistent to keep the default axes visible, together with the new 3D arrow-axes. For this, one could replace |
|||||||||||
|
*Stylefunctions provide. – rm -rf♦ Mar 10 '12 at 18:35