plotly_matlab
plotly_matlab copied to clipboard
fig2plotly does not handle timeseries plots
fig2plotly fails completely if I provide it with a timeseries plot that has datetimes on as the x-axis.
Here's an example with a tscollection mydata, where mydata.Time is double data that is posix time (seconds since epoch), and the mydata.TimeInfo.StartDate is '01-Jan-1970 00:00:00.000'.
fig = figure; plot(myData.accelmeterZ_mps2)

fig2plotly(fig);
Error using response_handler (line 31)
Hm... Plotly had some trouble decoding your 'args'. Are you sure your data or styling object is in the right format? Check out
the examples at plot.ly/api for guidance.
However, if I just plot the underlying data, it works just fine:
fig2 = figure; plot(myData.Time, myData.accelmeterZ_mps2.Data);

fig2plotly(fig2);