The results of this code will look like this.Ĭaption: Markers with custom colored fill and black borders. % Lambert's Figure 15.3 doesn't specify the x1 & y1 vectors Because the name-value pairs of the options are so long, we can split the command into multiple lines using the ellipsis (.) to break up the lines. This example will plot markers with a custom color for the fill, and the default black for the border. Markers actually have two colors which can be changed, the border and the fill. The exact size will have the be determined on a case by case basis, but each plot should be easy to look at and interpret.Ĭaption: Results of the LineWidth option. Using bold lines often makes plots easier to read and is advised in most cases. The value that follows is the value that we will set for the option.Īs you can see in the plot below, the blue line is signicantly thicker than the red line. Note that the option is in string quotes. When we plot y2, the LineWidth option is passed into the plot command. Here is a short example plotting two lines with different thicknesses. We can pass the name of the option and the value that we want the option to have directly into the plot command. Like many other options in MATLAB, this option is defined using a name-value pair. The width of a line can be specified using the LineWidth option for the plot command.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |