From 0622a2135033ea1bac8261c28eacfe4a5a9c274a Mon Sep 17 00:00:00 2001 From: Frank Sauerburger <frank@sauerburger.com> Date: Thu, 28 Nov 2019 00:33:37 +0100 Subject: [PATCH] Add super minimal example --- super_minimal.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 super_minimal.py diff --git a/super_minimal.py b/super_minimal.py new file mode 100644 index 0000000..4a2bfb8 --- /dev/null +++ b/super_minimal.py @@ -0,0 +1,15 @@ + +import matplotlib.pyplot as plt + +# Data +data = [0, 0, 1, 1, 1] + +# Bin edges +bins = [0, 1, 2] + +plt.hist(data, + bins=bins, + bottom=[1, 2], # Set lower edge + histtype='stepfilled') + +plt.savefig("super_minimal.png") -- GitLab