From 5f7522ab14179e0c50a80c8ae44e949003160dd1 Mon Sep 17 00:00:00 2001 From: David Rotermund <54365609+davrot@users.noreply.github.com> Date: Fri, 22 Dec 2023 15:45:59 +0100 Subject: [PATCH] Create README.md Signed-off-by: David Rotermund <54365609+davrot@users.noreply.github.com> --- matplotlib/subplot/README.md | 40 ++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 matplotlib/subplot/README.md diff --git a/matplotlib/subplot/README.md b/matplotlib/subplot/README.md new file mode 100644 index 0000000..c1d6753 --- /dev/null +++ b/matplotlib/subplot/README.md @@ -0,0 +1,40 @@ +# subplot +{:.no_toc} + + + +## The goal + + +Questions to [David Rotermund](mailto:davrot@uni-bremen.de) + + +```python +import numpy as np + +import matplotlib.pyplot as plt + +rng = np.random.default_rng() + +plt.figure(1) +plt.subplot(2, 2, 1) +plt.imshow(rng.random((10, 100))) +plt.title("A") +plt.subplot(2, 2, 2) +plt.imshow(rng.random((5, 10))) +plt.title("B") +plt.subplot(2, 2, 3) +plt.imshow(rng.random((50, 20))) +plt.title("C") +plt.subplot(2, 2, 4) +plt.imshow(rng.random((100, 200))) +plt.title("D") +plt.show() +``` + +![image0](image0.png) + +