Line styles, colors, and markers in complex plots in Matlab


For creating figures for print, lines and markers should be distinguishable by both, color and style. Matlab offers a variety of styles and colors, but the plot command when given a matrix as y input, only changes colors. You can spend a lot of time checking what looks good and what not. Here I present a script which can help to generate plots where each curve is distinguishable by marker, color, and line style.

This script is for generating plots with many curves, where each curve has its own marker, color, and line style.

Something like the following does the job:



You might also be interested in my tutorial of how to produce first quality figures with matlab. I also wrote articles about exporting data from matlab and how to export videos from matlab.

6 Responses to "Line styles, colors, and markers in complex plots in Matlab"

Thanks a lot Benjamin.

Thanks, it was very usefull!!

Thanks a lot :)

thanks alot

thanks alot

Hey there, I think your website might be having browser compatibility issues.
When I look at your website in Firefox, it looks fine but when opening in Internet Explorer, it has some overlapping.
I just wanted to give you a quick heads up! Other then that, superb blog!


Check out my site :: แทงบอล

  Subscribe to replies to this post

 
This conversation is missing your voice. Your feedback is appreciated.
Post a Comment


You can use some HTML tags, such as <b>, <i>, <a>

If you see a message that says "your request could not be processed" press preview first and then post.
 
You can follow the discussion of this post by subscribing.


 
You are free to include information from this article on your own site if you provide a backlink. You can use the following markup:
<a href="http://www.myoutsourcedbrain.com/2009/03/line-styles-in-matlab.html">Line styles, colors, and markers in complex plots in Matlab</a>