MATLAB Answers

Rotating 3-D Histogram

3 views (last 30 days)
Daniel Lee
Daniel Lee on 5 Sep 2016
Answered: Steven Lord on 6 Sep 2016
I was wondering how I could rotate figures from 3-D histogram in matlab such that it would look like the image I posted above:
I want to be able to see the grid with colors, without having to do it manually in the figure window. Thanks

Answers (2)

Henry Giddens
Henry Giddens on 5 Sep 2016
How about:
view(gca,[0 90])
% or
ax = gca;
ax.View = [0 90];
Henry

Steven Lord
Steven Lord on 6 Sep 2016
If you're using the histogram2 function set the DisplayStyle property to 'tile'. See the "Tiled Histogram View" example on that page for more information.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by