
The polygon display fails when multiple polygons are selected simultaneously. Instead of showing multiple shadowed regions, follow error received:
Traceback (most recent call last):
File "/Users/maggie/Desktop/LaME/LaserMapExplorer/main.py", line 5685, in update_SV
self.plot_map_mpl(sample_id, field_type, field)
File "/Users/maggie/Desktop/LaME/LaserMapExplorer/main.py", line 6534, in plot_map_mpl
self.plot_small_histogram(map_df,field)
File "/Users/maggie/Desktop/LaME/LaserMapExplorer/main.py", line 6993, in plot_small_histogram
bin_width = (np.nanmax(array) - np.nanmin(array)) / self.default_bins
^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/numpy/lib/_nanfunctions_impl.py", line 493, in nanmax
res = np.fmax.reduce(a, axis=axis, out=out, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: zero-size array to reduction operation fmax which has no identity
Traceback (most recent call last):
File "/Users/maggie/Desktop/LaME/LaserMapExplorer/main.py", line 5685, in update_SV
self.plot_map_mpl(sample_id, field_type, field)
File "/Users/maggie/Desktop/LaME/LaserMapExplorer/main.py", line 6534, in plot_map_mpl
self.plot_small_histogram(map_df,field)
File "/Users/maggie/Desktop/LaME/LaserMapExplorer/main.py", line 6993, in plot_small_histogram
bin_width = (np.nanmax(array) - np.nanmin(array)) / self.default_bins
^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/numpy/lib/_nanfunctions_impl.py", line 493, in nanmax
res = np.fmax.reduce(a, axis=axis, out=out, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: zero-size array to reduction operation fmax which has no identity