MCPcopy Index your code
hub / github.com/DynamicTimeWarping/dtw-python / dtwPlotAlignment

Function dtwPlotAlignment

dtw/dtwPlot.py:79–87  ·  view source on GitHub ↗
(d, xlab="Query index", ylab="Reference index", **kwargs)

Source from the content-addressed store, hash-verified

77
78
79def dtwPlotAlignment(d, xlab="Query index", ylab="Reference index", **kwargs):
80 import matplotlib.pyplot as plt
81 fig, ax = plt.subplots(figsize=(6, 6))
82
83 ax.plot(d.index1, d.index2, **kwargs)
84 ax.set_xlabel(xlab)
85 ax.set_ylabel(ylab)
86
87 return ax
88
89
90def dtwPlotTwoWay(d, xts=None, yts=None,

Callers 1

dtwPlotFunction · 0.85

Calls 1

plotMethod · 0.45

Tested by

no test coverage detected