Problem with plot (dayplot)

I’m new to obspy and python, so please forgive any foolishness on my part.

I’m trying to create a helicorder plot for a 24-hour miniseed file. My script works if I give st.plot “interval=15”, but it crashes if I give it “interval=10”. Here are the error messages.

Traceback (most recent call last):
  File "/home/seisan/src/obspy/", line 56, in <module>
  File "/home/seisan/anaconda3/envs/obspy/lib/python3.8/site-packages/obspy/core/", line 1161, in plot
    return waveform.plot_waveform(*args, **kwargs)
  File "/home/seisan/anaconda3/envs/obspy/lib/python3.8/site-packages/obspy/imaging/", line 274, in plot_waveform
    self.plot_day(*args, **kwargs)
  File "/home/seisan/anaconda3/envs/obspy/lib/python3.8/site-packages/obspy/imaging/", line 488, in plot_day
    self.__dayplot_set_x_ticks(*args, **kwargs)
  File "/home/seisan/anaconda3/envs/obspy/lib/python3.8/site-packages/obspy/imaging/", line 1035, in __dayplot_set_x_ticks
    ticks = np.linspace(0.0, max_value, count)
  File "<__array_function__ internals>", line 5, in linspace
  File "/home/seisan/anaconda3/envs/obspy/lib/python3.8/site-packages/numpy/core/", line 120, in linspace
    num = operator.index(num)
TypeError: 'float' object cannot be interpreted as an integer

I’m pretty sure I have previously created interval=10 plots with non-miniseed data, but I can’t find the script.

Any suggestions?

Your problem can be reproduced with

from obspy import read
read()[0].plot(type='dayplot', interval=10)

I think it’s a bug, mind opening an issue?

If you are using seisan converted format file system then obspy will not work on those files. I also had the same issues with seisan.