Closed AleksanderSiwek closed 3 years ago
It seems that mistake in sample, could you check if replace line color
wxMath2DPlotDataset::ptr dataset(
new wxMath2DPlotDataset(
wxColor(255, 255, 255, 0), // <- transparent
wxColor(250, 20, 20, 0x78),
wxColor(0, 0, 0, 0xB8),
points)
);
with:
wxMath2DPlotDataset::ptr dataset(
new wxMath2DPlotDataset(
*wxBLACK,
wxColor(250, 20, 20, 0x78),
wxColor(0, 0, 0, 0xB8),
points)
);
When you use SetChartType(0, wxCHARTTYPE_LINE); on wxMath2DPlotCtrl object it does not print plot with lines.