plotly_matlab icon indicating copy to clipboard operation
plotly_matlab copied to clipboard

Datetime/duration format not supported

Open xarico10 opened this issue 5 years ago • 3 comments

When one or both data vectors are Datatime or Duration objects, an error is produced.

No figure is generated, the error is: Captura de Pantalla 2021-07-24 a la(s) 1 08 41 a  m

In this case the code used was:

t = 0:seconds(30):minutes(3);
y = 1:7;

plot(t,y,'DurationTickFormat','mm:ss')
fig2plotly()

An example of plotting a Duration object using MATLAB is found on: 'Plot Durations and Specify Tick Format': https://www.mathworks.com/help/matlab/ref/plot.html

xarico10 avatar Jul 24 '21 06:07 xarico10

issue was solved

benaliabderrahmane avatar Aug 05 '21 19:08 benaliabderrahmane

@benaliabderrahmane Sorry but this still doesn't work for me using the current Master. Could you check if it still works for you?

harshpurwar avatar Aug 08 '21 06:08 harshpurwar

Oh, I get it, the PR was never merged to the master. I guess you are still working on this? Let me know if I can be of help!

harshpurwar avatar Aug 08 '21 06:08 harshpurwar