matplotlib is back ! #248
12rambau
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
WE can plot
Context
Many users (including me) are running piplines and script using the GEE API in Python. In the wonderland of
.py
where IPython kernel is not available, there is no sign ofbokhe
,plotly
,bqplot
and other interactive options. In these desolated lands reigns a single master... 🥁:matplotlib
There also a bunch of Python developer (incluing me) that spend a decent amount of time learning and mastering matplotlib so it can be used in interactive context as well.
When dealing with GEE objects we currently have no non-interactive, client side options to draw the nice charts that are available in the code editor. So, I coded this WE some plotting capabilities in
geetools
extension. I started with theee.FeatureCollection
but I think the other objects should be done by the end of march.What can you do ?
As a starter you can now extract data from a
ee.FeatureCollection
as a server-sideee.Dictionary
either labeled by feature (byFeature
):Or by properties (
byProperty
):This is not particularly useful but that is the based data format fo all plots so I decided to expose them.
Then starts the intersting things, the plotting mechanisms. I created 3 client-side functions:
plot_by_properties
,plot_by_features
andplot_hist
.Here is a small example from the documentation, all the options are displayed in the demo page so I hope to see you there!
These new functions are available in the v1.3.0 of the lib. I of course know it's not sufficient but it's a start. By myself I cannot see all the edge cases, so if you want to join the adventure I'm looking for testers to provide feedback on the lib and these functions, happy to read your thoughts in our issue tracker!
Beta Was this translation helpful? Give feedback.
All reactions