I'm trying to do a repeating histogram of 255 events, I do not know how many times this event can occur!
I have an array of 255 elements, already with the amount of repetitions of the events and I want to show this in the graph using QCustomPlot
, but the size that is < > 4.8, 4.8 , and my histogram hits 23079 or more, maybe much more.
How do you increase this 4.8, 4.8 and leave the chart well away?
Here's part of the code:
int grayScale[255] = {0};
//faco meus bang pra montar o array
QVector<double> x(255),y(255);
ui->customPlot->addGraph();
for(int i = 0; i < 255; i++)
{
x[i] = i;
y[i] = grayScale[i];
}
ui->customPlot->graph(0)->setData(x, y);
ui->customPlot->xAxis->setLabel("Tom");
ui->customPlot->yAxis->setLabel("Quantidade");
ui->customPlot->replot();
I'm waiting and thank you right away!