SourceForge logo
SourceForge logo
Menu

matplotlib-users

From: John G. <jn...@eu...> - 2004年01月31日 00:23:23
First of all, thanks for matplotlib. 
This is far and away the best python plotting package I have come
across.
I've attached a patch for axes.py that allows 'stacked bar charts' to be
produced using the bar function.
The idea with a stacked bar chart is that you have several series of
data that naturally stack up on top of each other. You can achieve
this effect with a small fix to the bar function. All you have to do is
to specify the offsets along the y-axis for each value being plotted (by
default these offsets would be all zero, equivalent to the existing
function).
See stacked_bar.py for an example of how you might use this.
The patch adds an extra keyword arguement , yoff, to plot.
This allows you to supply a list of offsets for the values to be
plotted.
Using this you can 'stack' up results by using successive calls to bar,
so long as you are careful to get the offsets right.
John
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /