plotly / plotly/plotly_matlab

tiledlayout() not working: Not plotting multiple plots separately on same figure using plot3()

Offen
#165 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 used:

tiledlayout(1,2)

% Left plot
ax1 = nexttile;
t = 0:pi/20:10*pi;
xt1 = sin(t);
yt1 = cos(t);
plot3(ax1,xt1,yt1,t)
title(ax1,'Helix With 5 Turns')

% Right plot
ax2 = nexttile;
t = 0:pi/20:10*pi;
xt2 = sin(2*t);
yt2 = cos(2*t);
plot3(ax2,xt2,yt2,t, 'Color','red')
title(ax2,'Helix With 10 Turns')

fig2plotly();

Expected and obtained (https://chart-studio.plotly.com/~xarico10/164/helix-with-5-turns/#/) plots:

Captura de Pantalla 2021-07-24 a la(s) 7 13 18 p  m Captura de Pantalla 2021-07-24 a la(s) 7 13 29 p  m

An example on how to do this can be found in:
'Specify Target Axes'
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.