plotly / plotly/plotly_matlab

streamparticles() not working correctly

Open
#307 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

When using streamparticles() to draw stream particles of a vector field, the particles are plotted as a 3-D scatter chart.

load wind
[verts,averts] = streamslice(x,y,z,u,v,w,[],[],5); 
iverts = interpstreamspeed(x,y,z,u,v,w,verts,.05);
streamparticles(iverts, 200)

fig2plotly(gcf, 'offline', false);

Expected and generated (https://chart-studio.plotly.com/~xarico10/1009/#/) plots:
Captura de Pantalla 2021-08-05 a la(s) 3 48 44 p  m
Captura de Pantalla 2021-08-05 a la(s) 3 48 56 p  m

Examples on using streamparticles() can be found on:
https://www.mathworks.com/help/matlab/ref/streamparticles.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

Reproduce the issue with the provided wind, streamslice(), interpstreamspeed(), streamparticles(), and fig2plotly() example, then compare the generated chart with the expected image and the MathWorks streamparticles() examples. Done means the converted plot preserves the stream-particle visualization instead of rendering it as a 3-D scatter chart.

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.