Hi all,
I have a grouped bar group, for example,
data = rand(3,4).*10;
bar(data)
I want to annotate the first bar in each group, then the second, and so on. I am wondering if there is a way that I can get the x location of each bar.
Thank you in advance,
Wendy
|
|
0
|
|
|
|
Reply
|
Wendy
|
7/4/2010 9:14:07 PM |
|
"Wendy " <wlq121@gmail.com> wrote in message <i0qtiu$dvk$1@fred.mathworks.com>...
> Hi all,
>
> I have a grouped bar group, for example,
>
> data = rand(3,4).*10;
> bar(data)
>
> I want to annotate the first bar in each group, then the second, and so on. I am wondering if there is a way that I can get the x location of each bar.
>
> Thank you in advance,
> Wendy
one of the solutions
m=rand(3,4).*10;
bh=bar(m);
bc=get(bh,'children');
bp=get([bc{:}],'xdata');
bp=cat(2,bp{:}); % <- X coordinates of each bar-patch...
bd=diff(bp([1,4],1)); % <- length of each bar-patch
us
|
|
0
|
|
|
|
Reply
|
us
|
7/4/2010 9:33:05 PM
|
|
|
1 Replies
201 Views
(page loaded in 0.039 seconds)
Similiar Articles: how to hide toolbar, menu bar, address bar, other non-essentials ...Has anyone found a way to hide the toolbar, address bar, and menu in the current web browser window? I cannot window.open as this method has been def... How to plot bar graph on maps? - comp.soft-sys.matlabHi, my question is: I have a 20 X 3 matrix. Each row is one location with local temperature. The 1st column is longitude, the second column is latitud... Changing colours in Hist 3 - comp.soft-sys.matlabHi All, Ihave plotted a histogram for the JDF with the x and y contribute different data samples.I want to differentiate a two different colours fo... How do I get the URL of the active tab in Firefox/IE/Chrome ...how to hide toolbar, menu bar, address bar, other non-essentials ..... as this method has been defeatured due to security in IE. Works in Firefox ... you are mistaken ... accessing window.top.location - comp.lang.javascriptCheck to top of you SAS log to see if SAS ... com> wrote: > If you only have read access to ... bar of any "Explorer/MyComputer" window ... No change,I ... the location ... Check if browser is in full screen mode (IE/Mozilla) - comp.lang ...how to hide toolbar, menu bar, address bar, other non-essentials ... Check if browser is in full screen mode (IE/Mozilla) - comp.lang ... how to hide toolbar, menu bar ... PSP 9 updates - comp.graphics.apps.paint-shop-proLeft-Click on the following link, or copy and paste it into the address bar of ... Paint ShopT Pro 9 files at C:\Program Files\Jasc Software\ (or the location where ... Multiple Series on a Bar Graph with different x and y values ...I'm having trouble plotting two time series bar graphs on matlab. for graph 1 ... clear before, I have rainfall records (for say 1960 - 2000) - for one location ... Screen elements not showing in IE - comp.lang.javascript ...how to hide toolbar, menu bar, address bar, other non-essentials ... Works in Firefox within domain though! I am showing an image and would ideally like to show it full ... guide: how to open a full-screen window? - comp.soft-sys.matlab ...... night, Jan > Hello, by full-screen, I mean that as soon as the user click on the open button, the popup must be as large as possible (but keeping the scroll bar etc.) Search your bookmarks, history and tabs with the Awesome Bar | How ...As you type in the address bar, Firefox suggests websites you've visited, bookmarked or tagged. Learn how it works and get to sites in a few keystrokes. Address bar - Wikipedia, the free encyclopediaAn address bar (also location bar or URL bar) is a feature in a web browser that either shows the current URL or accepts a typed URL that the user wishes to go on to. 7/25/2012 1:06:20 PM
|