All Questions
7
questions
0
votes
1
answer
100
views
Change color graphic bar
I have two datasets of data printed on the same graph. What I want is to differentiate the information by putting a legend that indicates the color of each of the two pieces of information in the ...
0
votes
1
answer
338
views
Bar plot with negative and positive values in Matlab
I am using Matlab 2019a and I want to bar-plot positive and negative vectors, positive ones above and negative ones below the x-axis. The following code works fine except for...
a) the colors and ...
1
vote
1
answer
2k
views
How to legend Plot Groups of Stacked Bars in Matlab?
I have some data I want to draw in bars.
Let says I have a group of 3 values for two conditions and a group of 2 values for the same conditions
y3 = [ 1, 1, 1; 0, 1, 2];
y2 = [1 , 1 ; 0, 2];
I ...
1
vote
2
answers
2k
views
Matlab bar plot legend
I am try to plot some data into a bar plot and add legend.
Matlab assigns four colors to the bars, and I am going to add legend to these colors.
My code is:
data = rand(8, 4);
l = {'a', 'b', 'c', ...
2
votes
1
answer
443
views
How to add three legends of a bar graph in matlab?
i have a bar graph which calculates precession and recall for three different methods and represents them in three different colors, code i used is as follows
x=[0.4,0.31,0.21]
y=[0.45,0.38,0.27]
bar(...
4
votes
2
answers
2k
views
Matlab barh bars and legend are not in the same direction
When plotting a matrix as multiple horizontal bars in matlab (using barh), matlab puts the first column as the bottom bar and the last one at the top.
The legend however, is the other way around, so ...
0
votes
1
answer
6k
views
Removing Particular Objects From a Legend
I need your guys help in solving a small problem Im facing. When I want to depict f1 and f2 using bar function, I need to exclude f2 annotation objects in the legend tab of the figure, but the set ...