Why the height of the bar3 decreases from original value as the size of the plot is varied?
I am trying to get a 3D bar plot with some titled layout, however the height of the bars tend to decrease from its original values. I have attached the codes below. please suggest how to correct this.
data_K=[0.8741,0.7742,0.7410,0.7488];
data_S=[0.9438,0.8490,0.7821,0.7330];
data_G=[0.8992,0.8496,0.8082,0.7685];
data_TS_F1=[data_K;data_S;data_G]*100;
f=figure(‘visible’, ‘on’,’GraphicsSmoothing’,’on’,’WindowStyle’,’docked’);
grid on;
t1 = tiledlayout(1,1,’Padding’,’tight’);
t1.Units = ‘inches’;
t1.OuterPosition = [0.40 0.05 2 1.6];
nexttile;
hp=bar3(data_TS);
set(gca, ‘XTick’, 1:width(data_TS), ‘XTickLabels’, {‘KNN’,’SVM’,’GNB’}, …
‘YTick’, 1:4, ‘YTickLabels’, [1,3,6,12],’FontName’,"Times New Roman","FontSize",12, ‘ZTick’,0:10:100);
ax=gca;
ax.FontWeight = ‘bold’;
set(hp(:),’facecolor’,[0.745000000000000 0.745000000000000 1]);
xtickangle(0);
ytickangle(0);I am trying to get a 3D bar plot with some titled layout, however the height of the bars tend to decrease from its original values. I have attached the codes below. please suggest how to correct this.
data_K=[0.8741,0.7742,0.7410,0.7488];
data_S=[0.9438,0.8490,0.7821,0.7330];
data_G=[0.8992,0.8496,0.8082,0.7685];
data_TS_F1=[data_K;data_S;data_G]*100;
f=figure(‘visible’, ‘on’,’GraphicsSmoothing’,’on’,’WindowStyle’,’docked’);
grid on;
t1 = tiledlayout(1,1,’Padding’,’tight’);
t1.Units = ‘inches’;
t1.OuterPosition = [0.40 0.05 2 1.6];
nexttile;
hp=bar3(data_TS);
set(gca, ‘XTick’, 1:width(data_TS), ‘XTickLabels’, {‘KNN’,’SVM’,’GNB’}, …
‘YTick’, 1:4, ‘YTickLabels’, [1,3,6,12],’FontName’,"Times New Roman","FontSize",12, ‘ZTick’,0:10:100);
ax=gca;
ax.FontWeight = ‘bold’;
set(hp(:),’facecolor’,[0.745000000000000 0.745000000000000 1]);
xtickangle(0);
ytickangle(0); I am trying to get a 3D bar plot with some titled layout, however the height of the bars tend to decrease from its original values. I have attached the codes below. please suggest how to correct this.
data_K=[0.8741,0.7742,0.7410,0.7488];
data_S=[0.9438,0.8490,0.7821,0.7330];
data_G=[0.8992,0.8496,0.8082,0.7685];
data_TS_F1=[data_K;data_S;data_G]*100;
f=figure(‘visible’, ‘on’,’GraphicsSmoothing’,’on’,’WindowStyle’,’docked’);
grid on;
t1 = tiledlayout(1,1,’Padding’,’tight’);
t1.Units = ‘inches’;
t1.OuterPosition = [0.40 0.05 2 1.6];
nexttile;
hp=bar3(data_TS);
set(gca, ‘XTick’, 1:width(data_TS), ‘XTickLabels’, {‘KNN’,’SVM’,’GNB’}, …
‘YTick’, 1:4, ‘YTickLabels’, [1,3,6,12],’FontName’,"Times New Roman","FontSize",12, ‘ZTick’,0:10:100);
ax=gca;
ax.FontWeight = ‘bold’;
set(hp(:),’facecolor’,[0.745000000000000 0.745000000000000 1]);
xtickangle(0);
ytickangle(0); 3d plots, bar3 MATLAB Answers — New Questions