Questions tagged [qcustomplot]

QCustomPlot is a Qt C++ widget for 2D plotting and data visualization, licensed under the GPL.

QCustomPlot is a Qt C++ widget for 2D plotting and data visualization, licensed under the GPL. It focuses on making good looking, publication quality 2D plots, graphs and charts and also has high performance for realtime visualization applications.

QCustomPlot can export to various formats such as vectorized PDF files and rasterized images like PNG, JPG and BMP. All outputs look identical and the generated PDF files can be imported and edited by vector editors like Inkscape, without trouble. So QCustomPlot is useful for both displaying of realtime data inside the application as well as producing high quality plots for other media.

Resources:

171 questions
2
votes
0 answers

Qt Customplot regarding plot varying

I am sending a value to the function plotMainGraph(double serData), so it plots the value I send each time. As an example, I am just sending value 5 and 25 continuously, but the plot which I get is not correct, even though I am sending 5 and 25 each…
shashi
  • 29
  • 4
2
votes
1 answer

QCustomPlot Huge Amount of Data Plotting

I am trying to plot some serial data on my Qt Gui program using qcustomplot class. I had no trouble when I tried to plot low sampling frequency datas like 100 data/second. The graph was really cool and was plotting the data smoothly. But at high…
Burak Kirazli
  • 19
  • 1
  • 7
2
votes
0 answers

Qt, Error (malloc) when adding mulitple widgets with qcustomplots to window

I am trying to make a Widget that contains multiple widgets with each a QCustomplot and some Plot Data (QLabel and QPushbuttons). This widget is open from a mainwindow with parent=0. I add the subwidgets with a function, but if it is used more than…
Sonne
  • 45
  • 7
2
votes
2 answers

How to plot multiple points using QCustomPlot QT5?

Here are some example points: (1,1),(2,3),(3,1),(4,2),(1,5),(3,4) I want to plot these points with a line in turn, I've added them into the vector x and y. Then, setData(x,y) was performed. However, the QCustomPlot seems like can only plot points…
wuhanmoon
  • 23
  • 4
2
votes
0 answers

Using Qt 3D with QCustomPlot

I have an application that requires use of both Qt 3D and the QCustomPlot library. However, when attempting to compile QCustomPlot in a project using "QT += 3dinput" in its .pro file, several errors appear referencing the QMouseEvent and QWheelEvent…
Ryan Hilbert
  • 1,805
  • 1
  • 18
  • 31
2
votes
1 answer

Add a slide in Qt that moves a signal up and down the y axis

I have three real time signals on the same graph, but sometimes they overlap and I need a slide button to move them up and down the y axis to see them better. How can I connect the slide to the graph? Like when the value of the slide changes, the…
Ana
  • 45
  • 4
2
votes
1 answer

QCustomPlot: mouse interaction on secondary axis

I have a QCustomPlot with all the 4 axes enabled and with these interactions activated: my_w.plot->setInteractions(QCP::iRangeDrag | QCP::iRangeZoom | QCP::iSelectAxes | QCP::iSelectLegend | QCP::iSelectPlottables); Now by swiping on an xAxis or…
bibi
  • 3,671
  • 5
  • 34
  • 50
2
votes
1 answer

Custom tick step on QCustomPlot - QT

Im new in QCustomPlot but I am not able to create custom size of TickStep. Right now, I have this plot, (time is from 6:00 to 6:00 another day). And what is my desired X axis label: I tried to play with setTickStep but without any success. …
svermigo
  • 23
  • 1
  • 4
2
votes
2 answers

QCustomPlot display time in HH:MM:SS

I was wondering either it is possible in the QCustomPlot library to change display format of the data on one of the axis. In my application on the X axis I have time in seconds and I would like to display the steps in HH:MM:SS instead. As an…
Łukasz Przeniosło
  • 2,725
  • 5
  • 38
  • 74
2
votes
0 answers

QCustomPlot, plotting from dynamic vector

I am plotting some data from txt file. And I am changing it according to horizontal and vertical Sliders. I want to replot upper horizontalSlider and lower verticalSlider region. To do this I am trying to resize my vector according to…
Emre
  • 43
  • 1
  • 6
2
votes
1 answer

QCustomPlot QCPItemLine

I want to ask a question about qcustomplot. How can i change itemLine position according to Slider? (like x = a) #include "itemline.h" #include "ui_itemline.h" #include "qcustomplot.h" itemLine::itemLine(QWidget *parent) : QMainWindow(parent), …
Emre
  • 43
  • 1
  • 6
1
vote
1 answer

How to add a trendline to my graph in Qt?

I want to add a trendline to my graph in Qt. How to plot a trendline on a line graph?
Neocoder_1
  • 49
  • 1
  • 13
1
vote
0 answers

how to plot table values into a graph using qcustomplot?

I have an application where the data is displayed on a table widget. But now I want to plot the graph on a custom plot by giving values for x-axis from the table widget and y-axis from my labels.
1
vote
1 answer

How to show all x axis values in a custom plot QT C++

I'm working with QTCustomPlot library on Qt and I have to show all x axis values in my plot. These are the properties of the axis: ui->dateTimePlot->addGraph(); ui->dateTimePlot->graph()->data()->set(timeData); // configure bottom axis…
1
vote
1 answer

How to find point of intersection in qcustomplot?

I have an app based on qt (qcustomplot) that prints two different graphs. They have one point of intersection. How to find x and y coordinates of this point?
deepv2
  • 51
  • 10
1 2
3
11 12