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…

A Christmas tree 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, clip=false, y domain=0:2*pi, samples=30,axis equal,…

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…

Here’s an approach using pgfplotstable to calculate the Brownian motions as cumulative sums of random normally distributed values. You have to first initialize an empty…

This is a ternary diagram where each point does has a fourth value, besides the three that are the coordinates. Instead of stating this fourth…

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…

We would like to plot several two-dimensional functions in a three-dimensional graph. Tabulated data can be plotted in different planes quite easily by using addplot3…