Skip to content

colstyle

plot · scripts/plot/util/colstyle.m

[l, c, m, msg] = colstyle (style)
  Split a line specification such as "r--" into its line style L, colour
  letter C and marker M.  Absent parts are [], except that a marker
  without a line gives L = "none" and a line without a marker gives
  M = "none".  An unusable character does not raise an error: L, C and M
  are then empty and MSG explains what was wrong.