Skip to content

Example 1

Peter Rochford edited this page Nov 26, 2017 · 1 revision

A first example of how to create a simple plot containing markers that are sem-transparent. The Matlab code is kept to a minimum.

This example shows how to produce a plot of sine and cosine functions containing markers with a blending of symbol face color of alpha = 0.3. A value of alpha = 0.0 produces a transparent face color while a value of alpha = 1.0 makes it opaque. The example plot is written to a file in Portable Network Graphics (PNG) format.

Note that the markers will appear small because Matlab defaults are used. Refer to later examples for how to change this.

Function Dependencies: rgb, rgba, and setMarkerColor.

Clone this wiki locally