# Tag Info

9

You can plot 4 half tori like this : \documentclass{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.12} \pgfplotsset{ torus/.style 2 args={ surf, color=#1!50,faceted color=#1, samples=17, z buffer=sort, domain=0:360, y domain=#2:#2+180 } } \def\m{sin(x)} \def\n{(2+cos(x))*sin(y)} \def\p{(2+cos(x))*cos(y)} \begin{document} ...

6

Not elegant, but functional: \documentclass[10pt]{article} \usepackage{tikz} \begin{document} \begin{center} \begin{tikzpicture}[domain=0:6] \fill[violet][domain=0.17:6][samples=500] plot (\x, 1/\x) node[right] {$xy = 1$}; \fill[white][domain=0.51:6][samples=500] plot (\x, 3/\x) node[right] {$xy = 3$}; \fill[white] (0,0)--(6,6)--(6,0)--cycle; ...

6

You probably should consider using the pgfplots package for such tasks. Here's an example how that could be done. There are many other options like labeling the graphs, adding a legend... Code \documentclass[tikz, border=2mm]{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.12} \usepgfplotslibrary{fillbetween} \begin{document} \begin{tikzpicture} ...

5

TeX has insufficient math capabilities for drawing this graph with sufficient accuracy; no software can draw it near zero, of course. With gnuplot, restricting the domain to a more sensible interval and increasing the number of samples, I get a good drawing: \documentclass[12pt]{article} \usepackage{pgfplots} \usepackage{tikz} \begin{document} ...

5

This answer is based on g.kov's excellent answer, but uses the relatively new smoothcontour3 module to produce a nicer-looking surface. The smoothcontour3 module has been incorporated into Asymptote version 2.33 (released 11 May 2015, just a little too late for the Tex Live 2015 cutoff), so if you have that version or later, you should not need to download ...

4

You can create a parametric plot, placing samples closer together as x\to 0. In this case, x=1, 10/11, 10/12, ..., 0.01 \documentclass[12pt]{article} \usepackage{float} \usepackage{pgfplots} \usepackage{tikz} \begin{document} \begin{figure}[H] \centering \begin{tikzpicture} \begin{axis}[ xmin=-0.01, xmax=1.05, ymin=-0.01, ...

4

If all you need is to plot the function, then pgfplots is quite easy. You just add \usepackage{pgfplots} to the preamble, and use \begin{tikzpicture} \begin{axis} \addplot [domain=0:10,samples=50] {(x-5)^3-3*(x-5)^2-18*(x-5)+40}; \addplot [domain=10:15] {60-6*x}; \end{axis} \end{tikzpicture} You can customize this and add annotations directly in the plot, ...

3

Changing your definition of the cycle a little bit by removing the final ,, which introduced an empty style for the 9th line and adding % for stability (didn't compile on my system without them) you get \pgfplotscreateplotcyclelist{mycyclelist}{% {UniBlau, line width = 2pt},% {UniGruen, line width = 2pt},% {UniOrange, line width = 2pt},% {UniRot, ...

3

Run with xelatex: \documentclass[pstricks]{standalone} \usepackage{pst-solides3d} \begin{document} \psset{Decran=50,viewpoint=20 80 30,lightsrc=viewpoint,action=none} \begin{pspicture}[solidmemory](-4,-3)(3,3) \psSolid[r1=2.5,r0=1.5,object=tore,ngrid=18 36,fillcolor=green!30,name=tA] \psSolid[r1=2.5,r0=1.5,object=tore,ngrid=18 ...

2

You can use axis lines=none as an option of the axis environment. Note that this option is only an alias for hide axis. So you get the same result with both. \documentclass[margin=5pt]{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.12} \begin{document} \begin{tikzpicture} \begin{axis}[ axis lines=none,% domain=0.125:1000, xmin=-10, ...

Only top voted, non community-wiki answers of a minimum length are eligible