![]() ![]() ![]() Here we discuss an introduction to Matlab Plot Colors, along with color code table and respective examples. To change the background color of the axis: set (gca, 'color', 1 1 0) To change the background color of the figure: set (gcf, 'color', 1 1 0) In general, if you want to know the properties of a plot, try get (gca) for axis properties get (gcf) for figure properties This will return a list of available property names and property values. 1 Link Accepted Answer: David Sanchez How to change the colors in the plot I have four curves, and they are black and blue, I'm trying to change the color to make it understandable. There could be instances when we have to plot multiple functions in a single plot, in such cases, colors become very handy to differentiate between different functions. Name,Value pair settings apply to all the lines plotted. Use this option with any of the input argument combinations in the previous syntaxes. MATLAB can be used to plot our data for visualizing and intuitively understanding it. 1 Answer Sorted by: 4 From the Matlab documentation: plot (,Name,Value) specifies line properties using one or more Name,Value pair arguments. ![]() Observe in the output that we have obtained a scatter plot of red color, as passed by us in the input argument. Observe in the code that we have passed pre-defined color code for red as an argument (Please refer to the table at the end of the article for pre-defined color codes) You can change the colors by using the line command grep -l colors L, and then change the color to black. For this example, we will scatter plot of red color ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |