File Exchange

image thumbnail

Plot with linestyles and markers

version 1.0.0.0 (2.44 KB) by Sébastien Martin
Plot lines with different line styles, line colors, and markers

9 Downloads

Updated 14 Jul 2015

View License

MATLAB plot function plots the different lines with different colours, but the same linestyle and no marker, which gives a poor visibility when printing in black and white (typical publication).
This function modifies the linestyles and markers as well.
Can handle different drawing functions such as plot, semilogx, semilogy, ...

Cite As

Sébastien Martin (2021). Plot with linestyles and markers (https://www.mathworks.com/matlabcentral/fileexchange/52091-plot-with-linestyles-and-markers), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (4)

Sébastien Martin

@omid zandi: Sorry I do not use Matlab anymore at work, but as I recall the latest versions I got to use (2018a) was also plotting with different linestyles by default. You can call this function the exact same way you'd call the plot function.

omid zandi

I wish you had put one example too. i have problem implementing the function and get same result as matlab built-in plot function.

Felipe Arrospide

Bruno Melo

Thank you.

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

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!