You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When animating over a limited visual range, as in this example, the possibility arises that the signal columns are all NaN.
2024-05-26.18-50-16.mp4
issue
mplfinance\plotting.py", line 1108, in _addplot_columns
ymhi = math.log(max(math.fabs(np.nanmax(yd)),1e-7),10)
This Numpy code generates an error.
"ValueError: zero-size array to reduction operation maximum which has no identity"
issue case
When animating over a limited visual range, as in this example, the possibility arises that the signal columns are all NaN.
2024-05-26.18-50-16.mp4
issue
mplfinance\plotting.py", line 1108, in _addplot_columns
ymhi = math.log(max(math.fabs(np.nanmax(yd)),1e-7),10)
This Numpy code generates an error.
"ValueError: zero-size array to reduction operation maximum which has no identity"
Error reproduction
Currently, we have worked around this by doing NaN pre-checking on the user side, but it would be great if the library could handle this.
The text was updated successfully, but these errors were encountered: