Example 1 - PeterRochford/MarkerTransparency GitHub Wiki

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.