docs - coneplot problems

Ouverte
#440 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
35/100
Type d'issue
Bug
Clarté
Plutôt claire
Activité
À l'abandon
Stack technique
matlab

Piste de recherche

Exécutez les exemples MATLAB fournis avec fig2plotly, en définissant TreatAs sur coneplot. Comparez la sortie pour cone FaceColor et EdgeColor, l’arrière-plan de slice, les paramètres de lighting et les modifications de view/daspect. C’est terminé lorsque ces paramètres de coneplot, surface, lighting, camera et aspect-ratio sont reflétés dans le résultat Plotly.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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

Langage dominant
MATLAB
Étoiles
414
Forks
166
Métriques de merge des PR
Aucune PR mergée en 30 j

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de plotly/plotly_matlab

Toutes les issues de plotly/plotly_matlab

Issues similaires

Plus d'issues MATLAB

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.