Skip to content
Snippets Groups Projects
Commit 48f2fc8f authored by Gregory Ashton's avatar Gregory Ashton
Browse files

Merge branch 'patch-1' into 'master'

allow single-param plot with np.atleast_2d(axes)

See merge request !3
parents 0ae78ed7 b5d1e162
No related branches found
No related tags found
1 merge request!3allow single-param plot with np.atleast_2d(axes)
...@@ -56,6 +56,7 @@ def _get_fig_and_axes(ndim, factor, whspace): ...@@ -56,6 +56,7 @@ def _get_fig_and_axes(ndim, factor, whspace):
plotdim = factor * ndim + factor * (ndim - 1.) * whspace plotdim = factor * ndim + factor * (ndim - 1.) * whspace
dim = lbdim + plotdim + trdim dim = lbdim + plotdim + trdim
fig, axes = plt.subplots(ndim, ndim, figsize=(dim, dim)) fig, axes = plt.subplots(ndim, ndim, figsize=(dim, dim))
axes = np.atleast_2d(axes) # allow single-parameter plots
# Format the figure. # Format the figure.
lb = lbdim / dim lb = lbdim / dim
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment