I looked at the examples online and have searched the newsgroup and am stuck. I figured out how to place the table on the right hand side but now I would like to have the table display as follows:
colors for headding date clear Left in blue right in red date Left Right 1.1.2001 4 5.5 1.1.2003 03 3.5 etc..... The attached code should be fully runable so you can see what it is doing and what I am trying to do Thank you duckman #!/usr/bin/python import matplotlib import numpy as np import matplotlib.pyplot as plt import matplotlib.mlab as mlab import matplotlib.ticker as ticker from pylab import * from matplotlib.colors import colorConverter axes([0.03, 0.2, 0.9, 0.7]) data = [[4,03,11,11.1,12.5,12.9,11.1,11,11.3,21,13.4,12,21,21,11,15.55,12,22,22,11.1,14,17,13,12,13,10,16.0,14.5,12,12,12,12,12,12,13,13,14,14,13,13,14,14,14,14,12,12,13], [5.5,03.5,11.11,11.2,13.9,19.3,11.1,41,12.3,22.0,12.8,13,30,21.5,31,17.05,15,23,33,11.2,15,18,13,13,11,18.2,21,19.5,16,16,13,13,13,13,14,14,14,14,14,14,14,14,15,15,12,12,14]] title('Hop History for John doe \n 02.20.2010') locs, colLabels = xticks([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46], ['01.01.2001', '01.01.2003', '08.01.2004', '03.03.2007', '06.08.2007', '06.12.2007', '01.01.2008', '02.25.2008', '04.04.2008', '05.27.2008', '05.27.2008', '05.27.2008', '05.27.2008', '05.27.2008', '05.30.2008', '06.01.2008', '06.11.2008', '06.11.2008', '06.19.2008', '06.19.2008', '06.19.2008', '07.10.2008', '07.10.2008', '07.10.2008', '07.10.2008', '07.18.2008', '07.22.2008', '07.22.2008', '01.27.2009', '01.27.2009', '02.24.2009', '02.24.2009', '02.24.2009', '02.24.2009', '05.19.2009', '05.19.2009', '05.19.2009', '05.19.2009', '06.05.2009', '06.05.2009', '06.05.2009', '06.05.2009', '06.29.2009', '06.29.2009', '08.28.2009', '08.28.2009', '11.23.2009']) rowLabels = ('Right', 'Left') linecolor = ('#3300ff','#ff0000') vals = arange(1, 43, 2) rows = len(data) ind = arange(len(colLabels)) cellText = [] #for row in xrange(rows): # coff = colLabels[row] # cellText.append(['%1.2f' % (x) for x in coff]) for row in xrange(rows): plot(arange(0,47), data[row], '.-', color=linecolor[row]) yoff = data[row] cellText.append(['%1.0f' % (x) for x in yoff]) yticks(vals, ['%d' % val for val in vals]) setp(colLabels, 'rotation', '90') legend(('Right','Left')) the_table = table(cellText=cellText, cellLoc='right', rowLabels=rowLabels, rowColours=linecolor, rowLoc='left', colLabels=colLabels, colLoc='right', loc='right') savefig("/var/www/html/mfx/419/graph.png",dpi=(1024/4)) -- View this message in context: http://old.nabble.com/table-on-right-and-rotating-the-table-entries-tp27714264p27714264.html Sent from the matplotlib - users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users