
Unfortunately, high-level plotting functions like PLOT will reset the 'LineStyleOrder' property of the axes to it's default value '-' before plotting. See Also line, plot, surface, patch, Axes LineStyleOrder propert. 1 Answer Sorted by: 16 Your first inclination might be to just change the 'LineStyleOrder' property of the axes before plotting your data. For example, create a line plot with a dashed line: plot ( 0 1 2 3, '-') Markers Usually, you can specify a marker symbol in addition to the line style.
#MATLAB LINE STYLE SWEEP HOW TO#
See the ColorSpec for more information on color.Įxamples Plot the sine function over three different ranges using different line styles, colors, and markers:Ĭreate a plot illustrating how to set line graphics properties: Line Styles Most line plots display a solid line by default, but you can customize the line with any of the line styles in the following table. This is useful if you want to specific a color that is not in the list by using RGB values. In addition, you can specify the LineStyle, Color, and Marker properties instead of using the symbol string. Thats why, the algorithms based on this concept are sometimes also called plane sweep algorithms. MarkerSize - specifies the size of the marker in points. What is a sweep line A sweep line is an imaginary vertical line which is swept across the plane rightwards.I can pull the names from an array.I mainly need some way to color the different plots differently. MarkerFaceColor - specifies the color of the face of filled markers. I would like to see which data goes with which plot.


LineWidth - specifies the width (in points) of the line.Related Properties When using the plot and plot3 functions, you can also specify other characteristics of lines using graphics properties: Specify these symbols (in any order) as a quoted string after the data arguments. ), colored red ( r ), and places circular markers ( o) at the data points. For example, plot (x,y,'-.ro') plots y versus x using a dash-dot line (.
#MATLAB LINE STYLE SWEEP CODE#
The following tables list the symbols you use to define the line style, color, and marker. Introduction Parameter sweep applications are a class of application in which the same code is run multiple times using unique sets of input parameter values. LineSpec is an argument to plotting functions, such as plot, that defines three components used to specify lines in MATLAB: Line style. Also, you can plot expressions or functions over specific intervals. You can plot the data in a 2-D or 3-D view using either a linear or a logarithmic scale.

Line plots are a useful way to compare sets of data or track changes over time. If you specify a marker, but no a linesytle, MATLAB plots only the markers. Line plots, log plots, and function plots. ), colored red ( r), and places circular markers ( o) at the data points. Plots y versus x using a dash-dot line (. LineSpec (MATLAB Function Reference) MATLAB Function Referenceĭescription LineSpec is an argument to plotting functions, such as plot, that defines three components used to specify lines in MATLAB:
