Thanks for all the fixes. Having data_table as matplotlib.matlab.table is good + also on the axes.
I’ve attached my latest demo script – was in the process of trying to simplify the example for you, but have been a bit busy the last couple of days.
I split the colour generating stuff into colours.py – might be useful to have this sort of thing available somewhere in matplotlib.
Re: the numbers in the table not matching up in the demo. The numbers I put in the table are the total height of the columns, not just the incremental heights (the place where I use these things are to show loss statistics at different return periods + the users want to see the full numbers not the incremental stuff). I’ve just re-read this para and it is about as clear as mud, so yell if it isn’t making sense alongside the picture.
stacked_bar_with_table.py (1.27 KB)
colours.py (1.28 KB)
On Wed, 2004-02-11 at 19:07, John Hunter wrote:
If I could impose on you one more time. I would like to add a
table screenshot to the web page. Something along the lines of
the first table example you sent (with the stacked bar chart)
but using data_table to build the table. The code should be as
simple as possible since we want to emphasize the ease of use.
Do you have some data you can use to make a table that can be
displayed on the web? I have a data dir in the examples dir
that I use to distribute data.
In anticipation of the 0.50 release, I did some reorganization of the
table code to make it more consistent with other matplotlib commands.
Eg, data_table is now an axes function axes.table and at
matplotlib.matlab command “table”.*
I tried to adapt your various examples into a single demo using the
new table command. It works ok, but the numbers in the table don’t
seem to always correspond to the respective sizes of the table. I
don’t fully have my head around the example - perhaps you can advise?