Skip to content

Error is ambiguous ("Data must not contain NaN") #1994

@Xerxes004

Description

@Xerxes004

throw new NotImplementedException("Data must not contain NaN");

I ran into a bug where the dimensions during render have infinite values (see snippet below), but the error thrown (linked above) points to my data being bad instead. It seems like the PlotDimensions passed into Render should be validated before Render is called. I verified that all of my data is finite.

My current workaround is to verify those dimensions myself.

Contents of the dimensions passed to Render:

AxisLimits: {AxisLimits: x=[-39690.28947368427, 1547921.2894736843] y=[∞, -∞]}
DataHeight: 212.4375
DataOffsetX: 59.5351563
DataOffsetY: 35.1015625
DataWidth: 290.464844
Height: 290
PxPerUnitX: 0.00018295712099970096
PxPerUnitY: 0
ScaleFactor: 1
UnitsPerPxX: 5465.7615649824011
UnitsPerPxY: -Infinity
Width: 372
XCenter: 754115.5
XMax: 1547921.2894736843
XMin: -39690.289473684272
XSpan: 1587611.5789473685
YCenter: NaN
YMax: -Infinity
YMin: Infinity
YSpan: -Infinity

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