AudibleT 0.0.1
A real-time A/B/X audio testing tool for subjective assessment of various audio parameters, compatible for general purpose computer as well as embedded systems.
|
A class to plot frequency graph. More...
#include <EQGraph.h>
Public Member Functions | |
EQGraph (QWidget *parent=nullptr) | |
Construct a new EQGraph object. | |
~EQGraph () | |
Destroy the EQGraph object and free any allocated resources. | |
void | plot (const std::vector< double > &x, const std::vector< double > &y, int magnitude, const QString &title, const QString &xAxisLabel, const QString &yAxisLabel) |
Plot a graph. | |
A class to plot frequency graph.
EQGraph is a widget that plots graphs using Qt Charts. The X-axis is logarithmic, making it suitable for frequency response plots.
EQGraph::EQGraph | ( | QWidget * | parent = nullptr | ) |
Construct a new EQGraph object.
parent | The parent widget. |
void EQGraph::plot | ( | const std::vector< double > & | x, |
const std::vector< double > & | y, | ||
int | magnitude, | ||
const QString & | title, | ||
const QString & | xAxisLabel, | ||
const QString & | yAxisLabel | ||
) |
Plot a graph.
The data in the x and y vectors is plotted on the graph. The x-axis is logarithmic.
x | The x values. |
y | The y values. |
magnitude | The magnitude range. |
title | The title of the graph. |
xAxisLabel | The label for the x-axis. |
yAxisLabel | The label for the y-axis. |