Skip to content

Latest commit

 

History

History

matplotlib

README.md

Matplotlib

Matplotlib is the de facto standard to create scientific plots when using Python.

What is it?

  1. animation.py: illustrates how to create a Matplotlib animation and save it as an MP4 file with ffmpeg.
  2. distribution_plot.py: takes a file as input and plots the values as a histogram. Optionally, it can superimpose a specified theoretical distribution as well.
  3. function_plot.py: plots the amplitude of an ideal, damped pendulum. It illustrates how to plot multiple curves on the same plot, how to set axis labels, a title, and arbitrary annotation.
  4. heatmap_plot.py: illustrates how to plot a heatmap.
  5. ising.py: alternative way of creating a GIF movie for the Ising model describing the paramagnetic/ferromagnetic phase transition in the mean field approximation.
  6. surface_plot.py: illustrates how to plot 3D surface plots.
  7. spiral.py: generates pretty picture.
  8. multiple_plots.ipynb: Jupyter notebook illustrating how to create multiple plots in a single figure.