Tagged Questions
6
votes
1answer
4k views
Embedding a matplotlib figure inside a WxPython panel
How do I embed a matplotlib figure object inside a WxPython panel?
I googled around and saw complicated examples involving interactive graphics and other extra stuff. Can anybody help with a minimal ...
4
votes
1answer
4k views
How to update a plot with python and Matplotlib
I have been bashing my head against the wall trying to update a graph using matplotlib with python and wxpython. I want to press a button and add data to a graph nested in a wx.notebook. Below is ...
2
votes
3answers
803 views
Animating Matplotlib panel - blit leaves old frames behind
I have a wxPython application which contains a matplotlib panel (courtesy of wxmpl, though I've seen the same with a plain FigureCanvasWxAgg canvas).
I'd want to animate one of the plots in the ...
1
vote
1answer
55 views
How to reset NavigatonToolbar “history” when re-plotting data on the same axis?
I have a wxPython application that uses matplotlib for plotting data repeatedly.
The code looks something like this:
import matplotlib
matplotlib.use('WXAgg')
from matplotlib.figure import Figure
...
0
votes
1answer
70 views
associate a colorbar with a matrix graph
I want a color graph which is associate with my graph matrix.
the colour graph is lined up with my matrix and each color on the color graph corresponds with a row on the matrix
4
votes
4answers
2k views
using py2exe with wxPython and Matplotlib
I'm trying to generate an .exe file from a python script that uses wxPython and Matplotlib and it looks like to be impossible.
The imports I'm doing (related with Matplotlib) are the following:
from ...
2
votes
1answer
134 views
onclick method on a colorbar matplotlib python
I have a colorbar and a graph. I was wondering if you can use the onclick method on a colorbar that will then do something on the graph.
So click on a particular color portion of the colorer then ...
1
vote
1answer
179 views
onclick method, capture coordinates highlighter appears matplotlib
I have a scatter graph and have implemented a highlighter type thing through matplotlib http://matplotlib.org/users/transforms_tutorial.html#axes-coordinates.
At the moment, when you click any of the ...
3
votes
2answers
3k views
Minimalistic Real-Time Plotting in Python
I've been using python extensively to extract data from various external pieces of equipment (ranging from arduinos to oscilloscopes), and I'm looking for a simplistic way to plot stuff.
There's ...
3
votes
1answer
226 views
matplotlib + wxpython not sizing correctly with legend
I have a matplotlib figure embedded in a wxpython frame with a few sizers. Everything works fine until I include a legend but then the sizers don't seem to be working with the legend.
Even when I ...
2
votes
3answers
1k views
How can I open two different pylab figures from the same button from a wxpython gui?
I am new to python and I have a serious problem that I cannot overcome. I have created a gui using wxpython that has two text fields and a button. When this button is pressed I call a function that ...
2
votes
1answer
591 views
matplotlib navtoolbar doesn't realize in wx 2.9 (Mac OS X)
The following piece of code produces a matplotlib NavToolbar2 at the top of a frame as expected when run on wxPython 2.8.x, Python 2.5.4/2.6, Matplotlib 0.99.x.
However, I've recently moved to Python ...
1
vote
1answer
112 views
colour a binary matrix matplotlib
highlightc = np.zeros([N, N])
print highlightc
c = len(highlightc)
colour = [0.21]*c
colour = np.array(colour)
print colour
for x, y in hl:
highlightc[x, y] = 1##set so binary matrix knows where ...
1
vote
1answer
542 views
Python and Interactive Zoom Plot with Matplotlib
I am using a Matplotlib plot (with Basemap) inside of a wxPython pane. I have got the plot (US map with scatter plot of cities). I am trying to do some interactive zoom capabilities (select a box on ...
0
votes
1answer
57 views
Why is my wx.App interfering with my matplotlib plots?
I am trying to build a GUI with wxPython to control a pretty stable, well-established model. The standard output of the model includes a series of plots to screen done via matplotlib. These plots ...