QCustomPlot Discussion and Comments

Plot a perimeter around grid dataReturn to overview

Is there a way to plot a perimeter line around all 1's on a grid of data?
The grid of data are QVectors of x, y, and z. Where x & y are meters of type double, and z are binary 1's and 0's.

I am using QCPCurve::addData(QVector& x, QVector& y). I am trying to avoid plotting zig-zag lines inside the perimeter. The grid data is in a typical x/y cartesian index order.

Plot a circle/perimeter around all the 1's:
<------ x -------->
0 0 0 0 0 0 0 0 ^
0 0 1 1 1 1 0 0 |
0 1 1 1 1 1 1 0 y
0 0 1 1 1 1 0 0 |
0 0 0 0 0 0 0 0 v

Thank you in advance!

I do not know how to plot a perimeter.
But looking at your illustration, I want to use QCPColorMap instead of QCPCurve.

I guess I would be looking for a contour plotting capability which I have seen that only 3rd party support to QCP currently exists for contour plotting.

I have a different map for QCPColorMap for an irradiance measurements at different distances. The 0's and 1's are for if a missile can hit or not (boolean) for kinematic boundary purposes, I just need a border line limit.
Otherwise, I have used QCPColorMap for this application but then I cannot overlay it on top of another QCPColorMap. Thanks for the replay, define true false.