Foster N., 2016. — 189 p. — ISBN: 1540314200
The MatLAB environment offers a variety of data plotting functions plus a set of GUI tools to create, and modify graphic displays.
The MatLAB environment offers a variety of data plotting functions plus a set of GUI tools to create, and modify graphic displays. The GUI tools afford most of the control over graphic properties and options that typed commands such as annotate, get, and set provide.A figure is a MatLAB window that contains graphic displays (usually data plots) and UI components. You create figures explicitly with the figure function, and implicitly whenever you plot graphics and no figure is active.By default, figure windows are resizable and include pull-down menus and toolbars. A plot is any graphic display you can create within a figure window. Plots can display tabular data, geometric objects, surface and image objects, and annotations such as titles, legends, and colorbars. Figures can contain any number of plots. Each plot is created within a 2-D or a 3-D data space called an axes. You can explicitly create axes with the axes or subplot functions.A graph is a plot of data within a 2-D or 3-D axes. Most plots made with MatLAB functions and GUIs are therefore graphs. When you graph a one-dimensional variable (e.g., rand(100,1)), the indices of the data vector (in this case 1:100) become assigned as x values, and plots the data vector as y values. Some types of graphs can display more than one variable at a time, others cannot. Figures, plots and graphs in MatLAB are explained in this book.
Plots and Plotting Tools
• “Figures, Plots, and Graphs” • “Plotting Tools — Interactive Plotting” • “Plotting Workspace Variables” • “Catalog of a Graphs” • “Specifying a Data Source” • “Generating MatLAB Code to Reproduce a Graph” • “Editing Plots” • “Working in Plot Edit Mode” • “Saving Your Work” Basic Plotting Commands • “Plotting Functions” • “Line Plots of Matrix Data” • “Plotting Imaginary and Complex Data” • “Plotting with Two Y-Axes” • “Setting Axis Parameters” • “Figure Setup” • “Graphing Command Scripts” Data Exploration Tools • “Ways to Explore Graphical Data” • “Data Cursor — Displaying Data Values Interactively” • “Zooming in Graphs” • “Panning — Shifting Your View of the Graph” • “Rotate in 3-D” • “Customizing Data Exploration Tools” Annotating Graphs • “How to Annotate Graphs” • “Alignment Tool — Aligning and Distributing Objects” • “Adding Titles to Graphs” • “Adding Axis Labels to Graphs” • “Adding Text Annotations to Graphs” • “Adding Arrows and Lines to Graphs”7 • “Positioning Annotations in Data Space” Creating Specialized Plots • “Bar and Area Graphs” • “Pie Charts” • “Histograms” • “Discrete Data Graphs” • “Direction and Velocity Vector Graphs” • “Contour Plots” • “Interactive Plotting” • “Animation” on page