|
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 |
Answered by
sairus7
Apr 13, 2021
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);
|
0 replies
Answer selected by
sairus7
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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