This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.

Line Plots

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


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


Chart Line Properties Control chart line appearance and behavior
Function Line Properties Control function line appearance and behavior
Implicit Function Line Properties Control implicit function line appearance and behavior
Parameterized Function Line Properties Control parameterized function line appearance and behavior
Errorbar Series Properties Control errorbar series appearance and behavior


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

This example shows how to create a chart with y-axes on the left and right sides using the yyaxis function.

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 the plot function. It also shows how to customize the axes.

Was this topic helpful?