Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Matplotlib Graph in an ImageView
-
I want to put a matplotlib graph in a ImageView. How to do that?
-
Save it to a file:
import matplotlib.pyplot as plt plt.plot([1, 2, 3, 4]) plt.savefig('temp.png')
...then load it into a
ui.Image
:import ui # ... img = ui.Image.named('temp.png') imageview.image = img
-
Thanks. now I have made a "Plotter" with ui module and matplotlib 😃