How can I add dates to bar charts when the data I am plotting are matrices?
I am trying to plot a matrix of N * 7 elements in a bar chart.
N are different dates for which I have 7 variables under study. If I have N around 8, the graph looks nice and it shows what I want. Namely, the date for the group of variables on the x axis. However, if I have N = 20 or bigger it only shows the first five dates spanning the whole x-axis.
The code I am using right now is the following:
width = 6; % Width in inches
height = 3; % Height in inches
%FIGURE 1: Sectors Jump Days
fig1=figure(1);
pos = get(gcf, ‘Position’);
set(gcf, ‘Position’, [pos(1) pos(2) width*100, height*100])
bar(AverageTime)
set(gca,’XTickLabel’,dayIndjumpStr)
legend(‘Primary’,’Manufacturing’,’Transport’,’Trade’,’Finance’,’Services’,’PA’)
and dayIndjumpstr is a cell array.
Thank you very much.I am trying to plot a matrix of N * 7 elements in a bar chart.
N are different dates for which I have 7 variables under study. If I have N around 8, the graph looks nice and it shows what I want. Namely, the date for the group of variables on the x axis. However, if I have N = 20 or bigger it only shows the first five dates spanning the whole x-axis.
The code I am using right now is the following:
width = 6; % Width in inches
height = 3; % Height in inches
%FIGURE 1: Sectors Jump Days
fig1=figure(1);
pos = get(gcf, ‘Position’);
set(gcf, ‘Position’, [pos(1) pos(2) width*100, height*100])
bar(AverageTime)
set(gca,’XTickLabel’,dayIndjumpStr)
legend(‘Primary’,’Manufacturing’,’Transport’,’Trade’,’Finance’,’Services’,’PA’)
and dayIndjumpstr is a cell array.
Thank you very much. I am trying to plot a matrix of N * 7 elements in a bar chart.
N are different dates for which I have 7 variables under study. If I have N around 8, the graph looks nice and it shows what I want. Namely, the date for the group of variables on the x axis. However, if I have N = 20 or bigger it only shows the first five dates spanning the whole x-axis.
The code I am using right now is the following:
width = 6; % Width in inches
height = 3; % Height in inches
%FIGURE 1: Sectors Jump Days
fig1=figure(1);
pos = get(gcf, ‘Position’);
set(gcf, ‘Position’, [pos(1) pos(2) width*100, height*100])
bar(AverageTime)
set(gca,’XTickLabel’,dayIndjumpStr)
legend(‘Primary’,’Manufacturing’,’Transport’,’Trade’,’Finance’,’Services’,’PA’)
and dayIndjumpstr is a cell array.
Thank you very much. bar charts dates MATLAB Answers — New Questions