epezent / epezent/implot

DragLineX/Y cannot be accessed when are dragged out of plot area with ImPlotCond_Always

Open
#302 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
6.2k
Forks
693
PR merge metrics
No merged PRs in 30d

Description

Hello,
From implot.h
// ImPlot version string.
#define IMPLOT_VERSION "0.13 WIP"
I need fixed axes so I have changed
ImPlot::SetupAxesLimits(0,1,0,1);
to
ImPlot::SetupAxesLimits(0, 1, 0, 1, ImPlotCond_Always);
in void ShowDemo_DragLines(). I can drag lines out of axes region pretty well indeed so I cannot get them back. Is there a way to make draglines to stop at the edges of the plot area the way your online demo does?

P.S. I cannot reproduce it in your demo but in my application I have the additional problem: while dragging the DragLineX out of the plot to the left the Y axis highlights and at this very moment all visible graphics (I have plenty of them and they do not fit to the screen so there is a scroller if it is important) change their color like here https://github.com/epezent/implot/issues/301 . But if I scroll (ImGUI scrolling, I do nothing to scroll) down to the next graphics they have normal color. In your demo the Y axis does not highlight and there are no additional problems except your DragLineXs cannot be accessed anymore too.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.