More Matlab Gripes

Ok, here's another gripe that I have about Matlab (at least, the older version that I own and use). Let's say that you want to plot two sets of data, so you write a simple script:


The output from this script is the following plot:


If you look at the manfile for linespec (which define properties for things like lines in plots), you will find the following pre-defined colors that are available to use.


So, let's say that you use the same script, but want to specify the colors. One would reasonably expect that the pre-defined green in linespec is the same as the green that is used by default in plots. But it's not. Let's say you run the same script, but specify that one line should be blue and one line should be green:


You will get the following plot:


Not only is the green a different color, but it's a color that often does not show up well when shown on a projector. So, the result is that you have to constantly define your own custom colors if you want to specify line colors in scripts (if you care about people being able to read them, that is).

Labels: ,