just took notice of the tikz-3dplot package and especially the
\tdplotsphericalsurfaceplot
macro. Is there any way to omit drawing the lines, e.g. in http://www.texample.net/tikz/examples/s ... th-3dplot/?
\tdplotsphericalsurfaceplot
macro. NEW: TikZ book now 40% off at Amazon.com for a short time.
Which lines do you exactly mean? Did you already take a look at the tikz-3dplot manual?tomtom wrote:[…] Is there any way to omit drawing the lines […]
tikZ cannot handle (in)visible lines and areas ...tomtom wrote: just took notice of the tikz-3dplot package and especially the\tdplotsphericalsurfaceplot
macro.
Is there any way to omit drawing the lines, e.g. in http://www.texample.net/tikz/examples/s ... th-3dplot/?
It sort of can, with the transparent!0 color, though it's still slightly visible. Alternatively you could set the opacity of the line to 0.0:CrazyHorse wrote:tikZ cannot handle (in)visible lines and areas ...
Code: Select all
\begin{tikzpicture}
\filldraw[fill=green] (0,0) rectangle (4,4);
\draw[opacity=0.0] (0,0) -- (4,4);
\end{tikzpicture}
The best I can come up with is this:tomtom wrote:Is there at least a way to reduce the line width?
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}{\tdplotphi}%
{\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}
that is not handled by tikZ ...shadgrind wrote:It sort of can, with the transparent!0 color, though it's still slightly visible. Alternatively you could set the opacity of the line to 0.0:CrazyHorse wrote:tikZ cannot handle (in)visible lines and areas ...
No, you're wrong. Did you even try that miniexample I gave? Here's a full example to make it even clearer:CrazyHorse wrote:that is not handled by tikZ ...shadgrind wrote:It sort of can, with the transparent!0 color, though it's still slightly visible. Alternatively you could set the opacity of the line to 0.0:CrazyHorse wrote:tikZ cannot handle (in)visible lines and areas ...
Code: Select all
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\fill[fill=yellow!50] (0,0) rectangle (2,4);
\fill[fill=red!50] (2,0) rectangle (4,4);
\draw[opacity=0.0] (0,0) -- (4,4)
node[opacity=1,pos=0] {start} node[opacity=1,pos=1] {end};
\fill[opacity=0.0] (1,3) circle (1);
\end{tikzpicture}
\end{document}
shadgrind wrote:It sort of can, with the transparent!0 color, though it's still slightly visible. Alternatively you could set the opacity of the line to 0.0:CrazyHorse wrote:tikZ cannot handle (in)visible lines and areas ...Code: Select all
\begin{tikzpicture} \filldraw[fill=green] (0,0) rectangle (4,4); \draw[opacity=0.0] (0,0) -- (4,4); \end{tikzpicture}
The best I can come up with is this:tomtom wrote:Is there at least a way to reduce the line width?
The result looks like this: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}{\tdplotphi}% {\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}
sphere3dtikz.png
Code: Select all
\documentclass[gray]{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}{\tdplotphi}%
{\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}
NEW: TikZ book now 40% off at Amazon.com for a short time.