[pypy-svn] r20435 - pypy/dist/pypy/doc/statistic
cfbolz at codespeak.net
cfbolz at codespeak.net
Wed Nov 30 14:33:48 CET 2005
Author: cfbolz
Date: Wed Nov 30 14:33:47 2005
New Revision: 20435
Modified:
pypy/dist/pypy/doc/statistic/format.py
Log:
hack to move the text up. needs to be tuned
Modified: pypy/dist/pypy/doc/statistic/format.py
==============================================================================
--- pypy/dist/pypy/doc/statistic/format.py (original)
+++ pypy/dist/pypy/doc/statistic/format.py Wed Nov 30 14:33:47 2005
@@ -56,11 +56,11 @@
for i, d in enumerate(data[1:]):
args = [dates, d, colors[i]]
pylab.plot_date(*args)
-
+ ymax = max([max(d) for d in data[1:]])
for i, release_date in enumerate(release_dates):
release_name = release_names[i]
pylab.axvline(release_date, linewidth=2, color="g", alpha=0.5)
- ax.text(release_date, 0.0, release_name,
+ ax.text(release_date, ymax, release_name,
fontsize=10,
horizontalalignment='right',
rotation='vertical')
@@ -70,7 +70,7 @@
end = sprint_end_dates[i]
if float(begin) >= float(min(dates[0],dates[-1])):
pylab.axvspan(begin, end, facecolor="y", alpha=0.2)
- ax.text(begin, 0.0, location,
+ ax.text(begin, ymax, location,
fontsize=10,
horizontalalignment='right',
rotation='vertical')
More information about the Pypy-commit
mailing list