Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d2d9187

Browse filesBrowse files
committed
#25900 update figure.py
Added variable "fig" for creating a figure
1 parent 2466ccb commit d2d9187
Copy full SHA for d2d9187

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎lib/matplotlib/figure.py

Copy file name to clipboardExpand all lines: lib/matplotlib/figure.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -873,7 +873,7 @@ def subplots(self, nrows=1, ncols=1, *, sharex=False, sharey=False,
873873
y = np.sin(x**2)
874874
875875
# Create a figure
876-
plt.figure()
876+
fig = plt.figure()
877877
878878
# Create a subplot
879879
ax = fig.subplots()

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.