Maple Professional
Maple Academic
Maple Student Edition
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professional
MapleSim Academic
Maple T.A. - Testing & Assessment
Maple T.A. MAA Placement Test Suite
Möbius - Online Courseware
Machine Design / Industrial Automation
Aerospace
Vehicle Engineering
Robotics
Power Industries
System Simulation and Analysis
Model development for HIL
Plant Modeling for Control Design
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematics Education
Engineering Education
High Schools & Two-Year Colleges
Testing & Assessment
Students
Financial Modeling
Operations Research
High Performance Computing
Physics
Live Webinars
Recorded Webinars
Upcoming Events
MaplePrimes
Maplesoft Blog
Maplesoft Membership
Maple Ambassador Program
MapleCloud
Technical Whitepapers
E-Mail Newsletters
Maple Books
Math Matters
Application Center
MapleSim Model Gallery
User Case Studies
Exploring Engineering Fundamentals
Teaching Concepts with Maple
Maplesoft Welcome Center
Teacher Resource Center
Student Help Center
plots[listdensityplot] - two-dimensional density plotting of data
Calling Sequence
listdensityplot(A, options)
Parameters
A
-
grid of data to be plotted
options
(optional) options for the plot
Description
The listdensityplot creates a density plot of the given grid of data. The data may be input as a list of lists of real numbers, or a matrix of real numbers. In a density plot, the color of each cell depicts the numerical value of the cell. By default, each cell is assigned a gray level from black (smallest value) to white (the largest value) as the value of the cell increases.
Any additional arguments are interpreted as options which are specified as equations of the form option = value. They may be either of the two options described below or any valid option for a 2-D plot. See the help page for plot[options].
The option smooth=false or smooth=true is used to specify whether smooth shading should be used to display the density plot. By default, the value is false, which provides a plot of cells with discrete colors, and produces one cell for each value. If set to true, the data is interpreted to be a sampling of a function, where the samples now correspond to the corners of each cell (instead of the center), and smooth shading is used to draw the density plot. This means that for 5x5 data, smooth=false will produce a plot with 25 discretely colored cells, and smooth=true will produce a plot with 16 smoothly shaded cells.
The option colorstyle=RGB and colorstyle=HUE specify that color is to be used instead. For colorstyle=RGB, the red intensity increases with the x-axis, the green intensity increases with the y-axis, and the blue intensity is specified by the input values. For colorstyle=HUE, the density plot is displayed with respect to the HUE values.
The option range=a..b where a and b are real constants specifies that the data is to be interpreted as being in the range a..b when intensity values are assigned. By default the minimum data value and the maximum data value in A are used. If this option is used, and data values in A are outside of the range a..b, they will be truncated to the given range.
A call to listdensityplot produces a {PLOT} data structure, which is then displayed. For information on this data structure see the help page for plot[structure].
Examples
Now the same plots using smooth shading
See Also
plot, plot[option], plot[structure], plots[densityplot]
Download Help Document