WOLFRAM
Products
Wolfram|One
Mathematica
Wolfram Notebook Assistant + LLM Kit
Wolfram|Alpha Notebook Edition
System Modeler
All Products
Consulting & Solutions
Wolfram Consulting
Industry Solutions
Solutions for Education
Learning & Support
Wolfram U Courses
Wolfram Language Resources
Wolfram Community
Support FAQs
Contact Support
Company
About Wolfram
Careers
Events
Educational Programs
All Sites and Resources
Wolfram|Alpha
Wolfram Cloud
Your Account
Your Account
User Portal
Search
Close
Enable JavaScript to interact with content and submit forms on Wolfram websites.
Learn how
Legacy Documentation
Digital Image Processing
(2000)
This is documentation for an obsolete product.
Current products and services
User's Guide
Area Operations
5.7 Plotting Sampled Signals
This section describes two new functions for plotting discrete signals. These follow a common convention found in signal processing texts by plotting discrete signals using vertical lines.
LinePlot
[
{
y
1
,
y
2
, ...
}
]
plots a list of values using vertical lines of height
y
i
at position
i
LinePlot
[
{
{
x
1
,
y
1
}
,
{
x
2
,
y
2
}
,
...
}
]
plots
y
i
at position
x
i
LinePlot3D
[
mat
,
{
x
,
x
min
,
x
max
}
,
{
y
,
y
min
,
y
max
}
]
plots a matrix
mat
as a sampled function on a grid defined by
x
and
y
LinePlot
functions.
This loads the package.
In[1]:=
The function may also be used to plot a simple list of
y
values and a list of pairs of
x
,
y
values, as in the built-in
ListPlot
function.
In[2]:=
This plots the signal
sig
using the default plot style.
In[3]:=
Out[3]=
Here is a stick plot of 2D data.
In[4]:=
In[5]:=
Out[5]=
Option
Default
PointStyle
"Automatic"
PlotStyle
directive for the
Point
primitive
LineStyle
"Automatic"
PlotStyle
directive for the
Line
primitive
Options for
LinePlot
.
The style of points and lines in
LinePlot
and
LinePlot3D
may be controlled with options
PointStyle
and
LineStyle
. Here is an example.
In[6]:=
Out[6]=