plotly_matlab icon indicating copy to clipboard operation
plotly_matlab copied to clipboard

fig2plotly does not handle timeseries plots

Open niharG8 opened this issue 8 years ago • 0 comments

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) image

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);

image

fig2plotly(fig2);

niharG8 avatar Dec 15 '17 19:12 niharG8