plotly / plotly/plotly_matlab

fig2plotly() produces error in a code that uses colorbar()

Offen
#123 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

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

Beschreibung

An attempt to call fig2plotly() in a code that uses colorbar() produces the following error:

PROMPT> colorbar();
PROMPT> fig2plotly(gcf, 'offline', true);
Insufficient number of outputs from right hand side of equal sign to satisfy assignment.

Error in findColorbarAxis (line 8)
colorbarAxis = obj.State.Axis(colorbarAxisIndex).Handle;

Error in plotlyfig/update (line 552)
colorbarAxis = findColorbarAxis(obj, handle(cols(c)));

Error in plotlyfig (line 203)
obj.update;

Error in fig2plotly (line 44)
p = plotlyfig(varargin{:});

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.

Rechercherichtung

Führe die Befehle colorbar(); und fig2plotly(gcf, 'offline', true); erneut aus. Beginne dann bei findColorbarAxis in Zeile 8 und verfolge den Aufruf von plotlyfig/update in Zeile 552. Verwende den gemeldeten Stacktrace durch plotlyfig und fig2plotly, um zu bestätigen, dass der Fehler behoben ist, wenn eine colorbar vorhanden ist.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
matlab
Bereich
data-visualization
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

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