You are reading an old version of the documentation (v1.4.2). For the latest version see

Previous topic

style_sheets example code:

Next topic

style_sheets example code:

This Page

style_sheets example code: plot_fivethirtyeight.pyΒΆ

(Source code, png, hires.png, pdf)

This shows an example of the "fivethirtyeight" styling, which
tries to replicate the styles from

from matplotlib import pyplot as plt
import numpy as np

x = np.linspace(0, 10)

    plt.plot(x, np.sin(x) + x + np.random.randn(50))
    plt.plot(x, np.sin(x) + 0.5 * x + np.random.randn(50))
    plt.plot(x, np.sin(x) + 2 * x + np.random.randn(50))

Keywords: python, matplotlib, pylab, example, codex (see Search examples)