Skip to main content

All Questions

Tagged with
0 votes
0 answers
22 views

How to connect a single NavigationToolbar to 2 Canvases (Matplotlib + PyQt5)

I am working on PyQt application that displays 2 FigureCanvasQTAgg inside of a QWidget. Currently, they are both linked to separate NavigationToolbar2QT objects but I would like to be able to control ...
dund3r's user avatar
  • 1
0 votes
0 answers
43 views

Inaccurate Multiplanar Reconstruction (MPR) of CTs in My PyQt5 DICOM Viewer - Mild Horizontal Stretching

Question: I'm developing a DICOM viewer application using PyQt5 that includes multiplanar reconstruction (MPR) similar to OsiriX/Horos. However, I'm encountering an issue where the images appear ...
Miguel Nobre Menezes's user avatar
1 vote
1 answer
38 views

Interactive checkboxes (or buttons) in subplots Matplotlib figure in QGraphicsView PyQt5

I'm trying to optimize example (https://matplotlib.org/stable/gallery/widgets/check_buttons.html) for my task in a small project. I have an example that works: from PyQt5.QtWidgets import QApplication ...
Ilya Belov's user avatar
0 votes
0 answers
59 views

Not able to use %matplotlib qt5 in vscode in ubuntu 24.04

I am not able to use %matplotlib qt5 In jupyter notebook(vscode) while doing... import numpy as np import matplotlib.pyplot as plt from matplotlib import animation %matplotlib qt5 I am getting ...
Anil Kumar's user avatar
0 votes
1 answer
39 views

Matplotlib .contains method no longer works with updated environment

.contains method worked with matplotlib 3.4.3 and python 3.8.19 no longer works with updated environment. The method returns a boolean and dictionary. It is always returning False and empty dictionary ...
Denver_Colorado's user avatar
0 votes
0 answers
72 views

Making a Matplotlib table interactive using PyQt

I have a project which is to make a chemistry periodic table using matplotlib and making it user-interactive using PyQt. The interactivity would be: when a cell/element is clicked on, more information ...
ChikN42 -'s user avatar
0 votes
1 answer
88 views

Embedding NetGraph EditableGraph in PyQt5

I try to embed the EditableGraph function into a PyQt5 application. I developed the following program for testing, based on solutions found online. from PyQt5 import QtWidgets, QtCore from matplotlib....
Franck's user avatar
  • 35
2 votes
0 answers
72 views

Unable to show multiple figures in matplotlib using patchworklib

I am working on a project that involves matplotlib integrated with pyqt. I intend to combine several figures using patchworklib, but I encountered an issue. Despite my efforts, only one figure appears ...
Dong Zhang's user avatar
0 votes
0 answers
30 views

Interactive matplotlib code worked on jupyter but stuck on PyQt5

I managed to create movable lines on a jupyter notebook by copying the code and editing it so that it worked the way I wanted. I also have this code as an example to get this plot works on PyQt5 but ...
RedBlur's user avatar
  • 55
0 votes
0 answers
89 views

tabbed matplotlib plots: QGuiApplication::font() error

I use this convenient class to plot several tabbed plots within the same matplotlib window. It works amazingly but makes Python crash after the second window creation with error QGuiApplication::font()...
David Pagnon's user avatar
0 votes
1 answer
158 views

Interactive 3-D plots in Jupiter notebook

I have the following code which does produce a 3-D plot in jupyter notebook, but I am unable to get it to be interactive so I can rotate it with the mouse. import matplotlib.pyplot as plt from ...
Nader Afshar's user avatar
0 votes
0 answers
42 views

Updating a matplotlib canvas in PyQt5 using a Figure

I need to refresh a canvas with the output of a function. Right now the function outputs a matplotlib Figure object. The problem is that when I call the method draw in the canvas, it doesn't show ...
Julio Vázquez's user avatar
0 votes
0 answers
73 views

pyqt matplotlib widget not redrawing with imshow call

I'm trying to create a PyQt5 matplotlib widget which shows processed/annotated images as they are processed. The main project is a larger pyqt GUI for computer vision which has a separate thread for ...
Magnus's user avatar
  • 1
0 votes
0 answers
392 views

AttributeError: 'NoneType' object has no attribute 'canvas' when clicking on canvas

The code is keep getting error when click on the canvas. How to fix this error? I would like to know where this error comes from. Thank you!Do I need to make a mouse clicking event? I would like to ...
Jeannette Chu's user avatar
0 votes
1 answer
49 views

matplotlib giving empty figure during debugging of a pyqt5 app

I learned from Debugging a pyQT4 app? how to be able to avoid the QCoreApplication::exec: The event loop is already running when running a PyQt5 application and using breakpoints. This works fine ...
EllenWasbo's user avatar

15 30 50 per page
1
2 3 4 5
28