plotnine and pyqt5
See original GitHub issueHello,
plotnine
is a wonderful package. I am trying to figure out how to incorporate plots into a pyqt5
application. For matplotlib
, there are a number of examples, but with plotnine
, I don’t know where to start. Any guidance is greatly appreciated.
Thank you.
Issue Analytics
- State:
- Created 4 years ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
A PyQt5 Application — plotnine 0.10.1 documentation
This example applicate creates a gui windows with a canvas and a plot button which when pressed draws out a plot from random...
Read more >plotnine is broken with matplotlib==3.6 - Stack Overflow
It was due to a internal matplotlib call that is no longer supported and has been replaced. So I guess you could choose...
Read more >How to embed Matplotlib Graph in a PyQt5 application
In this PyQt5 tutorial, we are going to learn how to embed a matplotlib graph in a PyQt5 application.Buy Me a Coffee?
Read more >Making Plots With plotnine - Data Carpentry
Objectives. Create a plotnine object. Set universal plot settings. Modify an existing plotnine object. Change the aesthetics of a plot such as color....
Read more >[Example code]-Axis scaling with plotnine - appsloveworld.com
Coding example for the question Axis scaling with plotnine. ... how to set axis interval in candle stick using pyqtgraph with pyqt5?
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The solution I am using may not be at all useful to others because of the way my application is structured. In any case, here is a little about what I am doing at the moment.
My present application is a
PyQT5
wrapper that creates inputs for, runs, and analyzes outputs from a computational engine written in C. I am usingplotnine
for the analysis phase.As of now, I am
pickling
figures frommatplotlib
(and can now do the same withplotnine
) during the analysis phase. These then get stored in ansqlite
database. The GUI accesses the database,unpickles
the figures, and displays them.The relevant code for the display (which I have as a
QDialog
) is something likeHere, the
simplot
argument is the unpickled figure object.This approach allows panning and zooming of static plots, which is adequate for now. If
matplotlib
figure pickles contain the underlying plotted data, something much more interactive could be implemented.Added to the tutorial.