plotly / plotly/plotly_matlab

docs - coneplot problems

Đang mở
#440 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Ngôn ngữ chính
MATLAB
Star
413
Fork
166
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Chạy các ví dụ MATLAB được cung cấp bằng fig2plotly với TreatAs được đặt thành coneplot. So sánh đầu ra cho cone FaceColor và EdgeColor, nền của slice, các thiết lập lighting và các thay đổi của view/daspect. Hoàn tất khi các thiết lập coneplot, surface, lighting, camera và aspect-ratio này được phản ánh trong kết quả Plotly.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
matlab
Lĩnh vực
data-visualization
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.