MATLAB: Rotate X and Y axes with a bar3 plot axesrotate Hello everybody, I want to know how to rotate X and Y axes with a bar3 plot. Suppose that my data matrix is as follows : A=[3 5 7; 7 3 9; 5 2 1]. Instead of getting what bar3(A) provides, I want to get this: Thanks. Best Answer Try this: A=[3 5 7; 7 3 9; 5 2 1];figurebar3(A)view(32, 18)Tweak the angles in the view (link) call to get the result you want. Related SolutionsMATLAB: How to rotate the X and Y axes of the histogram in MATLAB (R2011b) To rotate the axes, you would need to get their handle and modify the 'View' option. Here is an example to illustrate this:>> N = 1000;>> binCount = 100;>> figure>> hist(gca,rand(N,1),binCount);>> set(gca,'view',[90 -90] MATLAB: X-labels do not show in bar3 graph Try hold on befor the loop:X={1;2;3;4;5;6;7;8;9;10;11;12;13;14;15};Y={2;3;2;3;4;2;3;4;2;3;4;2;3;4;5};hold onfor j=1:15 bar3(X{j},Y{j});view(90,0);end Related QuestionPlot multiple errorbars in pairsLabeling data points in plotyyHow to plot the own value +degree, using rose or polar histogramHow to overlay bar3 plots
Best Answer