News

Figure Size, Aspect Ration, and DPI. Matplotlib allows the aspect ratio, DPI and figure size to be specified when the Figure object is created. You can use the figsize and dpi keyword arguments.
The following code in a Jupyter notebook produces a warning: %matplotlib inline import matplotlib.pyplot as plt fig, ax = plt.subplots() fig.set_tight_layout({'pad': 1}) ax.plot(range ...
Hello, I've found an unexpected behavior when I make grids of subplots with imshow and tight_layout the second to last plot is missing, for example: import numpy as np import matplotlib.pyplot as plt ...
Add atomic images to a pyplot figure. by Andrew Peterson. It can be nice to add atomic images directly to a figure made in pyplot (i.e., matplotlib). This is pretty simple to do using the tools of ASE ...