Plotting bar graph between two variable?
7 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Sir i wants to plot simple bar graph for example: i have a variable named gini index and in it i have suppose 8 rows and 4 columns than suppose the name of 4 columns are att1, att2, att3 and att4 now i wants to display these four name in graph in x axis and at y axis corresponding to these four attributes i have four values may be: .3, .4, .67, .51. now i have to plot bar graph. http://imageshack.us/photo/my-images/33/doubtg.jpg/ A shown in this graph i have to change the 1 2 3 4 on x axis to att1 att2 att3 att4 or any name i have in a variable named attributes and i want to change the y axis values i.e. start from 0 to 1 as shown in graph its from 0 to 0.7 i want it to shown between 0 to 1 and want to plot these values. and i have to do it many times it depend on variable size for example i have a variable named giniindex and it is of size 8X4 then there are 8 rows having values between 0 to 1 and 4 columns which shows that i have 4 attributes. please help me to plot graphs between this into single window.
I have a variable named giniindex and i want to plot attribute name versus giniindex a bar graph how to do it. first of all i wants to tell you that the value of variables are not fixed they may change according to algorithm so if possible kindly provide me a dynamic approach to this one. if i have 8X4 matrix of giniindex then i have to make 8 graphs because each row versus attributes (no of attributes(1Xcolumn) ->column =4) here in this case of 8x4(row X column) then i have to make 1st graph between 4 attributes names and 1st row similarly 2nd graph between 4 attributes names and 2nd row and so on.... and i want these all graphs into single window if possible. and i want to keep the name of my attributes on x axis and values of giniindex variable on y axis.ONE MORE THING THE ATTRIBUTES NAME are STRING and I want to WRITE the name of THESE ATTRIBUTE on X axis receptively. Thanks in advance.
2 Commenti
Image Analyst
il 13 Apr 2013
Please mock up some kind of screenshot in Photoshop or something and upload it so that you can illustrate what you're talking about - what kind of output you're looking for.
Risposte (0)
Vedere anche
Categorie
Scopri di più su Discrete Data Plots in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!