Linestyle with plot3
Afficher commentaires plus anciens
Hi everyone,
how to change linestyle when using plot3. I am trying to plot a dashed dot line (-----) between two points, it is not working. When I used:
plot3([x1,x2],[y1,y2],[z1,z2],'linewidth',3,'k--'),
only the linewidth and the color change but the linestyle is still solid. Please, would someone explain me how to set changes. Thanks a lot for advance. All the best !!!
1 commentaire
Stephen23
le 29 Juin 2017
Look at the list of permitted syntaxes for plot3: the one you are using, with the linestyle following some name-value pairs is not listed. The one that Walter Roberson uses, where the linestyle precedes some name-value pairs is listed. You should always read the documentation.
Réponses (1)
Walter Roberson
le 29 Juin 2017
plot3([x1,x2],[y1,y2],[z1,z2],'k--','linewidth',3),
5 commentaires
Mma Kenya
le 29 Juin 2017
Walter Roberson
le 29 Juin 2017
Modifié(e) : Walter Roberson
le 29 Juin 2017
It works for me. Which release are you using?
plot3([1 2],[3 4],[5 6],'k--','LineWidth',3)
Mma Kenya
le 29 Juin 2017
Walter Roberson
le 29 Juin 2017
Mma Kenya
le 29 Juin 2017
Catégories
En savoir plus sur 2-D and 3-D Plots dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!