mirror of
https://github.com/gwm17/implot.git
synced 2024-11-13 22:48:50 -05:00
Merge branch 'master' of https://github.com/epezent/implot
This commit is contained in:
commit
607703d2af
|
@ -1043,7 +1043,7 @@ void ShowDemoWindow(bool* p_open) {
|
||||||
if (dnd[k].Plt == 1 && dnd[k].Data.size() > 0) {
|
if (dnd[k].Plt == 1 && dnd[k].Data.size() > 0) {
|
||||||
ImPlot::SetPlotYAxis(dnd[k].Yax);
|
ImPlot::SetPlotYAxis(dnd[k].Yax);
|
||||||
ImPlot::SetNextLineStyle(dnd[k].Color);
|
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);
|
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));
|
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
|
// allow legend item labels to be DND sources
|
||||||
|
|
Loading…
Reference in New Issue
Block a user