Hello! I am trying to draw a very simple 3d plot, actually trying to do something like this: http://www.texample.net/tikz/examples/the-3dplot-package/ ; is there maybe a similar example? I am especially confused as how to tackle the angles between angle and vectors...
Anyhow, I already run into problems placing the x-, y-, and z-labels correctly. If I just place the xlabel, you can already see that the position is badly out of place: http://ompldr.org/tY2p5bA However, if I then also place the ylabel, the entire thing breaks down: http://ompldr.org/tY2p5bQ What am I doing wrong here? Code is attached below. All the best, Janis Here is my code: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{arrows} \usepackage{pgfplots} \begin{document} \pgfmathsetmacro{\rvec}{.8} \pgfmathsetmacro{\thetavec}{30} \pgfmathsetmacro{\phivec}{60} \begin{tikzpicture} \begin{axis}[ view={115}{30}, axis lines=center, xlabel=$e^1$, ylabel=$e^2$, z post scale=1.5 ] \addplot3[-stealth',domain=0:4] ({x*sin(\thetavec)*cos(\phivec)},% {x*sin(\thetavec)*sin(\phivec)},% {x*cos(\thetavec)}); \end{axis} \end{tikzpicture} \end{document} ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ Pgfplots-features mailing list Pgfplots-features@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pgfplots-features