Coder Social home page Coder Social logo

Comments (7)

AdamTheisen avatar AdamTheisen commented on June 14, 2024

@rcjackson @scollis Any ideas on how to speed up 2D plotting? 1 day of kazr and 1 day of mpl combined in 2 panel plot took about 5 minutes

from act.

kenkehoe avatar kenkehoe commented on June 14, 2024

I had to downsample the data in the object to my plots to render faster. Not sure if we want to do that. Otherwise I have not found any faster plotting options.

from act.

AdamTheisen avatar AdamTheisen commented on June 14, 2024

Yeah, maybe we just need to note that users should downsample data before plotting if they need a speed increase

from act.

kenkehoe avatar kenkehoe commented on June 14, 2024

I have created a PR to speed up the option for plotting with add_nan keyword. Looking at the plotting of radar data I was getting better results by using .resample() method on the Dataset before plotting to get the time step more regular and smaller. The plots looks more correct with non-standard time steps. matplotlib can't render high frequency anyway, should we add keywords to help with resampling down to a more reasonable size? That should help speed up the 2D plotting?

from act.

AdamTheisen avatar AdamTheisen commented on June 14, 2024

@kenkehoe coming back to this. I would have reservations about putting in anything that modifies the data without the user knowing. I.e. if we defaulted to resample at 1-minute. I think it is best for the user to resample as they see fit. Maybe all we really need is to note this in the documentation. Thoughts?

from act.

kenkehoe avatar kenkehoe commented on June 14, 2024

I agree downsampling the data before plotting is not something we should default. I was thinking we could provide some documentation on this issue and a keyword that the user could pass in to perform a downsampling before plotting. That way the user knows the data is downsampled to their desired time/height steps. The default would be no downsampling. Or maybe just providing examples to downsample with xarray is the best option.

from act.

AdamTheisen avatar AdamTheisen commented on June 14, 2024

I like providing the examples as it's already there in xarray and easy to do in one line of code. I'll see what I can do

from act.

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.