Datetime/duration format not supported using plot3()
Open
@gilbertogalvis is already working on this.
Since Oct 16, 2021.
- Dominant language
- MATLAB
- Stars
- 413
- Forks
- 166
- PR merge metrics
- No merged PRs in 30d
Description
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:


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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.