Skip to content

Commit a8baf8a

Browse files
Monorail map example: use ax not setp object to hide axes & labels
Co-authored-by: Greg Lucas <[email protected]>
1 parent f0bc1ad commit a8baf8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/miscellanea/simpsons-monorail-map.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def main():
5353
)
5454

5555
# Remove all axes ticks and labelling and center on location of USA
56-
plt.setp(map_ax, xticks=[], yticks=[])
56+
map_ax.set(xticks=[], yticks=[])
5757
map_ax.set_extent([-120, -72.5, 20, 50], crs=ccrs.Geodetic())
5858

5959
# Plot only the USA landmass, in a fawn colour with a thin black border

0 commit comments

Comments
 (0)