We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 961de9b commit 71fa500Copy full SHA for 71fa500
doc/api/index.rst
@@ -26,14 +26,15 @@ methods on them to plot data, add axis labels and a figure title.
26
import matplotlib.pyplot as plt
27
import numpy as np
28
29
- x = np.arange(0, 4, 0.1)
+ x = np.arange(0, 4, 0.05)
30
y = np.sin(x*np.pi)
31
32
fig, ax = plt.subplots(figsize=(3,2), constrained_layout=True)
33
ax.plot(x, y)
34
ax.set_xlabel('t [s]')
35
ax.set_ylabel('S [V]')
36
- fig.suptitle('Sine wave')
+ ax.set_title('Sine wave')
37
+ fig.set_facecolor('lightsteelblue')
38
39
40
Modules
0 commit comments