Thanks to visit codestin.com Credit goes to github.com
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 7e71feb commit 5caf399Copy full SHA for 5caf399
doc/users/next_whats_new/imshow_extent_units.rst
@@ -11,7 +11,7 @@ can now be expressed with units.
11
from matplotlib.dates import HourLocator, DateFormatter
12
from matplotlib.ticker import AutoMinorLocator
13
14
- fig, ax = plt.subplots(figsize=(6, 4))
+ fig, ax = plt.subplots(layout='constrained')
15
date_first = np.datetime64('2020-01-01', 'D')
16
date_last = np.datetime64('2020-01-11', 'D')
17
@@ -23,6 +23,4 @@ can now be expressed with units.
23
ax.yaxis.set_major_locator(HourLocator(byhour=[0, 12, 24]))
24
ax.yaxis.set_minor_locator(AutoMinorLocator())
25
26
- fig.tight_layout()
27
-
28
plt.show()
0 commit comments