Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b758c88

Browse files
melissawmstory645
andcommitted
DOC: Improve styling on patches example code
Co-authored-by: hannah <[email protected]>
1 parent 5a9d0e3 commit b758c88

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

galleries/users_explain/quick_start.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -578,9 +578,7 @@ def my_plotter(ax, data1, data2, param_dict):
578578
circle = mpl.patches.Circle((2, 2), 0.5, facecolor='orange', edgecolor='black')
579579
ax.add_patch(circle)
580580

581-
ax.set_xlim(0, 3)
582-
ax.set_ylim(0, 3)
583-
ax.set_box_aspect(1)
581+
ax.set(xlim=(0, 3), ylim=(0, 3), box_aspect=1)
584582

585583
# %%
586584
# Working with multiple Figures and Axes

0 commit comments

Comments
 (0)