## Group plot

A group plot example, posted by Elke Schubert on TeXwelt.de. \documentclass[margin=5mm]{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.8} \usepackage{pgfplotstable} \usepgfplotslibrary{groupplots} \begin{document} \begin{tikzpicture} % Read the file % if needed, define…

## Regression with Residuals

We will draw a regression line through some points, as in http://pgfplots.net/tikz/examples/regression-line/ . This time, we will implement a style for negative and positive residuals…

## Graph within a table

We would like to plot a graph within a table column, similar to the weather data example. We will use the booktabs package for good…

## Differential equation direction plot

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.…

## Plot with error intervals

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…

## Brownian motions

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…

## Plotting several 2d functions in a 3d graph

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…

## Scatter Plot

We want to generate a scatter plot: assume that we are given a couple of special (x; y) coordinates along with color data at every…

## Convergence Plot

We assume that we did some scientfic experiment. The scientific experiment yielded three input data tables: one table for each involved parameter d = 2,…