You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am delighted that .add_feature() now allows for transparency via an alpha parameter; this goes a long way to decluttering busy maps. Unfortunately, the same feature is not available for stock_img(), and I was wondering why. I am admittedly ignorant of the way the background is implemented in Cartopy, but given that a lot of matplotlib objects have an alpha parameter, I was hoping this would be a matter of exposing it at the API level. Is this thinking too simplistic?
Proposal
ax.stock_img(alpha=0.5) reduces background opacity by 50%, for instance.
The text was updated successfully, but these errors were encountered:
stock_img passes the image to imshow, and imshow handles alpha. So it looks to me that it might indeed just be a case of exposing the keyword, though I am certainly no expert here.
Description
I am delighted that
.add_feature()
now allows for transparency via analpha
parameter; this goes a long way to decluttering busy maps. Unfortunately, the same feature is not available forstock_img()
, and I was wondering why. I am admittedly ignorant of the way the background is implemented in Cartopy, but given that a lot of matplotlib objects have an alpha parameter, I was hoping this would be a matter of exposing it at the API level. Is this thinking too simplistic?Proposal
ax.stock_img(alpha=0.5)
reduces background opacity by 50%, for instance.The text was updated successfully, but these errors were encountered: