Skip to content

Commit 54dc8f5

Browse files
core-manweiji14
andauthored
Use a list to plot the rectangle
Co-authored-by: Wei Ji <23487320+weiji14@users.noreply.github.com>
1 parent 11a1c95 commit 54dc8f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/gallery/plot/inset-rectangle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
area_thresh=10000,
4040
)
4141
# Plot a rectangle in the inset map to show the area of the primary figure
42-
rectangle = np.array([[region[0], region[2], region[1], region[3]]])
42+
rectangle = [[region[0], region[2], region[1], region[3]]]
4343
fig.plot(data=rectangle, style="r+s", pen="1p,blue")
4444

4545
fig.show()

0 commit comments

Comments
 (0)