3d plotting and re-sizing axis
Show older comments
I'm using the hist3 function to plot my data and I want to rotate the graph to make it easier to see but I'm having trouble with the viewable area of the plot. It's driving me crazy because I cant find answers using keywords in google! see the attached images and code: http://postimage.org/image/h9z9dq0uh/
if true
data = importfile('ESCC.xlsx','All Head-Flow Data','A2:B10080');
flow = data(:,1);
head = data(:,2);
x = flow;
y = head;
bins = 20
cnt = hist3(data,[bins bins])
zmax = max(max(cnt))
xmax = max(x);
ymax = max(y);
max(cnt,[],2);
figure;
hist3(data,[bins bins])
xlabel('Flow (gpm)'); ylabel('Head (ft)');
set(gcf,'renderer','opengl');
set(get(gca,'child'),'FaceColor','interp','CDataMode',...
'auto');
%view(120,50)
axis([0 xmax 0 ymax 0 zmax]);
end
Answers (0)
Categories
Find more on 2-D and 3-D Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!