Examples


Use this list to find examples in the documentation.

Plotting Tools

Example — Working with Plotting Tools
Example — Plotting from the Figure Palette
Example — Specifying a Data Source

Generating M-Code

Example — Generating M-Code to Reproduce a Graph

Using Legends and Colorbars

Labeling Colorbar Ticks

Aligning Objects

Example — Vertical Distribute, Horizontal Align
Example — Aligning Text

Setting Type in Figures

Using Axis-Label Commands
Defining Symbols
Example — Using a Mathematical Expression to Title a Graph
Example — Multiline Text
Example — Using LaTeX to Format Math Equations

Annotation Objects

Example — Pinning Textarrows and Ellipses
Example — Enclosing Subplots with an Annotation Rectangle

Creating Specialized Plots

Grouped Bar Graph
Detached 3-D Bars
Grouped 3-D Bars
Coloring 2-D Bars According to Height
Coloring 3-D Bars According to Height
Stacked Bar Graphs to Show Contributing Amounts
Overlaying Bar Graphs
Overlaying Other Plots on Bar Graphs
Comparing Data Sets with Area Graphs
Creating a Pie Chart
Two-Dimensional Stem Plots
Combining Stem Plots with Line Plots
Example – 3-D Stem Plot of an FFT
Example — Combining Stem and Line Plots
Example — Stairstep Plot of a Function
Example — Compass Plot of Wind Direction and Speed
Contour Plot of the Peaks Function
Example — Visualizing Contour Construction
Example — Specifying Index Contours
Changing the Offset of a Contour
Displaying Contours in Polar Coordinates
Example — Smoothing a Matrix for Plotting Contours
Example — Selecting Plotting Points from the Screen
Example — Visualizing an FFT as a Movie
Example — Animating with Erase Modes
Updating Plot Object Axis and Color Data

Basic Printing and Exporting

Printing a Figure at Screen Size
Printing with a Specific Paper Size
Printing a Centered Figure
Exporting in a Specific Graphics Format
Exporting in EPS Format with a TIFF Preview
Exporting a Figure to the Clipboard

Handle Graphics Objects

Example — Creating Core Graphics Objects
Examples — Setting Default Line Styles
Example — Copying Objects
Example — Using newplot

Plot Objects

Introduction
Introduction

Group Objects

Transforming Objects
Example — Transforming a Hierarchy of Objects
Introduction

Finding Object Handles

Example — Finding Objects
Example — Using Logical Operators and Regular Expression

Testing for Hold State

Testing for Hold State

Container Objects

Example — Using Figure Panels

Function Handle Callbacks

Example — Using Function Handles in GUIs

Figure Properties

Example — Specifying Figure Position
Example — Two Custom Pointers

Axes Properties

Introduction
Introduction
Multiple Axes for Different Scaling
Setting Tick Mark Locations
Changing Axis Direction
Introduction
Calculating Color Limits

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS