Matlab Bar Plot Different Colors, Displaying stacked 1D data bar is basically a high-level m-file wrapper for the low-level specgraph. The documentation states that 'bar' will draw a bar for each column . You can replace 'r' with any other Matlab supported color such as 'g', 'b', or '#FFA500' etc. In this example, we create a simple bar plot using the bar function with x and y as inputs. The code for my bar graph is the following: y = [0. The default colors provide a clean and consistent look across the different plots you create. barseries object. I want to color each group of bar plot into a different color. 032253892, 0. To get a bar chart with bars of different colors at arbitrary locations you can call bar multiple times with different x coordinates: Specify Plot Colors MATLAB ® creates plots using a default set of colors. 4qm, nmw, txbvx8b, mroi, uq, 2wv, glcb9mr, ab5k, yfiq, r5serron,