docs - coneplot problems

オープン
#440 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
matlab

調査の方向性

提供された MATLAB の例を、TreatAs を coneplot に設定して fig2plotly で実行します。cone の FaceColor と EdgeColor、slice の背景、lighting の設定、および view/daspect の変更について出力を比較します。これらの coneplot、surface、lighting、camera、aspect-ratio の設定が Plotly の結果に反映されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

load wind;

xmin = min(x(:));
xmax = max(x(:));
ymin = min(y(:));
ymax = max(y(:));
zmin = min(z(:));

xrange = linspace(xmin,xmax,8);
yrange = linspace(ymin,ymax,8);
zrange = 3:4:15;
[cx,cy,cz] = meshgrid(xrange,yrange,zrange);

figure;
hcone = coneplot(x,y,z,u,v,w,cx,cy,cz,5);

hcone.FaceColor = 'red';
hcone.EdgeColor = 'none';


fig2plotly(gcf, 'TreatAs', 'coneplot');

The red color is not properly translated to plotly plot


load wind;

xmin = min(x(:));
xmax = max(x(:));
ymin = min(y(:));
ymax = max(y(:));
zmin = min(z(:));

xrange = linspace(xmin,xmax,8);
yrange = linspace(ymin,ymax,8);
zrange = 3:4:15;
[cx,cy,cz] = meshgrid(xrange,yrange,zrange);

figure;
hcone = coneplot(x,y,z,u,v,w,cx,cy,cz,5);

hcone.FaceColor = 'red';
hcone.EdgeColor = 'none';

hold on;
wind_speed = sqrt(u.^2 + v.^2 + w.^2);

hsurfaces = slice(x,y,z,wind_speed,[xmin,xmax],ymax,zmin);
set(hsurfaces,'FaceColor','interp','EdgeColor','none');
hold off;

fig2plotly(gcf, 'TreatAs', 'coneplot');

The vector field added to background with wind_speed is not added to plotly plot


load wind;

xmin = min(x(:));
xmax = max(x(:));
ymin = min(y(:));
ymax = max(y(:));
zmin = min(z(:));

xrange = linspace(xmin,xmax,8);
yrange = linspace(ymin,ymax,8);
zrange = 3:4:15;
[cx,cy,cz] = meshgrid(xrange,yrange,zrange);

figure;
hcone = coneplot(x,y,z,u,v,w,cx,cy,cz,5);

hcone.FaceColor = 'red';
hcone.EdgeColor = 'none';

hold on;
wind_speed = sqrt(u.^2 + v.^2 + w.^2);

hsurfaces = slice(x,y,z,wind_speed,[xmin,xmax],ymax,zmin);
set(hsurfaces,'FaceColor','interp','EdgeColor','none');
hold off;

camlight right;
lighting gouraud;
set(hsurfaces,'AmbientStrength',0.6);
hcone.DiffuseStrength = 0.8;

fig2plotly(gcf, 'TreatAs', 'coneplot')

The light source lighting gouraud; is not added to plotly plot.


load wind;

xmin = min(x(:));
xmax = max(x(:));
ymin = min(y(:));
ymax = max(y(:));
zmin = min(z(:));

xrange = linspace(xmin,xmax,8);
yrange = linspace(ymin,ymax,8);
zrange = 3:4:15;
[cx,cy,cz] = meshgrid(xrange,yrange,zrange);

figure;
hcone = coneplot(x,y,z,u,v,w,cx,cy,cz,5);

hcone.FaceColor = 'red';
hcone.EdgeColor = 'none';

hold on;
wind_speed = sqrt(u.^2 + v.^2 + w.^2);

hsurfaces = slice(x,y,z,wind_speed,[xmin,xmax],ymax,zmin);
set(hsurfaces,'FaceColor','interp','EdgeColor','none');
hold off;

camlight right;
lighting gouraud;
set(hsurfaces,'AmbientStrength',0.6);
hcone.DiffuseStrength = 0.8;

view(30,40)
daspect([2,2,1])

fig2plotly(gcf, 'TreatAs', 'coneplot')
view(30,40)
daspect([2,2,1])

is supposed to change initial view angle, and aspect ratio of the plot. Does not do it

主要言語
MATLAB
スター
414
フォーク
166
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

plotly/plotly_matlab のほかの issue

plotly/plotly_matlab の issue をすべて見る

似ている issue

MATLAB の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。