QCustomPlot Discussion and Comments

QCPColorMap questionsReturn to overview

I have a sparse set of values with x and y coordinates and a value that I want to show in a colour map. The number of values is known: lets say this in the variable `count`.

The valid range for x and y is known (0, width), (0,height)

When I call colorMap->data()->setSize() and setRange() what values should I use?

Right now I have coded:

		colorMap->data()->setSize(static_cast<int>(lightFrameInfo.m_lWidth), static_cast<int>(lightFrameInfo.m_lHeight));
		colorMap->data()->setRange(QCPRange(0, static_cast<double>(lightFrameInfo.m_lWidth)),
			QCPRange(0, static_cast<double>(lightFrameInfo.m_lHeight)));

Problem resolved - above code seems to work.