Git Product home page Git Product logo

Comments (2)

mscross avatar mscross commented on September 15, 2024

It would be awesome if graduated color lines could be done in matplotlib- edit: apparently this is possible, but with a LineCollection of line segments, each with its own color- I approximate with scatter plots. I just posted a basic scatter plotting/more advanced MapDesign example, which shows two different methods of scatter plotting- one using basemap.scatter() and the other using pysplit.traj_scatter(), which is the new and improved version of pysplit.map_data_scatter() that you read about. This doesn't directly answer your question yet of how to plot moisture uptakes (Trajectory.uptake) , which can be slightly more complicated than just plotting the basic along-trajectory data in Trajectory.data, but it'll get you going on the right track. I'm still working on the more advanced scatter plotting examples.

As a general commentary/feedback, in your example code you are making a series of floats that you then use to pick 65 colors from the Blues colormap. The colors of your trajectories represent their order in trajgroup, not meteorological or uptake information. Basic path plotting/color coding is available as an example, as is integration error calculation (and if necessary, there is information on reverse trajectory generation and loading), and rainstatus merely indicates which existing trajectories produce rain within a certain range of time 0. Also, that's a very creative but unintended way to create a Basemap using PySPLIT. In fact, you're not actually using PySPLIT except as a sort of middleman- you're calling matplotlib Basemap through the mapdesigner module, which imports Basemap. I suggest having a look at the examples to see how MapDesign is ideally used.

Hope this helps!
Mellissa

from pysplit.

mariajmolina avatar mariajmolina commented on September 15, 2024

Mellissa,

This helps a great deal. Thank you so much again for your feedback. I have been going through some literature review, and can see how much more complex the moisture uptake calculation can be versus basic along trajectory data. I will take a crack at working with the along traj data for now and probably have more questions for you after that... :-)

Thanks again. I really appreciate your time. Looking forward to your more advanced scatter plotting examples.

Best,
Maria

from pysplit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.