-
I have two plots with initial default X and Y limits, and linked X-axis. How can I set initial X and Y limits for both plots, and then link them by X-axis? If I use |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Oh, looks like I violated this requirement: // Links the next plot limits to external values. Set to NULL for no linkage. The pointer data must remain valid until the matching call to EndPlot.
IMPLOT_API void LinkNextPlotLimits(double* xmin, double* xmax, double* ymin, double* ymax, double* ymin2 = NULL, double* ymax2 = NULL, double* ymin3 = NULL, double* ymax3 = NULL);
|
Beta Was this translation helpful? Give feedback.
Oh, looks like I violated this requirement:
The pointer data must remain valid until the matching call to EndPlot.
and copied limit variables by value:https://github.com/epezent/implot/blob/master/implot.h#L519