plotly / plotly/plotly_matlab

Default colors not matching when using streamribbon()

Open
#309 0 comments 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

Default colors aren't matching when using streamribbon(). Also, a warning message is printed.

load wind
[sx,sy,sz] = meshgrid(80,20:10:50,0:5:15);
streamribbon(x,y,z,u,v,w,sx,sy,sz);

fig2plotly(gcf, 'offline', false);

The previous code prints the following warning message:
Estimated Draw Time SlowThe draw time for this plot will be slow for clients without much RAM.
And it does take a lot of time to plot.

Expected and generated (https://chart-studio.plotly.com/~xarico10/1015/#/) plots:
Captura de Pantalla 2021-08-05 a la(s) 3 57 14 p  m
Captura de Pantalla 2021-08-05 a la(s) 3 57 27 p  m

Examples on using streamribbon() can be found on:
https://www.mathworks.com/help/matlab/ref/streamribbon.html

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

Start by running the MATLAB example using streamribbon() and then fig2plotly(gcf, 'offline', false). Compare the expected and generated plots linked in the issue, and inspect the warning and plotting delay. Done means the generated colors match the expected plot and the reported slow-draw behavior is addressed.

Written by the indexing model from the issue text.

Assessment

Tech stack
matlab
Domain
data-visualization
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.