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
Using example_plast as a starting point, I'm trying to get o.plot() to show stranded plastics in a different color. I had a look in the code, and it seems colors are decided by the dictionary status_colors. I tried passing this as an argument to the drifter class:
Yes, status_colors is not an input parameter to the plot methods (it could have been), but instead a property of the class, and can thus have different default values for different classes.
So you can set it before your plotting: o2.status_colors={'initial': 'green', 'active': 'blue', 'stranded':'red'}
Using example_plast as a starting point, I'm trying to get o.plot() to show stranded plastics in a different color. I had a look in the code, and it seems colors are decided by the dictionary
status_colors
. I tried passing this as an argument to the drifter class:But this gives me an error message:
Is there another way to achieve the different colors?
The text was updated successfully, but these errors were encountered: