3D plot using tikz

Djones9976 djones9976 at aol.com
Fri Sep 4 06:39:51 CEST 2020


I am using the following code to plot the first 7 Bessel functions of half-integer order, J(1/2) through J(13/2).   It works well except I cannot get it to plot the negative points.  Can anyone tell me where I am going wrong on this.   I am using TexShop on iMac to do this work for a textbook on quantum mechanics.D. W. Jones
\begin{document}\begin{tikzpicture}
\pgfplotstableread{plot1   plot2    plot3   plot4  plot5  plot6  plot7   0.01   0.00   0.00   0.00   0          0    0  0.54   0.09   0.01   0.00   0.00   0.00   0    0.67   0.24   0.05   0.01   0.00   0.00   0   0.65   0.39   0.12   0.03   0.00   0.00   0.01  0.51   0.49   0.22   0.07   0.02   0.00   (0.01) 0.30   0.53   0.33   0.13   0.04   0.01   (0.01) 0.06   0.48   0.41   0.21   0.08   0.02   (0.00) (0.15)  0.36   0.46   0.29   0.13   0.05   (0.00) (0.30)  0.19   0.44   0.37   0.20   0.08   0.01  (0.37)  (0.00)  0.37   0.41   0.27   0.13   0.02  (0.34)  (0.17)  0.24   0.41   0.33   0.19   0.05  (0.24)  (0.28)  0.08   0.36   0.38   0.25   0.08  (0.09)  (0.33)  (0.07)  0.27   0.38   0.31   0.13  0.07   (0.30)  (0.20)  0.14   0.35   0.35   0.19  0.20   (0.20)  (0.28)  (0.00)  0.28   0.36   0.24  0.27   (0.06)  (0.30)  (0.13)  0.17   0.34   0.28  0.28   0.08   (0.25)  (0.23)  0.05   0.29   0.31  0.22   0.19   (0.15)  (0.28)  (0.08)  0.20   0.31  0.11   0.25   (0.02)  (0.27)  (0.18)  0.08   0.28  (0.02)  0.26   0.10   (0.20)  (0.25)  (0.03)  0.21  (0.14)  0.20   0.20   (0.10)  (0.27)  (0.14)  0.13  }\dummydata\begin{axis}[    samples=30,    domain=-7:7,    samples y=1, ytick={1,...,7},    zmin=-1,    area plot/.style={        fill opacity=0.75,        draw=orange!80!black,thick,        fill=orange,        mark=none,    }]\pgfplotsinvokeforeach{7,6,...,1}{    \addplot3 [area plot] table [x expr=\coordindex, y expr=#1, z=plot#1]      {\dummydata};}\end{axis}\end{tikzpicture}
\end{document}
 
 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/texhax/attachments/20200904/2bfb8a6f/attachment-0001.html>


More information about the texhax mailing list.