Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better Plotting Capabilities #2

Open
ahwillia opened this issue Aug 28, 2016 · 4 comments
Open

Better Plotting Capabilities #2

ahwillia opened this issue Aug 28, 2016 · 4 comments

Comments

@ahwillia
Copy link
Owner

ahwillia commented Aug 28, 2016

The dtw package in R has some nice ideas for visualizing fits. Would be nice to have similar functionality here:

screen shot 2016-08-27 at 5 02 32 pm

screen shot 2016-08-27 at 5 02 41 pm

Toni Giorgino (2009). Computing and Visualizing Dynamic Time Warping Alignments in R: The dtw Package. Journal of Statistical Software, 31(7), 1-24, doi:10.18637/jss.v031.i07.

@ssfrr
Copy link

ssfrr commented Aug 28, 2016

less fancy, but also check out the examples for the python dtw package:

http://nbviewer.jupyter.org/github/pierre-rouanet/dtw/blob/master/simple%20example.ipynb

Seems like as long as we can plot a 2D matrix with imshow or equivalent (heatmap in PlotlyJS.jl works pretty well for this sort of thing), and overlay the path with x and y coords, it should be pretty useful.

@ahwillia
Copy link
Owner Author

I have something basic working. I think it would be cool to get some error bars around the path through the matrix to get a sense of how much slack there is in the fit. @ssfrr - do you know of any simple way to do this?

screen shot 2016-08-28 at 4 13 27 pm

@ahwillia
Copy link
Owner Author

ahwillia commented Sep 1, 2016

I think it is cleaner if this package only implements computations related to dynamic time warping. I started another repo here to hold the plot recipes: https://github.com/ahwillia/TimeSeriesPlots.jl

@ahwillia ahwillia closed this as completed Sep 1, 2016
@ahwillia
Copy link
Owner Author

ahwillia commented Sep 1, 2016

I changed my mind. I'm going to organize the plots like this:

module TimeWarp

# ... dtw fitting code here

module WarpPlots
using Reexport
@reexport using Plots
# ... plotting recipes here
end

end

So that users can do:

using TimeWarp
using TimeWarp.WarpPlots
dtwplot(randn(10,1), randn(10,1))

To produce the plot above. This also allows users to change the Plots backend and not deal with plots unless they explicitly import them.

@ahwillia ahwillia reopened this Sep 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants