Skip to content

PlottableScatter.GetLimits() throws System.InvalidOperationException: Sequence contains no elements #369

@JagDTalcyon

Description

@JagDTalcyon

Describe the bug
Provide a clear and concise description of what the bug is

Unhandled exception. System.InvalidOperationException: Sequence contains no elements
at System.Linq.ThrowHelper.ThrowNoElementsException()
at System.Linq.Enumerable.Min(IEnumerable`1 source)
at ScottPlot.PlottableScatter.GetLimits()
at ScottPlot.Settings.AxisAuto(Double horizontalMargin, Double verticalMargin, Boolean xExpandOnly, Boolean yExpandOnly, Boolean autoX, Boolean autoY)
at ScottPlot.Plot.RenderBitmap()
at ScottPlot.Plot.GetBitmap(Boolean renderFirst, Boolean lowQuality)
at ScottPlot.WpfPlot.Render(Boolean skipIfCurrentlyRendering, Boolean lowQuality, Boolean recalculateLayout)

To Reproduce
Describe what we can do to reproduce the behavior

// include code to help us reproduce this bug

Screenshots
If applicable, add screenshots to help explain your problem

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions