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
1
vote
1 answer

import QCustomPlot2 ImportError: DLL load failed: The specified procedure could not be found

I am trying to get QCustomPlot2 working on Ppython 3.7 Anaconda installation Windows 10 x64 I tried installing via pip and easy_install from building qcustomplot2 via qt cmd and moved the .pyd file into several locations. I updated pyqt from conda…
1
vote
0 answers

How to make x axis lay on y = 0 in qml chartview

im using QML QtCharts to plot XYPoint in a LineSeries. everything works fine except the problem that i have with relative position of x and y axes which specifically are ValueAxis, im looking for a solution to make x axis lay on the line y = 0 like…
1
vote
1 answer

Detecting peak value on realtime data stream

I'm using QCustomPlot to read and display realtime value from an IMU. This is how I set the realtimeDataSlot: void Settings::realtimeDataSlot(double x_acceleration_g, double y_acceleration_g, double z_acceleration_g, double z_acceleration_gnew) { …
tetra
  • 177
  • 3
  • 11
1
vote
0 answers

How to display Upper and Lower range values on QCustomPlot Axis?

When the axis is dragged or zoomed no number will be displayed at the ends (top and bottom for Y-axis; left and right for X-axis). Is it possible to display the upper and lower range always on the axis? How to automatically make the end values of…
Pramod
  • 121
  • 2
  • 16
1
vote
1 answer

QCPItemLine using layers

what is the correct way to use QCPItemLine with layers? i have a pixamp which i draw on the grid with QCustomPlot and i want to draw a line above the pixmap, so far it is being shown below the pixmap. lets say i already set a pixmap how can i be…
asaf anter
  • 71
  • 2
  • 11
1
vote
1 answer

QCPItemLine is being paint automatically

Im trying using QCustomPlot in my gui MainWindow.h public: void initArrow(); private: QCustomPlot* grid; QCPItemLine* arrow; MainWindow.cpp void MainWindow::initArrow() { arrow = new QCPItemLine(ui->grid); QPen…
asaf anter
  • 71
  • 2
  • 11
1
vote
1 answer

qt c++ plot customplot from sqlite table

I am new to Qt creator C++. I have designed a application where the data is displayed on a tableView fetching it from Sqlite database, till here i am successfull, but now i want to plot the graph on a customplot by giving values for x and y axis…
1
vote
1 answer

Is it possible to use QCustomPlot in unit testing?

I need to create a family of plots during a test of my program. I want to use QCustomPlot for such purposes, but I have a problem. For creating and saving my plot in the file, I have to create QApplication, after I need to reimplement my class from…
Albert
  • 81
  • 2
  • 8
1
vote
2 answers

QCustomPlot replot QCPLayer

I'm trying to figure out how to use QCPLayer to only replot certain items in the plot. The qcustomplot documentation states this: If you often need to call a full QCustomPlot::replot only because a non-complex object (e.g. an item) has changed…
remi
  • 937
  • 3
  • 18
  • 45
1
vote
1 answer

Manual rectangular selection of items in QCustomPlot

I'm working on a simple GUI with plot where you can set some x and y ranges. How can I select all items from all graphs on the plot that are within those ranges? I was trying to reproduce the same algorithms that are run on mouse rectangular multi…
Luke
  • 2,350
  • 6
  • 26
  • 41
1
vote
1 answer

How to draw several lines of the graph in Qt using QCustomPlot

For example, in Visual Studio there is tChart and its Series property, which is responsible for drawing lines of the graph. Here is an example of this code for (int j = 1; j < Nt - 1; j++) { for (int i = 1; i < Nt - 1; i++) { …
beginner
  • 183
  • 2
  • 12
1
vote
1 answer

Display x and y coordinates on graph in QCustomplot

I want to display the x and y coordinates on mouse move on the graph. I calculated the x and y coordinates but not really sure how to display on the graph near to the point (preferably like (x,y) this connect(ui->customPlot,…
XXDebugger
  • 1,581
  • 3
  • 26
  • 48
1
vote
0 answers

QCustomplot Graphs are not showing if not debugging

I am using qcustomplot to plot some graphs. I initialized the QCustomPlot object and added 10 graphs. Mainly, the application contains a menue that when clicked, it performs some calculations then show the result graphs. If I am debugging the…
Dr ALOUI
  • 331
  • 4
  • 8
1
vote
1 answer

Event Filter for QCustomPlot

I'm having trouble registering for starter an event in a scrollarea with a Qcustomplot for its widget. I tried install an event filter, but it seems that it works in other scroll area, except its own scroll area. Any advice on fixing this /…
ntmt
  • 163
  • 1
  • 1
  • 11
1
vote
1 answer

QCustomPlot adding QCustomItemText

I am trying add a text item onto a QCustomPlot widget. The QCPItemText constructor takes a pointer to QCustomPlot widget as an argument. QCPItemText::QCPItemText ( QCustomPlot * parentPlot) After creating the QCPItemText object, it can added to…
Vino
  • 2,111
  • 4
  • 22
  • 42