Draw rectangle graph when multiple rows exist in Matlab -


i have 2 rows data follows :

sta0 =        '0 -> 2 1.000000 1.000200 a-mpdu 1.000000 1.000100 success 1.000100 1.000200 fail no'      '0 no nan 1.000270 1.000570 backoff nan nan no nan nan no no' 

i want make graph in matlab :

enter image description here

so far can make graph when 1 row exists backoff rectangle doesn't exist.

enter image description here

how make these 2 rows can drawn graph above ?

to draw colored rectangles, check out saturn fiddle.

figure; hold all; xlim([0,1]); ylim([0,1]); set(gca,'visible','off'); rectangle('position',[0,0,.5,.5],'facecolor',[1,0,0]); rectangle('position',[.5,.5,.2,.2],'facecolor',[0,0,1],'edgecolor',[0,0,0],'linewidth',4,'linestyle','--'); print("mypng.png", "-dpng") 

you can customize code above case.


Comments

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -