Skip to content

Datetime/duration format not supported using plot3() #166

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

Open
xarico10 opened this issue Jul 25, 2021 · 0 comments
Open

Datetime/duration format not supported using plot3() #166

xarico10 opened this issue Jul 25, 2021 · 0 comments
Assignees

Comments

@xarico10
Copy link
Contributor

Code:

x = rand(1,10);
y = rand(1,10);
z = duration(rand(10,1),randi(60,10,1),randi(60,10,1));

plot3(x,y,z,'o','DurationTickFormat','mm:ss')
xlabel('X')
ylabel('Y')
zlabel('Duration')
grid on

fig2plotly();

The following message is printed:

Invalid data type. First argument must be numeric or logical.
We had trouble parsing the line object.
This trace might not render properly.

Expected and generated (https://chart-studio.plotly.com/~xarico10/166/#/) plots:
Captura de Pantalla 2021-07-24 a la(s) 7 22 21 p  m
Captura de Pantalla 2021-07-24 a la(s) 7 24 54 p  m

An example on using Duration objects can be found on:
'Plot Duration Data with Custom Tick Format'
https://www.mathworks.com/help/matlab/ref/plot3.html

@xarico10 xarico10 changed the title Datetime/duration format not supported using 3plot() Datetime/duration format not supported using plot3() Jul 25, 2021
@benaliabderrahmane benaliabderrahmane self-assigned this Jul 30, 2021
@benaliabderrahmane benaliabderrahmane removed their assignment Aug 6, 2021
@gilbertogalvis gilbertogalvis self-assigned this Oct 16, 2021
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

3 participants