0
votes
1answer
20 views

wxPython scrollbar doesn't stick

I've been playing with this cookbook example to make a scrollable matplotlib plot with wxPython. However, when I run this code on my Windows 7 machine at work, the scrollbar doesn't seem to work ...
0
votes
1answer
22 views

Updating Matplotlib toolbar when repainted

I have written a test python program for Matplotlib-Basemap on wxpython using examples found on the internet. A map drawn with Mercator projection when the GUI is launched. On selecting various radio ...
0
votes
0answers
52 views

When I close Python, the DOS window does not close. How do I find out what is hanging?

When I close my Python application, the DOS window does not close. How do I find out what is hanging ?? I have a main class that invokes children windows upon request. If I close the main ...
1
vote
2answers
56 views

Modal dialog freezes the whole application

I use wxpython altogether with matplotlib backend on an ubuntu machine. I would like to connect my matplotlib canvas to a button_press_event that pops up a wxpython modal dialog. When the modal dialog ...
0
votes
1answer
33 views

trouble with matplotlib pubsub python

Traceback (most recent call last): File "PSPsolver1.py", line 520, in getchain Publisher().sendMessage(("show.mainframe"), msg) File ...
-1
votes
1answer
27 views

updating text on canvas wxpython

canvas = FigureCanvas(self, -1, fig) canvas.mpl_connect('pick_event',on_pick) canvas.mpl_connect('motion_notify_event', motion_notify_callback) SSkey1=wx.StaticText(canvas,-1,"SS",pos=(623,42)) ...
1
vote
1answer
49 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
3answers
41 views

After close the plot window the process keeps running

Im new in matplotlib and having some hard times. From the user point of view everything works fine. I have a window with a button. Pressing the button a new window pops showing the plot. After play ...
0
votes
1answer
40 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 ...
1
vote
1answer
98 views

wxpython + matplotlib: autoresizing a matplotlib figure

This python program plots a figure in a wxpython window. How can I change the program so that: the figure resizes when I resize the window the main window cannot be resized smaller than a ...
0
votes
1answer
90 views

wxpython + matplotlib: closing figure hangs python

This python program plots a figure in a wxpython window. It runs fine in Enthought Python Distribution 7.3-2, but when I close the figure, python keeps running and doesn't exit. What am I missing? ...
0
votes
1answer
51 views

change shape of array so it plots colour matplotlib matrix

hl = [(1,109),(12,212),(21,23)] highlightc = np.zeros([N, N]) c = len(highlightc) colour = [0.21]*c test = len(number_list) -c this = [0.21]*test colour.extend(this) colour = np.array(colour) colour ...
0
votes
1answer
46 views

Can I get imshow() like behaviour in a wx.lib.plot.PlotCanvas?

I'm new to wxpython but have been a matplotlib user for some time now. I am developing a wxpython app in which I would like to have a simple frame with a single panel (actually, a ...
1
vote
1answer
63 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 ...
0
votes
1answer
122 views

Python: Adding Matplotlib Figure to Auto-Generated Frame Output from wxFormBuilder?

Learning Python (coming into it as a strong C# programmer), excited about the power of SciPy and Matplotlib, so I am looking to add a matplotlib figure to a panel. The panel is in a notebook, whose ...
0
votes
0answers
61 views

2 arrays one ListedColormap but 2 colormaps

I have 2 arrays which are randomly generated each time the program is run. The numbers in the array can be from 0 to 4. I have created a colormap using ...
0
votes
1answer
41 views

2 plots on same matrix

I have 2 sets of coordinates that I want to plot on the same matrix. This is my code: self.ax.imshow(arr,cmap=plt.cm.Greys_r, interpolation='none') self.ax.imshow(arr.T, cmap=plt.cm.Greys_r, ...
0
votes
0answers
54 views

mouse movement on matrix graph matplotlib

I have created a matrix graph in matplotlib using self.ax.imshow(mtrx,cmp=plt.cm.Greys_r, interpolation='none',picker =5). What I want to do is when you hover over the matrix graph itself, it prints ...
1
vote
1answer
128 views

change position of title of a colorbar

I have create a horizontal colorbar, when I use set_title("blabla") this puts title up above the colorer. Is there anyway I can have title at the side of the colorbar. So instead of having the title ...
0
votes
1answer
180 views

Error, Using deprecated class PySimpleApp after removing EPD

I am using spyder on Mac OSX 10.8.2 and I had Enthought which I uninstalled. In my code I used pyplot from matplotlib. However I keep getting the following warning when I run the simple plot program. ...
1
vote
1answer
110 views

wxpython server

I am trying to send data from a C program to a python script through sockets in order to perform real-time visualization of the data using matplotlib. I have also created a GUI using wxPython. I have ...
0
votes
1answer
153 views

Matplotlib bar chart in a wx Frame instead of a new window

I have a simple wxFrame and two panels in it. i want one of the panels to show a matplotlib bar chart. I learnt to use the chart, but the show() function that I use gives me the chart in a new window. ...
0
votes
1answer
218 views

colorbar matplotlib colors from red to blue

Following on from all my other annoying hard to understand posts I have a list: [0,1,4,3,2,4,2,1,0] I want each of them to have a colour using cmap = ...
1
vote
1answer
86 views

how to find colour of colorbar matplotlib

I have created a colorbar which has a variety of colours in it. I have set it to a pick event. When I click on the colorbar, on a particular colour segment I want it to return the colour. I tired ...
0
votes
1answer
35 views

2 pick events 2 colorbars

I have 2 colorbars and I want both of them to have different pickevents How can i do this? my code atm is x_ax.set_picker(5)##colorbar set picker def on_pick(event): artist = event.artist ...
1
vote
1answer
67 views

colorbar find the width of color segment

I have a color bar which has several blocks of colors. How can I find the width of each color segment so I can then print that out somewhere else. I've tried mouseevent.ydata etc but that only outputs ...
0
votes
0answers
15 views

highlighter on a matrix from a colorbar matplotlib

I have 2 colorbars and a matrix I have made an onclick method for my colorbars so when you press them it prints out the x and y data. What I want to happen is for it to produce the highlight ...
-1
votes
1answer
157 views

onclick function matplotlib

cmap = mpl.colors.ListedColormap([[1,0,0], [0,0,1], [0,1,0], [1,1,0]]) self.fig = plt.figure(figsize=(6,6)) self.ax = self.fig.add_axes([0.1, 0.1, 0.8, 0.8]) x_ax = self.fig.add_axes([0.05, 0.1, ...
0
votes
0answers
104 views

multiple colorbars matplotlib

I have created 2 colorbars for i, item in enumerate(rchlist): xcolors[i] = param[i] ycolors[i] = param[i] xcolors = np.zeros(size)-1 ycolors = np.zeros(size)-1 ...
2
votes
1answer
95 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 2 3 4 5
15 30 50 per page