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.

Is `recalculateLayoutOnMouseUp` deprecated in ScottPlot 4.1?

See original GitHub issue

Hi Scott,

I’m finally doing an upgrade from 40.2 (or a similar early version) and I’m coming across a few quirks. The biggest however right now is finding a solution to “recalculateLayoutOnMouseUp”

I can’t find where it is documented any more, and my app is littered with statements for this call.

Did I miss something in the upgrade? Is it deprecated? I see plenty of other examples using it, but it’s not working for me.

'Configuration' does not contain a definition for 'recalculateLayoutOnMouseUp' and no accessible extension method 'recalculateLayoutOnMouseUp' accepting a first argument of type 'Configuration' could be found (are you missing a using directive or an assembly reference?)

Cheers, Steve

Issue Analytics

  • State:closed
  • Created 2 months ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
vrdrivercommented, Jul 13, 2023

Ok, thanks @swharden and @KroMignon That all makes sense now.

Yes, I was coming from a much earlier version, and I’ve managed to get the program running again after changing plenty of things. Now to work on the new layout methods and the 4.1 way of doing things and tweaking even more. Thanks again.

1reaction
swhardencommented, Jul 13, 2023

Hi @vrdriver and the group,

Unlike ScottPlot 4.0 which only recalculated the layout after the mouse button was released, ScottPlot 4.1 recalculates the layout continuously (before each rendered frame). This means the recalculateLayoutOnMouseUp field is no longer necessary!

If you wish to have more advanced control over the layout (or disable the automatic adjustment) more information can be found here: https://scottplot.net/faq/layout/

Read more comments on GitHub >

github_iconTop Results From Across the Web

ScottPlot Changelog
ScottPlot 4.1.67 ... Arrowhead functionality of scatter plots has been deprecated. ... Controls now have a recalculateLayoutOnMouseUp option to prevent ...
Read more >
Changelog
Palette ) will not be marked obsolete until ScottPlot 5. ... Work toward ScottPlot 4.1 began in October, 2020 and merged into the...
Read more >
ScottPlot 4.1.13-beta
ScottPlot is a free and open-source plotting library for .NET that makes it easy to interactively display large datasets.
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