ScottPlot: PlottableScatter.GetLimits() throws System.InvalidOperationException: Sequence contains no elements
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
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 23 (10 by maintainers)
Commits related to this issue
- improve scatter plot error reporting #369 — committed to ScottPlot/ScottPlot by swharden 4 years ago
- add scatter plot tests #369 tests plotting all zeros for X and Y confirms plotting zero-element arrays throws — committed to ScottPlot/ScottPlot by swharden 4 years ago
- create winforms test application #369 — committed to ScottPlot/ScottPlot by swharden 4 years ago
- test scatter containing NaN and Inf #369 — committed to ScottPlot/ScottPlot by swharden 4 years ago
- AddHorizontalSpan() and AddVerticalSpan() #368 #369 — committed to ScottPlot/ScottPlot by swharden 4 years ago
- new recipes for polygons and finance #368 #369 — committed to ScottPlot/ScottPlot by swharden 4 years ago
Thanks.