Create README.md
Signed-off-by: David Rotermund <54365609+davrot@users.noreply.github.com>
This commit is contained in:
parent
c0dfdb8978
commit
5f7522ab14
1 changed files with 40 additions and 0 deletions
40
matplotlib/subplot/README.md
Normal file
40
matplotlib/subplot/README.md
Normal file
|
@ -0,0 +1,40 @@
|
|||
# subplot
|
||||
{:.no_toc}
|
||||
|
||||
<nav markdown="1" class="toc-class">
|
||||
* TOC
|
||||
{:toc}
|
||||
</nav>
|
||||
|
||||
## 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)
|
||||
|
||||
|
Loading…
Reference in a new issue