This is machine translation

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

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this 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
FunctionLine Properties Control line chart appearance and behavior
ImplicitFunctionLine Properties Control implicit line chart appearance and behavior
ParameterizedFunctionLine Properties Control parameterized line chart appearance and behavior
ErrorBar Properties Control error bar chart 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

Create a chart with y-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 the plot function. It also shows how to customize the axes.

Was this topic helpful?