## Sub series in stacked bar plot

Two series will be shown in a bar plot. Additionally, they contain sub series, which we would like to plot in the same diagram. So…

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

## Mandelbrot set

The Mandelbrot consists of points whose boundary is a two-dimensional fractal shape. It is named after the mathematician Benoit Mandelbrot. It’s computed using a lot…

## Edgeworth box-Optimal allocation of inputs for two economies

This edgeworth box describes the optimal allocation (pareto efficient) of inputs for the Cobb-Douglas production functions of two countries/regions (A and B). In addition, it…

## Combining surface and contour plots

Here we show how contour plots and 3D surface plots can be combined. Pgfplots can compute the z contours by means of gnuplot and its…

## Contour on a surface

We will combine surface and contour plots. We would like the contour lines drawn on the surface to be hidden by the surface in the…

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

## Weierstrass function

The Weierstrass function is a pathological one: is continuous everywhere but differentiable nowhere. The original code was written by Herbert Voss on TeX.SE, Stefan Kottwitz…