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
17
votes
4 answers

What are the advantages/disadvantages of QCustomPlot, compared to Qwt?

I am using Qwt now for two years. I like its object oriented classes, which makes it very easy to adapt the plots and functionality. These days QCustomPlot is becoming more and more popular and competes with Qwt. Of course I did compare the APIs.…
c_k
  • 1,746
  • 1
  • 20
  • 35
12
votes
1 answer

QCustomPlot - show item on QCPAxisRect below customPlot

In a project resembling the QCustomPlot financial demo I want to draw a QCPItemRect not only into the chart area, but also to the area below the chart. Having QCPAxisRect * xRect = new QCPAxisRect( this->ui.customPlot…
Daniel Bencik
  • 959
  • 1
  • 8
  • 32
10
votes
3 answers

Display the plot values on mouse over. - Detect Scatter points

I am attempting to display the plot values of different points on my QCustomPlot in which I have a Line style of lsLine. I know i could set a mouse over signal on the QCustomPlot but that wont really help since I just need to be informed when the…
Rajeshwar
  • 11,179
  • 26
  • 86
  • 158
7
votes
2 answers

How to show math symbols like theta

I'm trying to find a way to show math symbols such as \theta, \phi, \dot{\theta}, ..., etc. I couldn't find a way to show these letters in my plot. Does qcustomplot support math symbols? I've tried the following line but very few letters show up but…
CroCo
  • 5,531
  • 9
  • 56
  • 88
6
votes
1 answer

Library requires QApplication. How to use QApplication in Qt Quick project?

I have a Qt Quick project and I just added some source files. When trying to build I get the error message: QWidget: Cannot create a QWidget without QApplication Since I have a Qt Quick project I use the QGuiApplication. QApplication is a subclass…
uniquenamehere
  • 1,869
  • 3
  • 31
  • 60
5
votes
1 answer

How to implement a custom allocator to be used with std::map?

I'm looking for some pointers on how to implement a custom allocator to be used with a std::map. I'm interested on populating a map with millions of entries without having an allocation for each element in the container (which is the default for…
Darien Pardinas
  • 5,910
  • 1
  • 41
  • 48
5
votes
3 answers

How to hide grid and show only zeroline in QCustomPlot?

Is there any way of showing zeroline in QCustomPlot while hiding grid? I have tried hiding grid with following line: ui->customPlot->xAxis->grid()->setVisible(false); ui->customPlot->yAxis->grid()->setVisible(false); But this also hides the…
Adnan
  • 2,986
  • 7
  • 43
  • 63
4
votes
1 answer

How can I display a key/value pair on a ToolTip across two graphs?

I am using QCustomPlot to display to graphs, each with a different Key/Value Pairs. On the mouse hover, I am expecting to see the key/value pairs per graph, but instead, I am seeing the first graph on the right as shown on the picture How can I do…
user4853414
4
votes
1 answer

How to plot QAbstractItemModel using QCustomPlot

Is there a direct way to pass QAbstractItemModel to QCustomPlot? Currently I am defining two QVector for Xval and yVal. When I have to plot, I update these two vectors from QAbstractItemModel to launch the plot function. Is there any way…
Schwab
  • 91
  • 1
  • 6
4
votes
2 answers

QCustomPlot Interact with a single point on a graph

I am using QCustomPlot and have a multiple graphs plotted on the screen, i want to be able to click and point and then be able to get the data or coordinates etc of the point that I clicked on, I know this is possible for the entire plot itself…
AngryDuck
  • 4,358
  • 13
  • 57
  • 91
3
votes
1 answer

Why QCustomPlot is too slow in ploting large data?

I want to plotting some large chunk of data (3k) which is coming every 100ms. I tried QCustomPlot and Qwt with exact 3k points and i got really good performances in plotting with Qwt and really bad performances with QCustomPlot. And i think i behave…
Ghasem Ramezani
  • 2,683
  • 1
  • 13
  • 32
3
votes
4 answers

c++/ qt - no such slot - Inheritance

This code: MyAxis *ax; ax = static_cast(ui->customPlot->axisRect()->addAxis(QCPAxis::atLeft)); connect(ui->customPlot->yAxis, SIGNAL(rangeChanged(QCPRange)), ax, SLOT(MyAxis::rescale(QCPRange))); gives me this run-time…
Krzysztof Bieda
  • 187
  • 1
  • 2
  • 10
3
votes
1 answer

qcustomplot: set item by name and find them

I have used the qcustomplot to draw item. I have two item. One is item text, another is item rect. What I want to do is when I select the text, the item rect change the color. I have used the itemAt to check whether the mouse has clicked a…
Jason
  • 1,573
  • 3
  • 18
  • 46
3
votes
1 answer

QCustomPlot fills in lines that connect

Using the QCustomPlot add on for QT. I am having to plot points which may are not linear so the graph could look something like this how ever this is the result but this is what shows up using this code plotter->addGraph(); …
Tanner Summers
  • 689
  • 1
  • 8
  • 26
3
votes
2 answers

QCustomPlot: How to update data of a graph?

I use QCustomPlot to display histograms of pictures. The function I use to set the a curve is the following: void SingleHistogram::setHist(const QVector &x, const QVector &y) { //clearGraphs(); …
Plouff
  • 3,290
  • 2
  • 27
  • 45
1
2 3
11 12