Skip to main content

All Questions

1 vote
0 answers
502 views

Python executable hangs with plt.show()

I am creating a GUI application (EXE) in Python 2.7 on Win 10 platform. The application is supposed to plot a graph (using matplotlib) with user provided parameters. When the user changes the values ...
DrAMM's user avatar
  • 11
0 votes
1 answer
3k views

Matplotlib pyqt Navigation toolbar change background color of "figure options"

I implemented the matplotlib plots and navigation toolbar in pyqt4 GUI. How do I change the background color of "Figure options" in the toolbar? In the above picture with a gray background, everything ...
no-one's user avatar
  • 111
0 votes
0 answers
192 views

How to do filter the event in mouse move event

Here in my sample program i want to use mouse move event here i got x,y position but i want to filtered the event only on right click and know the mouse release event position in mouse move event.Can ...
navya sri's user avatar
  • 428
0 votes
1 answer
622 views

How to add a pushbuttons on the top and bottom of the colorbar

Here is my sample peace of code.I am using gridlayout in my program to add my plot,slider and buttons.Here i needto arrange the up,down push buttons in top and bottom of the colorbar, but i didn't get ...
raghava's user avatar
  • 177
0 votes
1 answer
33 views

Problems on embedding matplotlib in PyQt4

Here is the code: from matplotlib.backends.qt_compat import QtCore, QtGui from matplotlib.backends.backend_qt4agg import (FigureCanvasQTAgg as FigureCanvas) from matplotlib.figure import Figure ...
Mersper's user avatar
  • 97
7 votes
1 answer
4k views

Can't remove matplotlib's padding around imshow() figure

I'm embedding matplotlib into my PyQt4 GUI and I'm having a heck of a time. I can get the image to display but it adds a very thick padding around the content that I'd like to remove. Here's what I'm ...
LKeene's user avatar
  • 657
1 vote
1 answer
250 views

Embedding matplotlib in PyQt4

I'm trying to embed matplotlib in a PyQt4+Python 2.7 application so that I can visualize image (i.e. 2D) data in my UI. I'd like to make use of some of matplotlib's functionality such as colormaps, ...
LKeene's user avatar
  • 657
1 vote
0 answers
59 views

Procedural PyQt4 generates extra windows after pyplot.show()

I have encountered a strange behaviour on Mac OSX 10.12 when using PyQt4 and matplotlib in a procedural python function. The function pops up a dialogue which is used to select a directory. The ...
Nukolas's user avatar
  • 495
1 vote
0 answers
333 views

Linux GUI gets frozen when using MatPlotLib in Python

I have found a strange behavior in my PyQt application which freezes whole Graphical interface of my OS (tested on Linux Mint 17.1 and 18.0, Red Hat Enterprise Linux Server release 7.3). For Windows, ...
Matho's user avatar
  • 305
0 votes
0 answers
80 views

serial animation in pyqt4

This is what I have adapted my code to with the init functions: I think I'm confused at how inheritance works with graphing applications. I have added my constants to the init function of the figure ...
J.Stahl's user avatar
  • 51
0 votes
0 answers
58 views

Python 2.7 script compiling to .exe that uses many packages, including Matplotlib and PyQt4

I'm trying to compile a Python 2.7 script that imports the following packages: import easygui as EG import numpy as np import pandas from skimage import data from skimage import measure import cv2 ...
user2312900's user avatar
1 vote
1 answer
85 views

Why is pyplot having issues with PyQt4's QThread?

I am designing a gui that creates multiple QThreads to be activated. Each thread creates an excel workbook with Pandas Excelwriter and creates a heatmap using seaborn and saves that heatmap (for later ...
Daniel's user avatar
  • 101
0 votes
0 answers
148 views

Faster replotting with Matplotlib and PyQt4

I am attempting to move a 'cursor' across my graph by inserting x,y coordinates as function arguments. I can only achieve about one frame per second because my function is plotting the entire graph ...
Mike C.'s user avatar
  • 1,931
0 votes
0 answers
88 views

Move dot faster with Matplotlib

I am trying to move a dot to a particular location on the graph dynamically based on real-time data. I'm basically plotting the graph, emitting a signal from a worker thread which calls the 'move_dot' ...
Mike C.'s user avatar
  • 1,931
0 votes
0 answers
745 views

How do I refresh subplots in Matplotlib figure embedded in a PyQt4 Widget

Someone suggested earlier that I call fig.canvas.draw() to refresh my plot with new data. It worked great on the main plot, however I also have subplots included in the chart. The subplots are getting ...
Mike C.'s user avatar
  • 1,931

15 30 50 per page