Skip to content

Population plot markers move on redraw #4616

@marklam

Description

@marklam

Issue:
Related to #4477

I'm hitting a problem where if a population chart re-renders, the markers move about.

The random generator is reset to a known state when the population markers are created, but their positions are refreshed on each render, so they're deterministic across instances for the first render, or the second render, but not between the first and second renders of the same instance.

To repro:

  • Run the ScottPlot Demo (in WinForms for example)
  • Open the cookbook
  • Scroll to the Population Box Plot page
  • Drag-resize the window
  • Observe the markers jumping about

ScottPlot Version: (What NuGet package are you using?)
ScottPlot.Avalonia 5.0.47

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions