High-Level Graphics
Handle Graphics
Building Interactive GUIs
How It All Fits Together
Where to Begin
Basic Plotting
Basic Plotting Commands
Creating Plots
Specifying Line Style
Specifying the Color and Size of Lines
Adding Plots to an Existing Graph
Plotting Only the Data Points
Plotting Markers and Lines
Line Styles for Black and White Output
Setting Default Line Styles
Line Plots of Matrix Data
Plotting Imaginary and Complex Data
Plotting with Two Y-Axes
Line Plots of 3-D Data
Setting Axis Parameters
Axis Limits and Ticks
Example - Specifying Ticks and Tick Labels
Setting Aspect Ratio
Figure Windows
Displaying Multiple Plots per Figure
Specifying the Target Axes
Default Color Scheme
Labeling Graphs
Labeling Individual Axes
Adding Text Strings to a Graph
Positioning Text on Graphs
Text Alignment
Specifying TeX Characters
Using Variables in Text Strings
Example - Aligning Text
Example - Multiline Text
Specialized Graphs
Bar and Area Graphs
Types of Bar Graphs
Stacked Bar Graphs to Show Contributing Amounts
Specifying X-Axis Data
Overlaying Plots on Bar Graphs
Area Graphs
Comparing Datasets with Area Graphs
Pie Charts
Removing a Piece from a Pie Charts
Histograms
Histograms in Cartesian Coordinate Systems
Histograms in Polar Coordinate Systems
Specifying Number of Bins
Discrete Data Graphs
Two-Dimensional Stem Plots
Combining Stem Plots with Line Plots
Three-Dimensional Stem Plots
Stairstep Plots
Direction and Velocity Vector Graphs
Compass Plots
Feather Plots
Two-Dimensional Quiver Plots
Three-Dimensional Quiver Plots
Contour Plots
Creating Simple Contour Plots
Labeling Contours
Filled Contours
Drawing a Single Contour Line at a Desired Level
The Contouring Algorithm
Changing the Offset of a Contour
Displaying Contours in Polar Coordinates
Interactive Plotting
Animation
Movies
Erase Modes
Creating 3-D Graphs
Representing a Matrix as a Surface
Mesh and Surface Plots
Visualizing Functions of Two Variables
Surface Plots of Nonuniformly Sampled Data
Parametric Surfaces
Hidden Line Removal
Coloring Mesh and Surface Plots
Colormaps
Indexed Colors - Direct and Scaled Colormapping
Example - Mapping Surface Curvature to Color
Altering Colormaps
Truecolor
Texture Mapping
Defining the View
Setting the Viewpoint
Defining Scenes with Camera Graphics
Camera Graphics Commands
Example - Dollying the Camera
Example - Creating a Fly-Through
Low-Level Camera Properties
Default Viewpoint Selection
Moving In and Out on the Scene
Making the Scene Larger or Smaller
Revolving Around the Scene
Rotation without Resizing of Graphics Objects
Rotation About the Viewing Axis
View Projection Types
Projection Types and Camera Location
Understanding Axes Aspect Ratio
Specifying Axis Scaling
Specifying Aspect Ratio
Example - axis Command Options
Additional Commands for Setting Aspect Ratio
Low-Level Aspect Ratio Properties
Default Aspect Ratio Selection
Overriding Stretch-to-Fill
Effects of Setting Aspect Ratio Properties
Example - Displaying Real Objects
Lighting as a Visualization Tool
Lighting Commands
Light Objects
Adding Lights to a Scene
Properties that Affect Lighting
Selecting a Lighting Method
Reflectance Characteristics of Graphics Objects
Specular and Diffuse Reflection
Ambient Light
Specular Exponent
Specular Color Reflectance
Back Face Lighting
Positioning Lights in Data Space
Volume Visualization Techniques
Volume Visualization Commands
Visualizing Scalar Volume Data
Example - Visualizing MRI Data
Exploring Volumes with Slice Planes
Example - Slicing Fluid Flow Data
Modifying the Color Mapping
Connecting Equal Values with Isosurfaces
Isocaps Add Context to Visualizations
Defining Isocaps
Visualizing Vector Volume Data
Stream Line Plots of Vector Data
Vector Data Displayed with Cone Plots
Creating 3-D Models with Patches
Behavior of the patch Function
Creating a Single Polygon
Multi-Faceted Patches
Example - Defining a Cube
Specifying Patch Coloring
Face and Edge Coloring
Example - Specifying Flat Edge and Face Coloring
Coloring Edges with Shared Vertices
How MATLAB Interprets Patch Color Data
Indexed Color Data
Truecolor Patches
Interpolating in Indexed Color vs. Truecolor
Displaying Bit-Mapped Images
Images in MATLAB
Bit Depth Support
Data Types
Image Types
Indexed Images
Intensity Images
RGB (Truecolor) Images
Working with 8-Bit and 16-Bit Images
8-Bit and 16-Bit Indexed Images
8-Bit and 16-Bit Intensity Images
8-Bit and 16-Bit RGB Images
Mathematical Operations Support for uint8 and uint16
Other 8-Bit and 16-Bit Array Support
Summary of Image Types and Numeric Classes
Reading, Writing, and Querying Graphics Image Files
Reading a Graphics Image
Writing a Graphics Image
Obtaining Information About Graphics Files
Displaying Graphics Images
Summary of Image Types and Display Methods
Controlling Aspect Ratio and Display Size
The Image Object and Its Properties
CData
CDataMapping
XData and YData
EraseMode
Printing Images
Converting the Data or Graphic Type of Images
Printing MATLAB Graphics
Printing from the Menu
PC
UNIX
Adjusting the Size and Color of the Graphic
Print Preview
Exporting Figures to Graphic Files
Printing from the Command Line
The print Command
Passing String Arguments to print
Changing Default Print Settings
Graphic File Formats
Output Formats Created by Ghostscript
Specifying Command Line Options
Tiff Preview for EPS (-tiff)
Specifying the Bounding Box (-loose)
CMYK Color Separations (-cmyk)
Appending to an Existing File (-append)
Specifying Resolution (-r)
Default Character-Set Encoding (-adobecset)
Specifying the Figure or Model to Print (-f, -s)
Specifying the Printer to Use (-P) UNIX only
Selecting an Output Format
PostScript
HPGL Compatible Plotters (-dhpgl)
Adobe Illustrator 88 (-dill)
PC-Specific Output Options
Printing Lines and Text in Color or Black and White
Specifying Fonts and Character Sets
PC
UNIX
Specifying Line Styles
Windows 95 Limitation
Selecting the Rendering Method for Printing
Specifying the Rendering Method
Size of Output Files
Changing Background Colors
Troubleshooting MS-Windows Printing
Saving MATLAB Graphics in File Format
MS-Windows Copy Options
Importing MATLAB Graphics into Other Applications
Selecting the Graphics File Format
Vector Format
Bitmap Format
Additional Considerations
Application-Specific Issues
Including Graphics in Word Processor Documents
Example - Importing a Graph
Example - Importing a Bitmap Graphic
Setting Figure Printing Properties
Positioning the Figure on the Printed Page
Example - Readjusting PaperPosition
Specifying Paper Orientation
Specifying Paper Size
Reversing Figure Colors
Handle Graphics
Graphics Objects
Object Properties
Graphics Object Creation Functions
Example - Creating Graphics Objects
Parenting
High-Level Vs. Low-Level
Simplified Calling Syntax
Setting and Querying Property Values
Setting Property Values
Querying Property Values
Factory-Defined Property Values
Setting Default Property Values
Defining Default Values
Examples - Setting Default LineStyles
Accessing Object Handles
The Current Figure, Axes, and Object
Searching for Objects by Property Values -- findobj
Copying Objects
Deleting Objects
Controlling Graphics Output
Specifying the Target for Graphics Output
Preparing Figures and Axes for Graphics
Targeting Graphics Output with newplot
Example - Using newplot
Testing for Hold State
Protecting Figures and Axes
The Close Request Function
Handle Validity versus Handle Visibility
Saving Handles in M-files
Properties Changed by Built-In Functions
Figure Properties
Positioning Figures
Example -- Specifying Figure Position
Controlling How MATLAB Uses Color
Indexed Color Displays
Colormap Colors and Fixed Colors
Using a Large Number of Colors
Nonactive Figures and Shared Colors
Dithering Truecolor on Indexed Color Systems
Selecting Drawing Methods
Backing Store
Double Buffering
Selecting a Renderer
Specifying the Figure Pointer
Defining Custom Pointers
Interactive Graphics
Axes Properties
Labeling and Appearance Properties
Positioning Axes
Units
Multiple Axes per Figure
Placing Text Outside the Axes
Multiple Axes for Different Scaling
Individual Axis Control
Setting Axis Limits
Setting Tick Mark Locations
Changing Axis Direction
Using Multiple X and Y Axes
Automatic-Mode Properties
Colors Controlled By Axes
Specifying Axes Colors
Axes Color Limits - The CLim Property
Example - Simulating Multiple Colormaps In a Figure
Defining the Color of Lines for Plotting
Line Styles Used for Plotting - LineStyleOrder
Plotting and Visualization Functions