plotly / plotly/plotly_matlab

Datetime/duration format not supported using plot3()

Offen
#166 0 Kommentare 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

@gilbertogalvis arbeitet bereits daran.

Seit 16.10.2021.

Vorherrschende Sprache
MATLAB
Sterne
413
Forks
166
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.