Dear Users/DevelopersI just installed version 0.99.1.1 since in my previous version (0.98) I had problems with hatching. It seems though that the same problems persist in the current version. The attached files reproduce the problem (a data file and a python short script). Note that hatching is not present on all green 'CONUPD' fields - but only on few of them.
I will appreciate some hints on how to get by, Regards Tomek ===================
cubes_1_PSEUDO_RIGID_FULL
Description: Binary data
#!/usr/bin/env python # a stacked bar plot with errorbars import numpy as np import matplotlib.pyplot as plt inp = open ("cubes_1_PSEUDO_RIGID_FULL", "r") dat = [[],[],[],[],[],[],[],[],[],[],[]] lin = inp.readline () num = 0 while lin != "": lst = lin.rsplit (" ") lin = inp.readline () if len (lst) > 2: dat [num % 11].append (float (lst [2])) num = num + 1 N = 8 TIMINT = np.array (dat [0]) CONUPD = np.array (dat [1]) CONDET = np.array (dat [2]) LOCDYN = np.array (dat [3]) CONSOL = np.array (dat [4]) PARBAL = np.array (dat [5]) ind = np.arange(N) width = 0.6 p1 = plt.bar (ind, TIMINT, width, color='r') p2 = plt.bar (ind, CONUPD, width, color='g', bottom=TIMINT, hatch='//') p3 = plt.bar (ind, CONDET, width, color='b', bottom=TIMINT+CONUPD, hatch='.') p4 = plt.bar (ind, LOCDYN, width, color='y', bottom=TIMINT+CONUPD+CONDET, hatch='o') p5 = plt.bar (ind, CONSOL, width, color='c', bottom=TIMINT+CONUPD+CONDET+LOCDYN, hatch='*') p6 = plt.bar (ind, PARBAL, width, color='m', bottom=TIMINT+CONUPD+CONDET+LOCDYN+CONSOL, hatch='O') plt.ylabel ('Time [s]') plt.title ('Runtimes by processor count') plt.xticks (ind+width/2., ('1', '2', '4', '8', '16', '32', '64', '128') ) plt.legend ((p6[0], p5[0], p4[0], p3[0], p2[0], p1[0]), ('PARBAL', 'CONSOL', 'LOCDYN', 'CONDET', 'CONUPD', 'TIMEINT'), loc = "upper left") plt.axis (xmin = -0.2, xmax = ind[N-1]+width+0.2) plt.savefig ('cubes-1-prb-full.eps') plt.clf ()
=================== dh178-192:tkp5 tomek$ python plots.py --verbose-helpful $HOME=/Users/tomek CONFIGDIR=/Users/tomek/.matplotlibmatplotlib data path /Library/Python/2.5/site-packages/matplotlib/mpl- data loaded rc file /Library/Python/2.5/site-packages/matplotlib/mpl-data/ matplotlibrc
matplotlib version 0.99.1.1 verbose.level helpful interactive is False units is False platform is darwin Using fontManager instance from /Users/tomek/.matplotlib/fontList.cache backend MacOSX version unknownfindfont: Matching :family=sans- serif:style =normal:variant=normal:weight=normal:stretch=normal:size=medium to Bitstream Vera Sans (/Library/Python/2.5/site-packages/ matplotlib-0.98.6svn-py2.5-macosx-10.3-fat.egg/matplotlib/mpl-data/ fonts/ttf/Vera.ttf) with score of 0.000000 findfont: Matching :family=sans- serif:style =normal:variant=normal:weight=normal:stretch=normal:size=large to Bitstream Vera Sans (/Library/Python/2.5/site-packages/ matplotlib-0.98.6svn-py2.5-macosx-10.3-fat.egg/matplotlib/mpl-data/ fonts/ttf/Vera.ttf) with score of 0.000000
------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com
_______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users