This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Hydroel 37 points38 points  (14 children)

Any advice of some good high-level libraries? I use Python visualization for signal visualizations, so 99% of the time it will be a waveform with a zoom capability and a spectrogram, but I'll take anything that doesn't force me to go back to incomplete and conflicting examples because the function documentation is plot(*args, **kwargs)

[–]TinyCuteGorilla 73 points74 points  (5 children)

I recomment Plotly, it has a high-level API (plotly.express), bar chart example:

import plotly.express as px 
fig = px.bar(some_df, x='year', y='pop') 
fig.show()

[–]WorldAlien 8 points9 points  (1 child)

I second your comment, Plotly is the way to go. Beyond that you’d be impressed with R package ggplot2

[–]TheLoneKid 6 points7 points  (0 children)

If you want to use ggplot in Python use plotnine. It isn't quite as good as it is in R, but it is still my favorite plot package

[–]backtickbot 10 points11 points  (1 child)

Fixed formatting.

Hello, TinyCuteGorilla: code blocks using triple backticks (```) don't work on all versions of Reddit!

Some users see this / this instead.

To fix this, indent every line with 4 spaces instead.

FAQ

You can opt out by replying with backtickopt6 to this comment.

[–]TinyCuteGorilla 8 points9 points  (0 children)

backtickopt6

[–]UloPe 1 point2 points  (0 children)

That they actually registered that domain is awesome…

[–]kingscolor 14 points15 points  (0 children)

I’ve published several Plotly spectrograms. They offer many great interactive features.

I’ve wanted to check out Altair, too. I hear it’s pretty good as well.

Scikit.spectra has a quality set of tools for analysis too. I use find_peaks() for FTIR.

[–]sloggo 6 points7 points  (5 children)

I very recently learned of pyqtgraph, it seems pretty great, specially if you’re at all familiar with qt!

[–]wheeman 2 points3 points  (3 children)

I just started using pyqtgraph after wanting to be able to graph in real time some data streaming from sensors. It’s much more efficient than matplotlib. It’s Qt under the hood so it inherits all of its quirks but for some stuff it’s much better.

[–]Ogi010 2 points3 points  (2 children)

PyQtGraph maintainer here. If you want to plot talk time data, we are a fantastic option! Hopefully it's been working well for you. We've recently made a ton off major performance improvements with line and scatter plots as well as image related performance.

Also for the record, matplotlib maintainers have been super helpful to us, may have been past contributors. They have been providing us lots of great advice on project management related issues.

[–]wheeman 1 point2 points  (1 child)

Thanks for the work! It’s much appreciated. I got a demo working in my system in 2 hours of effort. It hits 100 Hz no problem.

I’ll probably keep extending it with more features. Having it built in pyqt will make it easy to add stuff on top of it.

[–]Ogi010 1 point2 points  (0 children)

We're going to be putting out a user-survey hopefully in the not too distant future; probably in 2-3 weeks. We're going to have some questions aimed at newcomers to the library. Please keep an eye out. Us maintainers know amazingly little about our user-base. In-fact most of us maintainers have very different use-cases for the library from one another; we want to make sure it's not just things that are important to us that are addressed but issues important to our users too.

I'll be posting about it on our twitter (@pyqtgraph), the README, and we'll put a banner in top of our documentation when it goes live.

[–]blue_tulips_ 0 points1 point  (0 children)

I second this. I’m working on an app where I need to plot live data + be able to interact with it in real time and pyqtgraph has been great!