Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gridcorner
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gregory Ashton
gridcorner
Commits
b5d1e162
Commit
b5d1e162
authored
4 years ago
by
David Keitel
Browse files
Options
Downloads
Patches
Plain Diff
allow single-param plot with np.atleast_2d(axes)
parent
0ae78ed7
No related branches found
No related tags found
1 merge request
!3
allow single-param plot with np.atleast_2d(axes)
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
gridcorner.py
+1
-0
1 addition, 0 deletions
gridcorner.py
with
1 addition
and
0 deletions
gridcorner.py
+
1
−
0
View file @
b5d1e162
...
...
@@ -56,6 +56,7 @@ def _get_fig_and_axes(ndim, factor, whspace):
plotdim
=
factor
*
ndim
+
factor
*
(
ndim
-
1.
)
*
whspace
dim
=
lbdim
+
plotdim
+
trdim
fig
,
axes
=
plt
.
subplots
(
ndim
,
ndim
,
figsize
=
(
dim
,
dim
))
axes
=
np
.
atleast_2d
(
axes
)
# allow single-parameter plots
# Format the figure.
lb
=
lbdim
/
dim
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment