حسین اتحادی شنبه 30 مرداد 1395 12:52 ق.ظ نظرات ()

LineSpec (Line Specification)

Line specification string syntax

Description

Plotting functions accept string specifiers as arguments and modify the graph generated accordingly. Three components can be specified in the string specifiers along with the plotting command. They are:

  • Line style

  • Marker symbol

  • Color

For example:

plot(x,y,'-.or')

plots y versus x using a dash-dot line (-.), places circular markers (o) at the data points, and colors both line and marker red (r). Specify the components (in any order) as a quoted string after the data arguments. Note that linespecs are single strings, not property-value pairs.

Plotting Data Points with No Line

If you specify a marker, but not a line style, only the markers are plotted. For example:

plot(x,y,'d')

read more..

به ادامه مطلب مراجعه کنید