Deltares-research / coastviewer

Coast viewer server side. Serves several sources as KML and geojson.
Other
5 stars 2 forks source link

Time disabled in plots #77

Open SiggyF opened 6 years ago

SiggyF commented 6 years ago

Description

I had to disable the limits on the xaxis because the plots were crashing. Please

What I Did

Get the url: http://localhost:5000/coastviewer/1.1.0/transects/7003900/plot/indicators

File "/Users/baart_f/src/coastviewer/coastviewer/plots.py", line 188, in indicators
ax[2].set_xlim(np.min(mean_water['time']), np.max(mean_water['time']))
File "/Users/baart_f/.virtualenvs/main/lib/python3.6/site-packages/matplotlib/axes/_base.py", line 2919, in set_xlim
left, right = mtransforms.nonsingular(left, right, increasing=False)
File "/Users/baart_f/.virtualenvs/main/lib/python3.6/site-packages/matplotlib/transforms.py", line 2894, in nonsingular
if (not np.isfinite(vmin)) or (not np.isfinite(vmax)):
TypeError: ufunc 'isfinite' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''

Disabled set_xlim.