Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Arrows for the axes

How to get arrows for the axes when using the command Plot in Mathematica?

Thanks for any helpful answers.

like image 845
user376089 Avatar asked Apr 30 '11 21:04

user376089


1 Answers

For 2D plots such as generated by Plot the following works great:

Plot[Sin[x], {x, 0, 10}, AxesStyle -> Arrowheads[0.07]]

enter image description here

or with custom arrow heads:

h = Graphics[Line[{{-1, 1/2}, {0, 0}, {-1, -1/2}}]];
Plot[Sin[x], {x, 0, 10}, 
 AxesStyle -> Arrowheads[{{Automatic, Automatic, h}}]]

enter image description here

like image 193
Sjoerd C. de Vries Avatar answered Sep 18 '22 14:09

Sjoerd C. de Vries