Graphics, Figures & Tablestikz-3dplot | Spherical Plot without visible Lines

Information and discussion about graphics, figures & tables in LaTeX documents.
User avatar
Ijon Tichy
Posts: 640
Joined: Mon Dec 24, 2018 10:12 am

tikz-3dplot | Spherical Plot without visible Lines

Post by Ijon Tichy »

Or, as requested, make it completely red:

Code: Select all

\documentclass{article}
\usepackage{tikz}
\usepackage{tikz-3dplot}
\begin{document}
\tdplotsetmaincoords{70}{135}
\begin{tikzpicture}[scale=3,opacity=0.0,tdplot_main_coords,fill opacity=0.7]
\tdplotsphericalsurfaceplot{72}{36}%
{sqrt(15/2)*sin(\tdplottheta)*cos(\tdplottheta)}{transparent!0}{red}%
    {\draw[color=black,thick,->] (0,0,0) -- (2,0,0) node[anchor=north east]{$x$};}%
    {\draw[color=black,thick,->] (0,0,0) -- (0,2,0) node[anchor=north west]{$y$};}%
    {\draw[color=black,thick,->] (0,0,0) -- (0,0,2) node[anchor=south]{$z$};}%
\end{tikzpicture}
\end{document}
But IMHO this does not make much sense.

Maybe something like

Code: Select all

\documentclass{article}
\usepackage{tikz}
\usepackage{tikz-3dplot}
\begin{document}
\tdplotsetmaincoords{70}{135}
\begin{tikzpicture}[scale=3,opacity=0.0,tdplot_main_coords,fill opacity=0.7]
\tdplotsphericalsurfaceplot[parametricfill]{72}{36}%
{sqrt(15/2)*sin(\tdplottheta)*cos(\tdplottheta)}{transparent!0}{\tdplottheta}%
    {\draw[color=black,thick,->] (0,0,0) -- (2,0,0) node[anchor=north east]{$x$};}%
    {\draw[color=black,thick,->] (0,0,0) -- (0,2,0) node[anchor=north west]{$y$};}%
    {\draw[color=black,thick,->] (0,0,0) -- (0,0,2) node[anchor=south]{$z$};}%
\end{tikzpicture}
\end{document}

would make more sense.

See the description of \tdplotsphericalsurfaceplot in the tikz-3dplot manual for more information.
Sorry, but I can no longer participate here as the administrator is trampling on my wishes on one of his other platforms. :cry:

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Post Reply