alchemyEngine / measure_thermal_behavior

Scripts for measuring and displaying thermal behavior on Voron 3D printers
78 stars 12 forks source link

[BUGFIX] Bump matplotlib minimum version #3

Closed mjonuschat closed 1 year ago

mjonuschat commented 1 year ago

Matplotlib <3.5 is not compatible with Pandas 2.0 (which will get installed by default if it isn't available) The error signature for a scenario with a too old matplotlib is this:

ValueError: Multi-dimensional indexing (e.g. `obj[:, None]`) is no longer supported. Convert to a numpy array before indexing instead.

Updating matplotlib to 3.5 or newer (testes 3.5.3 and 3.7.2) fixes the incompatibility.

Tested combinations:

Pandas 1.3.5 and matplotlib 3.3.4: OK Pandas 1.3.5 and matplotlib 3.5.3: OK Pandas 1.5.3 and matplotlib 3.3.4: OK Pandas 1.5.3 and matplotlib 3.5.3: OK Pandas 2.0.3 and matplotlib 3.3.4: FAIL Pandas 2.0.3 and matplotlib 3.4.3: FAIL Pandas 2.0.3 and matplotlib 3.5.3: OK Pandas 2.0.3 and matplotlib 3.7.2: OK