Skip to content

Commit

Permalink
Don't show microseconds on dts plot.
Browse files Browse the repository at this point in the history
  • Loading branch information
foobarbecue committed Jul 26, 2015
1 parent 145705b commit 2d3a707
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dts.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ def plot_dts(dts_dataframe, min_dist=None, max_dist=None, min_time=None, max_tim
#For some reason an extra tick is created beyond the end of the data. Remove it using [:-1].
xlocs, xlabels = xlocs[:-1], xlabels[:-1]
xdates = pltdata.iloc[0,xlocs].index
xdates = [ts.strftime('%Y-%m-%d %H:%M') for ts in xdates]
ylocs, ylabels = pyplot.yticks()
ylocs, ylabels = ylocs[:-1], ylabels[:-1]
ydists = pltdata.iloc[ylocs,0].index
Expand All @@ -88,4 +89,4 @@ def read_and_plot_pwrrat(dtsdir, **kwargs):
antistokes = read_ddf_col(dtsdir, ddf_column=2).astype(dtype=float)
ratio = 1/numpy.log(stokes/antistokes)
ratio_trimmed = plot_dts(ratio, **kwargs)
return ratio_trimmed
return ratio_trimmed

0 comments on commit 2d3a707

Please sign in to comment.