Overlaying Plots on Bar Graphs
Ältere Kommentare anzeigen
I want to creat an overlaying a dot plot on a bar graph. It seems very simple but I am running into 2 problems (1) I can't get ride of tick markers on both right and left side. I want the right on the right and left on left (2) How can I label the bar with text (say ON, QC, BC) and the dot with values
My data and code
hmM = [0.8 0.6 0.2];
hm = [0.25 0.38 0.60];
figure (1)
bar(hmM, 'y')
h1 = gca;
h2 = axes('Position',get(h1,'Position'));
plot(hm,'*')
set(h2,'YAxisLocation','right', 'Color','none')
set(h2,'XLim',get(h1,'XLim'),'Layer','top')
3 Kommentare
Matt Tearle
am 1 Jun. 2011
Can you maybe show an example of what you're looking for? Even just a simple paint/photoshop mockup. I don't completely understand what you want. Labeling with text can be done with the text function.
Asdrubal
am 1 Jun. 2011
Asdrubal
am 6 Jun. 2011
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Data Distribution Plots finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!