1,018 questions
0
votes
0
answers
73
views
Using text in pyqtgraph colorbar tick values
I am writing an application in pyside6 and using pyqtgraph's imageitem & colorbar for displaying plots.
The simplified requirement is
The y-axis has a value between 0 and 2, representing 3 states ...
2
votes
0
answers
71
views
high rate udp data plotting in pyqt5
I am trying to develop a gui to receive data over udp with rate of 72Mbit/s. I am using the pyqtgraph to plot the data of 10 channels. but after receiving some packets, the widow freezes and it seems ...
0
votes
0
answers
64
views
Is there a way to render GLScatterPlotItem with a different shape
Is there a way to have scatter points with GLScatterPlotItem but with shapes like triangles, squares, etc
0
votes
1
answer
55
views
How to map nested GLLineItems from different parent items
I am trying to paint pyqtgraph.opengl.GLLinePlotItem nested within other GLLinePlotItem with different parents, where the painted result is identical had you not nested them and instead just painted ...
0
votes
0
answers
46
views
Moving from matplotlib to pyqtgraph: how to reuse PlotWidgets?
I have a large gui app based on matplotlib which is horribly slow (on windows) so I am trying to re-host it on pyqtgraph (which seems to be much faster).
I am facing the following problem: I need to ...
0
votes
1
answer
66
views
gradient background in pyqtgraph w/ pyqt6
Is it possible to give a gradient background to a plot in pyqtgraph & pyqt6?
Minimal code to start with:
import pyqtgraph as pg
from PyQt6.QtWidgets import QApplication
# Create application
app = ...
0
votes
0
answers
31
views
PySide6: PyQtGraph scatterplot not loading data spots correctly, it displays all spot on top-left side of the graph [duplicate]
I am working on a PySide6 application and am implementing a PyQtGraph in a layout.
I want to use PyQtGraph instead of Matplotlib because apperently it would be better to use it for interactive graph (...
0
votes
2
answers
121
views
pyqtgraph plots and axes are flickering - rendering issue
I am using pyqtgraph but whatever I am doing I am stuck with the following bug: for any plots, axes and plot is flickering and I cannot see anything.
I put a GIF to show my problem and the ...
0
votes
1
answer
51
views
pyqtgraph GLTextItem does not show up
I am using pyqtgraph 0.13.7 and PyQt5 5.15.9 and attempting to render text using GLTextItem in a 3D graphical interface, but the text is not displaying. Other 3D elements (such as axes, point clouds, ...
1
vote
2
answers
569
views
pyqtgraph not working on example in pythonGUIs website - PySide6 with pyqtgraph
I am trying the example from PythonGUIs website using this script:
from PySide6.QtWidgets import QApplication, QMainWindow
import pyqtgraph as pg
import sys
class MainWindow(QMainWindow):
def ...
0
votes
1
answer
163
views
How do you rotate text labels on tick marks on the horizontal axis in pyqtgraph?
I'm using pyqtgraph 0.13.7. I would like to rotate 45 degrees counter clockwise the text labels on my x_axis. How can I do that?
0
votes
0
answers
94
views
Axis labels clipping or cut off in pyqtgraph PlotWidget
I am trying to make a QWidget wrapper class which has a pyqtgraph.PlotWidget within it to plot my data. But when I add labels into my graph, it somehow gets cut off or clipped at the edge of the ...
0
votes
0
answers
54
views
streamplots with pyqtgraph?
Is there any function similar to matplotlib.pyplot.streamplot in pyqtgraph? I am using a UI for data analysis and would really benefit if I could overplot it with streamlines. Unfortunately, all I ...
0
votes
1
answer
66
views
how to have a fixed azimuth and elevation of a GLTextItem
I am trying to remove the banner effect from the pyqtgraph.opengl.GLTextItem such that whenever the camera angle changes, the angle of the text item is fixed. I can get the size of the text item to be ...
1
vote
0
answers
62
views
PyQtGraph ROI Mouse Events Not Working Inside QGraphicsProxyWidget
When I place a PyQtGraph PlotWidget with ROIs inside a QGraphicsProxyWidget, the ROIs don't respond to some of the mouse interactions. Except the hover events, no operations work with the ROI e.g. ...
0
votes
1
answer
283
views
How to efficiently plot real-time rolling data with PyQtGraph
What is an efficient method for plotting data with pyqtgraph for a rolling plot when samples arrive one at at time from an upstream process?
Based on some experimentation, plotting each sample as it ...
0
votes
0
answers
94
views
pyqtgraph.opengl.GLScatterPlotItem scatter object is not rendering correctly
I am having issues with how pyqtgraph.opengl.GLScatterPlotItem is rendered. It seems that when adding GLScatterPlotItem to gl.GLViewWidget before showing the QMainWindow, the scatter plot never ...
1
vote
0
answers
92
views
HistogramLUTWidget with PyQtGraph
I'm trying to make a representation of a RTL-SDR capture. I can show a couple of graphs, spectrum and waterfall with their histogram. The problem is that the histogram auto-adjusts the levels.
I would ...
0
votes
0
answers
92
views
pyqtgraph: Show x axis labels in the form DD HH:MM:SS of data representing timedeltas with DateAxisItem
I am trying to use pyqtgraphs DateAxisItem for relative times on the x axis, i.e., durations (which can be between a few hours and several days). I know I could simply use an ordinary AxisItem and ...
-1
votes
1
answer
95
views
PyQtGraph: Custom Shader Not Displaying GLMeshItem
When importing ShaderProgram, VertexShader, and FragmentShader, I cannot get them to display my GLMeshItem.
I connect my shader to my GLMeshItem the way I see online in a very old forum:
gl.shaders....
0
votes
1
answer
209
views
pyqtgraph How to add multiple plots to one ax
I want to open a window with pyqtgraph alone, without using pyqt.
I want to create two or more axes in one window through pyqtgraph, and draw two lines in one ax.
What should I do?
The following code ...
0
votes
1
answer
97
views
Serial Real Time Plotter python
The code below plots numbers received from serial port. However, the values of locals()[self.axes_mapping[axis]] are not all the received data from the function receive_data. It seems some values are ...
0
votes
0
answers
54
views
Can I use pyqtgraph to plot live serial data stream?
I'm trying to plot 10-100Hz datas coming from a distance meter sensor over a USB/serial interface on a raspberry.
I can read datas like this:
value = ser.readline().decode('utf-8')
data = value.split(&...
0
votes
1
answer
73
views
Setting Background/Border of pyqtgraph.Scalebar
I'm trying to change the background/border color of a pyqtgraph.ScaleBar, because I would like it to have a black border with a white, non-transparent background. The main aim is to achieve a scalebar ...
0
votes
1
answer
150
views
How to add labels to 3D Axis in pyqtgraph
I would like to add labels to a 3D axis drawn in GLViewWidget from pyqtgraph.opengl. I followed the example but did not manage to make it work properly. When I subclass the GLViewWidget object and ...
-1
votes
1
answer
149
views
Problem positioning InfLineLabel in pyqtgraph
I am using a horizontal line as follows in pyqtgraph. If I set the position of the label to 0.05, then it hugs the y axis with the default graph size. However, if I resize the graph there is an offset....
1
vote
0
answers
50
views
Pyqtgraph Flask threading issue
I would like to ask whether it is possible to use Pyqtgraph in flask for plotting graphs.
My simplified code:
pg_layout = pg.GraphicsLayoutWidget(
title=title,
size=(2880, 960)
)
...
2
votes
1
answer
138
views
How to add date axis correctly in pyqtgraph
code:
self.graph = pg.PlotWidget(self)
self.graph.setBackground("w")
self.graph.showGrid(x=True, y=True)
pen = pg.mkPen(color=(90, 169, 240), width=5)
...
0
votes
1
answer
51
views
pyqtgraph raises error anytime i move cursor above it
I want to display my data by pyatgraph, mostly because of an easy FFT method it provides. I wrote an GUI by Qt Designer and created pyqtgraph in it. The problem occurs when I try to plot my data. The ...
2
votes
1
answer
118
views
pyqtgraph: LegendItem offset returns false values regardless of position
I have a Qt5 window with a pyqtgraph in a dynamic situation, i.e., plots, axes, curves can be added or modified. Also, the legend can be shown and hidden. Since the user can also drag the legend to a ...
0
votes
1
answer
339
views
How to recreate and adjust the auto-scale button in pyqtgraph
I want to have the auto-scale button that is normally in the bottom left hand corner and OUTSIDE of each subplot for a pyqtgraph, but rather than auto-scaling to fit the data, scale to a specific ...
0
votes
2
answers
588
views
How do I add padding around a PyQtGraph PlotWidget?
I am trying to add padding around a PlotWidget as the default settings are extremely tight. However, the strategies I am trying to take are not working. The default padding is seen below.
default ...
0
votes
1
answer
363
views
pyqtgraph: Elegant way to remove a plot from GraphicsLayoutWidget?
I am trying to programmatically add and remove plots to GraphicsLayoutWidget. Adding works as expected via addPlot(row, col) (col is zero for me). Unfortunately there is no removePlot function (which ...
2
votes
1
answer
194
views
How to set the default colour of a PyQtGraph ImageView's Histogram LUT?
PyQtGraph's ImageView widget includes a histogram with:
a moveable region that defines dark and light levels. as well as
the ability to edit a colour gradient.
These two features allow users to edit/...
0
votes
1
answer
81
views
How to deselect curve when clicking on background in pyqtgraph
I try to deselect a curve by clicking on the background in a pyqtgraph. So when I click on a curve, it is selecting it and when I click on the background or the curve again, it should deselect it.
If ...
1
vote
0
answers
199
views
How to setup light source position and shading: with Pyqtgraph: GLMeshItem?
I am using pyqtgraph.opengl for graphics and display of STL files on my UI. I am using phong shading technique called 'shaded' param with pyqtgraph.opengl.GLMeshItem API. But I am having a dark color ...
1
vote
0
answers
31
views
Align Y axis start for subplots in pyqtgraph
I want to align the line indicating the start of the Y axis. As you can see in the image the middle plot is out of line with the top and bottom plot. Apparently because they take up varying amount ...
0
votes
1
answer
112
views
PyQtGraph: Retrieve size of GLTextItem
I'm using pyqtgraph to plot radar data (in 2D and 3D) using a GLViewWidget. Adding and visualizing the data in 2D and 3D works well.
I also added text labels using GLTextItem, but they are a bit ...
0
votes
1
answer
52
views
Puffer data for live-plotting via pyqtgraph
I have an dataframe, i import this dataframe in an python modul and then i plott them live. Each dataframe has 100 numbers. For this i use pyqtgraph:
def update_plot_data(self):
from ...
-1
votes
1
answer
142
views
Matplotlib to pyqtgraph
Does anyone have a converter that takes working plots created with matplotlib and produce a reasonable equivalent in pyqtgraph? Seems like it should be possible. It would save me a lot of time.
I'm ...
2
votes
0
answers
946
views
PySide6/PyQtGraph real-time plotting of sensor data
I am creating PySide6 app and I need to plot a vast amount of sensor data. The aim is that user has the feeling that the system is working real-time-ish. For example, if they tap a table next to an ...
0
votes
0
answers
37
views
pyqtgraph specifying the midpoint of a line
In Pyqtgraph, I want to create a line whose midpoint is specified, and by dragging and resizing the line, the midpoint will also change. please help me.
pyqtgraph specifying the midpoint of a line
I ...
0
votes
1
answer
317
views
pyqtgraph plot with x-Axis in date units
I try to plot a chart with dates in the x-axis.
But the units displayed are in hours and minutes.
import sys
import datetime
import pyqtgraph as pg
from PySide6.QtWidgets import QApplication, ...
0
votes
1
answer
129
views
plot a graph using PyQt5
I want to plot 5 graphs on a single canvas. If i click the next button ,it should display the next graph ,and all graphs should be dynamic using PyQt5
class Window(QWidget):
def __init__(self):
...
0
votes
0
answers
46
views
Why is there a large ploting delay/lag in my real-time serial port ploting app after more than 10000 datapoints reading?
I am trying to write a real-time serial data reading and ploting APP, which read data from a arduino UNO board. But there is a problem that after more 10000 dataponits readout, the ploting presents a ...
0
votes
0
answers
28
views
pyqtgraph ImageItem missing scale() function? [duplicate]
I'm trying to implement a spectrograph following This question for guidance.
However, one of the called function of ImageItem seems to be "missing".
In the linked question, there is this ...
0
votes
1
answer
54
views
Fading Effect for segmented line (QGraphicsLineItem)
I am drawing using QgraphicsLineItem such that after reaching certain length, it should give me fading effect for the line. So, the basic way I had used is appending its objects to a list and later ...
0
votes
1
answer
251
views
Display 3D Matrix with colors Pyqtgraph
I want to display a 3D matrix in Pyqtgraph using GLVolumeItem (with x, y and z axis) with the specific colors corresponding to the input data.
How can I proceed with my code ?
import numpy as np
...
0
votes
0
answers
49
views
How to get a QFormLayout() next to a GLViewWidget() in a QVBoxLayout() [duplicate]
I am trying to get a QFormLayout() next to a GLViewWidget() in a QVBoxLayout() in QMainWindow() using the below code.
However, I struggle to find out how to display both at once, I can only display ...
0
votes
0
answers
86
views
Multiprocessing using a webcam and pyqtgraph - pickling error, how to solve it?
I am trying to produce a GUI using PyQT6 to interface a camera with a pyqtgraph viewer.
I created three classes, one for the QT interface (CharacViewer), one for the camera (cameraClass) and one for ...