From: Walter Roberson on
cabrego wrote:
> > Okay, I think this should work:
>>
>> bar(linspace(Startingx,Endingx,length(Bardata)), y+BarData,
>> 'BaseValue',y)
>>
>
> OK, I guess one of the complications I did not anticipate is that each
> bar does not use an assigned value from the x,y axis. Every bar will
> have a value that add to 100% and are indepdent from the X,Y axis,
> additionally the X,Y axis are not numberical values but are categories.
> Here is a rough sketch.
>
> |
> 'Cat D' [] []
> |
> 'Cat C' [] []
> ___|___________________________
> 'Cat A' 'Cat B'
>
> The centroid of each bar is predefined in terms of their category
> location and their length/width(I think?) and will alll be "floating" so
> to speak, The real data essentially shades the bars by x+y+z+..
> percent. The real data may also determine the width of the bars. Am I
> beyond matlab's plotting capability?


If you can construct one such chart at the default locations, then you
can use the method I indicated above to position it at an arbitrary place.