How Can I Create Figure Like Bar

2 views (last 30 days)
eartheo
eartheo on 17 Nov 2017
Answered: KL on 19 Nov 2017
Hello, I have a data which one is changing with depth and I want to represent my data like as the image.
For example;
depth=[110;111;112;113;114;115;...] data=[1;2;2;2;2;1;;3;3...]
Is there an easy way?
I did search but I cant find any answer.
Thank you.

Answers (1)

KL
KL on 19 Nov 2017
how about a stacked bar?
bar(data,'stacked')

Categories

Find more on Graph and Network Algorithms in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!