Full screen figure with xticklabels multiline problem
Hi,
Short decription of what I need:
full screean figure of some bars
xticklabels multiline
What is wrong?
the text of xtickslabels is not fully displaying (down part is cut, not depends on the xtickangle)
no space between the text of xticklabels and the axis
figure(‘units’,’normalized’,’outerposition’,[0 0 1 1]);
set(gcf,’Visible’, ‘off’);
bar(1,CO2_o(1),’FaceColor’,’#572280′);
hold on
bar(2,CO2_o(2),’FaceColor’,’#953FBA’)
hold on
bar(3,CO2_o(3),’FaceColor’,’#A279CB’);
hold on
bar(4,CO2_o(4),’FaceColor’,’#D7B3FA’)
hold on
bar(5,CO2_o(5),’FaceColor’,’#DA5900′)
hold on
bar(6,CO2_o(6),’FaceColor’,’#FF7C01′);
hold on
bar(7,CO2_o(7),’FaceColor’,’#FFAB02′)
hold on
bar(8,CO2_o(9),’FaceColor’,’#EDD263′)
hold on
bar(9,CO2_o(9),’FaceColor’,’#AB0909′)
hold on
bar(10,CO2_o(10),’FaceColor’,’#C04655′);
hold on
bar(11,CO2_o(11),’FaceColor’,’#F17A89′)
hold on
bar(12,CO2_o(12),’FaceColor’,’#F6AFAF’);
hold on
bar(13,CO2_o(13),’FaceColor’,’#2865CA’);
hold on
bar(14,CO2_o(14),’FaceColor’,’#B1CCF9′)
hold off
title(‘EMISJA CO_{2} – JAZDA OSZCZĘDNA’,’fontSize’,18)
ylabel([‘$[frac{kg}{1000 hspace{1mm}paskm}]$’], ‘Interpreter’, ‘latex’,’fontweight’,’bold’,’fontSize’,14)
h=[];
ax=gca;
ax.XTickLabel = ”;
myLabels={‘Alstom EMU250 ED250’, ‘Alstom EMU250 ED250’,…
‘Alstom EMU250 ED250’, ‘Alstom EMU250 ED250’,…
‘Pesa Elf’, ‘Pesa Elf’,…
‘Pesa Elf’, ‘Pesa Elf’,…
‘ADtranz 113E EU11’, ‘ADtranz 113E EU11’,…
‘ADtranz 113E EU11’, ‘ADtranz 113E EU11’,…
‘Pafawag 104E EP09’, ‘Pafawag 104E EP09’;
‘Koniecpol-Opole’, ‘ Koniecpol-Opole’, ‘Opole-Koniecpol’ ,’Opole-Koniecpol’,…
‘Koniecpol-Opole’, ‘ Koniecpol-Opole’, ‘Opole-Koniecpol’ ,’Opole-Koniecpol’,…
‘Koniecpol-Opole’, ‘ Koniecpol-Opole’, ‘Opole-Koniecpol’ ,’Opole-Koniecpol’,…
‘Koniecpol-Opole’, ‘Opole-Koniecpol’;
”,’REKU’,”,’REKU’,…
”,’REKU’,”,’REKU’,…
”,’REKU’,”,’REKU’,…
”,”};
for i = 1:length(myLabels)
h(i)= text(sprintf(‘%sn%sn%s’, myLabels{:,i}), …
‘horizontalalignment’, ‘right’, ‘verticalalignment’, ‘middle’);
set(h,’Rotation’,60,’fontsize’,10);
endHi,
Short decription of what I need:
full screean figure of some bars
xticklabels multiline
What is wrong?
the text of xtickslabels is not fully displaying (down part is cut, not depends on the xtickangle)
no space between the text of xticklabels and the axis
figure(‘units’,’normalized’,’outerposition’,[0 0 1 1]);
set(gcf,’Visible’, ‘off’);
bar(1,CO2_o(1),’FaceColor’,’#572280′);
hold on
bar(2,CO2_o(2),’FaceColor’,’#953FBA’)
hold on
bar(3,CO2_o(3),’FaceColor’,’#A279CB’);
hold on
bar(4,CO2_o(4),’FaceColor’,’#D7B3FA’)
hold on
bar(5,CO2_o(5),’FaceColor’,’#DA5900′)
hold on
bar(6,CO2_o(6),’FaceColor’,’#FF7C01′);
hold on
bar(7,CO2_o(7),’FaceColor’,’#FFAB02′)
hold on
bar(8,CO2_o(9),’FaceColor’,’#EDD263′)
hold on
bar(9,CO2_o(9),’FaceColor’,’#AB0909′)
hold on
bar(10,CO2_o(10),’FaceColor’,’#C04655′);
hold on
bar(11,CO2_o(11),’FaceColor’,’#F17A89′)
hold on
bar(12,CO2_o(12),’FaceColor’,’#F6AFAF’);
hold on
bar(13,CO2_o(13),’FaceColor’,’#2865CA’);
hold on
bar(14,CO2_o(14),’FaceColor’,’#B1CCF9′)
hold off
title(‘EMISJA CO_{2} – JAZDA OSZCZĘDNA’,’fontSize’,18)
ylabel([‘$[frac{kg}{1000 hspace{1mm}paskm}]$’], ‘Interpreter’, ‘latex’,’fontweight’,’bold’,’fontSize’,14)
h=[];
ax=gca;
ax.XTickLabel = ”;
myLabels={‘Alstom EMU250 ED250’, ‘Alstom EMU250 ED250’,…
‘Alstom EMU250 ED250’, ‘Alstom EMU250 ED250’,…
‘Pesa Elf’, ‘Pesa Elf’,…
‘Pesa Elf’, ‘Pesa Elf’,…
‘ADtranz 113E EU11’, ‘ADtranz 113E EU11’,…
‘ADtranz 113E EU11’, ‘ADtranz 113E EU11’,…
‘Pafawag 104E EP09’, ‘Pafawag 104E EP09’;
‘Koniecpol-Opole’, ‘ Koniecpol-Opole’, ‘Opole-Koniecpol’ ,’Opole-Koniecpol’,…
‘Koniecpol-Opole’, ‘ Koniecpol-Opole’, ‘Opole-Koniecpol’ ,’Opole-Koniecpol’,…
‘Koniecpol-Opole’, ‘ Koniecpol-Opole’, ‘Opole-Koniecpol’ ,’Opole-Koniecpol’,…
‘Koniecpol-Opole’, ‘Opole-Koniecpol’;
”,’REKU’,”,’REKU’,…
”,’REKU’,”,’REKU’,…
”,’REKU’,”,’REKU’,…
”,”};
for i = 1:length(myLabels)
h(i)= text(sprintf(‘%sn%sn%s’, myLabels{:,i}), …
‘horizontalalignment’, ‘right’, ‘verticalalignment’, ‘middle’);
set(h,’Rotation’,60,’fontsize’,10);
end Hi,
Short decription of what I need:
full screean figure of some bars
xticklabels multiline
What is wrong?
the text of xtickslabels is not fully displaying (down part is cut, not depends on the xtickangle)
no space between the text of xticklabels and the axis
figure(‘units’,’normalized’,’outerposition’,[0 0 1 1]);
set(gcf,’Visible’, ‘off’);
bar(1,CO2_o(1),’FaceColor’,’#572280′);
hold on
bar(2,CO2_o(2),’FaceColor’,’#953FBA’)
hold on
bar(3,CO2_o(3),’FaceColor’,’#A279CB’);
hold on
bar(4,CO2_o(4),’FaceColor’,’#D7B3FA’)
hold on
bar(5,CO2_o(5),’FaceColor’,’#DA5900′)
hold on
bar(6,CO2_o(6),’FaceColor’,’#FF7C01′);
hold on
bar(7,CO2_o(7),’FaceColor’,’#FFAB02′)
hold on
bar(8,CO2_o(9),’FaceColor’,’#EDD263′)
hold on
bar(9,CO2_o(9),’FaceColor’,’#AB0909′)
hold on
bar(10,CO2_o(10),’FaceColor’,’#C04655′);
hold on
bar(11,CO2_o(11),’FaceColor’,’#F17A89′)
hold on
bar(12,CO2_o(12),’FaceColor’,’#F6AFAF’);
hold on
bar(13,CO2_o(13),’FaceColor’,’#2865CA’);
hold on
bar(14,CO2_o(14),’FaceColor’,’#B1CCF9′)
hold off
title(‘EMISJA CO_{2} – JAZDA OSZCZĘDNA’,’fontSize’,18)
ylabel([‘$[frac{kg}{1000 hspace{1mm}paskm}]$’], ‘Interpreter’, ‘latex’,’fontweight’,’bold’,’fontSize’,14)
h=[];
ax=gca;
ax.XTickLabel = ”;
myLabels={‘Alstom EMU250 ED250’, ‘Alstom EMU250 ED250’,…
‘Alstom EMU250 ED250’, ‘Alstom EMU250 ED250’,…
‘Pesa Elf’, ‘Pesa Elf’,…
‘Pesa Elf’, ‘Pesa Elf’,…
‘ADtranz 113E EU11’, ‘ADtranz 113E EU11’,…
‘ADtranz 113E EU11’, ‘ADtranz 113E EU11’,…
‘Pafawag 104E EP09’, ‘Pafawag 104E EP09’;
‘Koniecpol-Opole’, ‘ Koniecpol-Opole’, ‘Opole-Koniecpol’ ,’Opole-Koniecpol’,…
‘Koniecpol-Opole’, ‘ Koniecpol-Opole’, ‘Opole-Koniecpol’ ,’Opole-Koniecpol’,…
‘Koniecpol-Opole’, ‘ Koniecpol-Opole’, ‘Opole-Koniecpol’ ,’Opole-Koniecpol’,…
‘Koniecpol-Opole’, ‘Opole-Koniecpol’;
”,’REKU’,”,’REKU’,…
”,’REKU’,”,’REKU’,…
”,’REKU’,”,’REKU’,…
”,”};
for i = 1:length(myLabels)
h(i)= text(sprintf(‘%sn%sn%s’, myLabels{:,i}), …
‘horizontalalignment’, ‘right’, ‘verticalalignment’, ‘middle’);
set(h,’Rotation’,60,’fontsize’,10);
end xticklabels, multiline, chart, bar, fullscreen, screensize MATLAB Answers — New Questions