[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Linestyle with plot3

From: Pantxo
Subject: Re: Linestyle with plot3
Date: Thu, 29 Jun 2017 02:57:55 -0700 (PDT)

Mma Kenya wrote
> 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. I am using GNU octave
> version 4.0.2. Thanks a lot for advance. All the best !!!


Like with the "plot" function, the format argument (here "k--") must appear
prior to property/value pairs (here "'linewidth', 3"):

 -- plot (X, Y, FMT)
 -- plot (..., PROPERTY, VALUE, ...)  



should do the trick.


View this message in context:
Sent from the Octave - General mailing list archive at

reply via email to

[Prev in Thread] Current Thread [Next in Thread]