Skip to content

Linked X-axis with default initial limits #215

Answered by sairus7
sairus7 asked this question in Q&A
Discussion options

You must be logged in to vote

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

// 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);

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by sairus7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant