This Lemniscate envelope is generated by sweeping a circle, which has its center on a hyperbola. This code was written by Pouya on TeX.SE. LuaLaTeX…

For drawing a spiral cone, we need to find an appropriate parametrization. This code was written by Gonzalo Medina on TeX.SE. \documentclass[border=5pt]{standalone} \usepackage{pgfplots} \pgfplotsset{width=7cm,compat=1.8} \usetikzlibrary{decorations.markings}…

Using PGFPlotstable, we can use a naive numerical integration scheme to find the function directly within LaTeX. This code was written by Jake on TeX.SE.…

Here, the trick is to use stack plots=y together with closedcycle to create the error bands. We define a new command, \addplotwitherrorbands[<optional styles>]{<function>}{<positive error>} {<negative…

A Moebius strip plot. This code was written by Jake on TeX.SE. \documentclass[border=10pt]{standalone} \usepackage{pgfplots} \pgfplotsset{width=7cm,compat=1.8} \begin{document} \begin{tikzpicture} \begin{axis}[ hide axis, view = {40}{40} ] \addplot3…

We would like to draw a bivariate normal distribution and show where the means from the two variables meet in the space. There are a…

We would like to draw a regression line through some points. For an illustration, we will generate random points. PGFPlots can calculate the regression line…

We would like to intersect a 3D plot with a plane. The problem is not to get the two functions into a plot, but to…