question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AxSpan draggable not implemented

See original GitHub issue

It looks like PlottableAxSpan has draggable api, but not implemented. Additionaly it will be usefull to have OnChanged(double newValue) events for both borders, which rises on end drag by user.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
StendProgcommented, Feb 3, 2020

Hi @swharden. Thanks for this big amout of work. I checked this, have some ideas that to add and refactor. Try to make this soon. There are one thing i really can’t solve. Dragging axises or spans looks much more laggy then paning. Check the code, it have the same math complexity. Profiled, also nothing specal. But dragging goes like 3 fps, when pan or zoom goes smooth.

0reactions
swhardencommented, Feb 3, 2020

Maybe anti-aliasing isn’t turned off while dragging portables?

I tryed that too, the same result.

We should properly alias while dragging

https://github.com/swharden/ScottPlot/blob/334f93dec027cd8d950bc63561f0925612d7e3c1/src/ScottPlot.WinForms/FormsPlot.cs#L216

Like we do while panning

https://github.com/swharden/ScottPlot/blob/334f93dec027cd8d950bc63561f0925612d7e3c1/src/ScottPlot.WinForms/FormsPlot.cs#L207

Read more comments on GitHub >

github_iconTop Results From Across the Web

Matplotlib: Draggable is not working on multiple legends ...
I have two legends, as below, I find that I can't drag the first legend, what is the problem? how to deal with...
Read more >
matplotlib.legend — Matplotlib 3.7.2 documentation
The legend handler map specifies how to create legend handles from artists (lines, patches, etc.) in the axes or figures. Default legend handlers...
Read more >
matplotlib.axes.Axes.legend
draggablebool, default: False. Whether the legend can be dragged with the mouse. See also. Figure.legend. Notes. Some artists are not supported by this ......
Read more >
Callbacks of draggable artists should check that they have ...
So either the draggable artist should check that it is still valid while executing callback code, or it should disconnect itself upon removal...
Read more >
widgets.py
Hold the *ctrl* key and click and drag a vertex to reposition it (the *ctrl* key is not necessary if the polygon has...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found