1
0
Fork 0
mirror of https://github.com/gwm17/implot.git synced 2024-11-13 22:48:50 -05:00
This commit is contained in:
epezent 2021-03-03 09:10:43 -06:00
commit 607703d2af

View File

@ -1043,7 +1043,7 @@ void ShowDemoWindow(bool* p_open) {
if (dnd[k].Plt == 1 && dnd[k].Data.size() > 0) {
ImPlot::SetPlotYAxis(dnd[k].Yax);
ImPlot::SetNextLineStyle(dnd[k].Color);
static char label[16];
static char label[32];
sprintf(label,"%s (Y%d)", dnd[k].Label, dnd[k].Yax+1);
ImPlot::PlotLine(label, &dnd[k].Data[0].x, &dnd[k].Data[0].y, dnd[k].Data.size(), 0, 2 * sizeof(float));
// allow legend item labels to be DND sources