# Graphics and GUIs with MATLAB

## Specialized 2-D Plotting (Plotting in Two Dimensions) (MATLAB) Part 3

Area Plots The area function will generate a filled area plot from either a vector of data, or the columns of a matrix. When creating an area plot with a vector, the data points defined by the vector are straight line connected. Then the area between the lines and the y axis at 0 (by […]

## Specialized 2-D Plotting (Plotting in Two Dimensions) (MATLAB) Part 4

Using the Polar Coordinate System So far we have been discussing plotting routines that make use of the Cartesian coordinate system. MATLAB also provides functions that plot data in the polar coordinates of magnitude and angle, commonly referred to as rho and theta respectively. Here we will discuss the MATLAB commands compass, polar, rose, and […]

## Plot Editing in the MATLAB Figure Window (Plotting in Two Dimensions)

As you have seen in the previous sections, MATLAB provides many quick ways to generate very useful plots. You’ve also seen that by passing various strings and vectors you can tailor certain aspects of your plot to customize it to your needs. What you have done so far is to use the specific plotting functions, […]

## Elementary 3-D Plotting (Plotting in Three Dimensions) (MATLAB) Part 1

We live in a three-dimensional world and much of our information is best revealed with 3-D techniques. Fortunately, MATLAB provides you with a cornucopia of graphics functions that let you make quick 3-D plots and visualizations of your data. This topic is intended to introduce you to these functions and lead you to a good […]

## Elementary 3-D Plotting (Plotting in Three Dimensions) (MATLAB) Part 2

Waterfall Plots Similar in appearance to the curtain mesh made with meshz is the function waterfall, which creates a mesh plot only from the row data, not from the columns. This kind of plot is often used to visualize series of data that change with each observation. It’s called "waterfall" because the resulting plot looks […]

## Elementary 3-D Plotting (Plotting in Three Dimensions) (MATLAB) Part 3

Contour Plots Contour plots are an excellent way of visualizing some of your matrices. Contours represent the constant data values with lines called isolines. MATLAB provides both 2-D (top-down view) and 3-D (perspective view) contour plots. We cover both the 2-D and 3-D contour plots in this section since these plots are often associated with […]

## Elementary 3-D Plotting (Plotting in Three Dimensions) (MATLAB) Part 4

3-D Stem Plots Similar to the stem function, stem3 creates vertical lines terminated with a symbol but instead of emanating from the y-axis as in the case of stem, the lines emanate from the xy-plane. The forms of this function are: stem3(Z) plots the discrete surface Z as stems from the xy-plane terminated with circles […]

## Simple 3-D Plot Manipulation (Plotting in Three Dimensions) (MATLAB)

These tools are just as applicable in the 3-D case as they are for 2-D plots. The Insert Text, Insert Arrow, etc., all work just as in the 2-D case; however be aware that if you annotate your plot before rotating it, the annotations will not move with the plot. This can lead to confusion […]

## Volume Visualization (Plotting in Three Dimensions) (MATLAB) Part 1

In the 3-D visualization methods discussed so far, we have been concerned with surfaces. Volume visualization is concerned with representing a threedimensional matrix of points, i.e., a volume, in which each point can be either a scalar (magnitude only) or vector (magnitude and direction). Scalar data is a single value for each point, while vector […]

## Volume Visualization (Plotting in Three Dimensions) (MATLAB) Part 2

Stream Plots Since vector volume data can be thought of as particles flowing through a volume, it is desirable to have some visualization methods that indicate the direction of flow. Stream plots do just that. The differences amongst the stream plots provided in MATLAB have to do with the way the streams are visualized. Stream […]