plotly / plotly/plotly_matlab

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

Open
#123 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
MATLAB
Stars
413
Forks
166
PR merge metrics
No merged PRs in 30d

Description

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{:});

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the commands colorbar(); and fig2plotly(gcf, 'offline', true);, then start at findColorbarAxis line 8 and trace the call from plotlyfig/update line 552. Use the reported stack trace through plotlyfig and fig2plotly to confirm the failure is resolved when a colorbar is present.

Written by the indexing model from the issue text.

Assessment

Tech stack
matlab
Domain
data-visualization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.