When using matplotlib versions older than 3.5, the layout keyword argument usage in plt.figure / plt.subplots crashes (used in cabinetry.visualize), as this was only introduced in 3.5. To fix this, we should either raise the minimum required matplotlib version or refactor the implementation to avoid the use of this keyword argument.
When using
matplotlib
versions older than 3.5, thelayout
keyword argument usage inplt.figure
/plt.subplots
crashes (used incabinetry.visualize
), as this was only introduced in 3.5. To fix this, we should either raise the minimum requiredmatplotlib
version or refactor the implementation to avoid the use of this keyword argument.(reported by @kratsg, thank you!)