ref: 1e905884905c5600b7041f6195b9ac700dc6b88e
parent: 1eee4053a684d440a181d20022ab1c69e0ada024
author: Paul Brossier <piem@piem.org>
date: Fri Mar 22 07:43:59 EDT 2013
python/demos/demo_waveform_plot.py: also set x limits
--- a/python/demos/demo_waveform_plot.py
+++ b/python/demos/demo_waveform_plot.py
@@ -36,6 +36,7 @@
return ax
def set_xlabels_sample2time(ax, latest_sample, samplerate):
+ ax.axis(xmin = 0, xmax = latest_sample)
if latest_sample / float(samplerate) > 60:
ax.set_xlabel('time (mm:ss)')
ax.set_xticklabels([ "%02d:%02d" % (t/float(samplerate)/60, (t/float(samplerate))%60) for t in ax.get_xticks()[:-1]], rotation = 50)