フィルターのクリア

How do I plot a figure like this? (Figure included inside)

15 ビュー (過去 30 日間)
m.carrick
m.carrick 2012 年 8 月 17 日
コメント済み: Holger Hoffmann 2015 年 11 月 18 日
Hello, How do I plot a figure like this? Thanks in advance. Regards

回答 (2 件)

Arthur
Arthur 2015 年 11 月 3 日
編集済み: Arthur 2015 年 11 月 3 日
This is called a bee swarm plot. There are several submissions on the file exchange dealing with this. try http://blogs.mathworks.com/pick/2012/09/07/beeswarm-plot/ http://www.mathworks.com/matlabcentral/fileexchange/37105-plot-spread-points--beeswarm-plot-
  1 件のコメント
Holger Hoffmann
Holger Hoffmann 2015 年 11 月 18 日
Thanks Arthur! Very thankful.

サインインしてコメントする。


Image Analyst
Image Analyst 2012 年 8 月 17 日
編集済み: Image Analyst 2012 年 8 月 17 日
Looks like you could use scatter() to plot all the little dots. Be sure to use "hold on" if you call scatter for each cluster. You can also tell scatter what color of dots to use and what shape for the dots (diamonds, crosses, circles, squares, etc.).
scatter(wtx, wty);
hold on;
scatter(kox, koy);
You could then use line() to plot those bracket-shaped [ lines at the top, and you can use text() to add text labels at the desired location. You could use set() to set the tick mark labels:
set(gca,'XTickLabel','Control WT'|'Control KO'|'R-Ras38V KO');
You can use xlabel and ylabel to put titles along the axes and title() to put one on top:
xlabel('Genotype', 'FontSize', 18);
ylabel('Pericyte Coverage', 'FontSize', 18);
title('Gene Delivery', 'FontSize', 30);

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by