FAQ Database Discussion Community


MatLab Rose color by bin size

matlab,colors,bin,bins
my Problem is the following. I want to do a rose plot with Matlab. (http://de.mathworks.com/help/matlab/ref/rose.html) I have the following code: f2=figure('visible','off'); h=rose(degtorad(angles(:,i)),40); title(['Marker '], 'FontSize',20) x=get(h,'Xdata'); y=get(h,'Ydata'); g=patch(x,y,[0.3 0.3 0.3]); saveas(f2,'\roses\marker.jpg') And that is working fine. But I now want to change the color of its bins by the size...

histogram with varying bin widths

r,histogram,bins
I am trying to replicate the concept of chart Fig 1 from the following paper (http://dx.doi.org/10.1016/j.envsci.2011.08.004): It is a histogram whose bin widths vary dependent upon the value of x and whose height depends on variable y. The precise values in the chart are not of concern - rather, understanding...

Python Pandas Create New Bin/Bucket Variable with pd.qcut

python,pandas,bins,buckets
How do you create a new Bin/Bucket Variable using pd.qut in python? This might seem elementary to experienced users but I was not super clear on this and it was surprisingly unintuitive to search for on stack overflow/google. Some thorough searching yielded this (Assignment of qcut as new column) but...

MATLAB bins setting in histogram

matlab,histogram,bins
I want to change how data are distributed in the histogram that I built.My histogram looks like But I want it to look like I set bins1=[10,30,50,70]; hist(data,bins1) How can I arrange the bins as in the second figure?...