I’m trying to plot some seismograms and would like to be able to change the number of ticks (labels) on the x axis. When I try to change this using the ‘number_of_ticks’ argument it doesn’t result in any change to the output figure
st.plot(starttime=UTCphase-50, endtime=UTCphase2+100, linewidth=0.5, tick_rotation=0, number_of_ticks=3)
st.plot(starttime=UTCphase-50, endtime=UTCphase2+100, linewidth=0.5, tick_rotation=0, number_of_ticks=10)
Both result in figures that look the same (sorry it doesn’t seem to want to attach) with 5 ticks on the x axis.
I’ve had a look in obspy.imaging.waveforms and it I note that it does say Unused variable for the function:
__plot_set_x_ticks(self, *args, **kwargs): # @UnusedVariable
Is there another way to change the number of ticks on the x axis or should I try matplotlib/gmt in this instance?