File Exchange

image thumbnail

PeterRochford/Marke​rTransparency

version 1.0.0.0 by Peter Rochford
A collection of Matlab functions for creating semi-transparent markers in plots and legends.

16 Downloads

Updated 26 Nov 2017

GitHub view license on GitHub

This is a collection of functions for creating semi-transparent markers in plots and legends. They were written to simplify the task of using markers in plots with a face color that can vary from transparent to opaque. A few examples of how to use these functions are included. There is also a Wiki at https://github.com/PeterRochford/MarkerTransparency/wiki.

Comments and Ratings (10)

This toolbox works up to Matlab R2017b but fails with version R2018b. MathWorks cannot guarantee the undocumented functionality that I am exploiting will continue to work in R2018b and future releases. An enhancement request has been submitted internally at MathWorks for this functionality to be added in a future Matlab release. I will update the toolbox once a stable solution is available. However, it is likely this toolbox will become obsolete at that point.

ANKUR KUMAR

sindhu252

The matrix of ['r','b'] in the legendMarkers() function of the marker2.m file controls the fill colors of the markers in the plot. The colors that are given in the plot() function specify the color of the line and the outer circle of the marker. If you set the matrix to ['m'; 'g'] you will get blue circles filled with magenta and red circles filled with green.

Sungwoo Park

What is the matrix of ['r','b'] in the example2. I want to change the colors.

Put the '.' before the dash, e.g. replace '-o' with '.-' in the example scripts.

Labe Black

Hi Peter,

Fantastic script!

Do you know of a way to get rid of the 'o' marker and replace it with '.'?

MATLAB Release Compatibility
Created with R2017b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Discover Live Editor

Create scripts with code, output, and formatted text in a single executable document.


Learn About Live Editor