Documentation

Line Plots

Linear, log-log, semi-log, error bar plots

Functions

plot 2-D line plot
plot3 3-D line plot
loglog Log-log scale plot
semilogx Semilogarithmic plot
semilogy Semilogarithmic plot
errorbar Line plot with error bars
fplot Plot expression or function
fplot3 3-D parametric curve plotter
fimplicit Plot implicit function

MATLAB Language Syntax

LineSpec (Line Specification) Line specification
ColorSpec (Color Specification) Color specification

Properties

Line Properties Chart line appearance and behavior
FunctionLine Properties Line chart appearance and behavior
ImplicitFunctionLine Properties Implicit line chart appearance and behavior
ParameterizedFunctionLine Properties Parameterized line chart appearance and behavior
ErrorBar Properties Error bar chart appearance and behavior

Topics

Create 2-D Graph and Customize Lines

Create a 2-D line plot and specify the line style, line color, and marker type.

Create Chart with Two y-Axes

Create a chart withy-axes on both the left and right sides.

Create Line Plot with Markers

Add markers to a line plot to distinguish multiple lines or to highlight particular data points.

Line Styles Used for Plotting — LineStyleOrder

Control the colors and line styles used for plotting by setting axes properties.

Plot Imaginary and Complex Data

This example shows how to plot the imaginary part versus the real part of a complex vector,z.

Plot Dates and Durations

This example shows how to create line and scatter plots of datetime and duration values using theplotfunction. It also shows how to customize the axes.

Was this topic helpful?