From: <jd...@us...> - 2009-09-18 14:05:59
|
Revision: 7782 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7782&view=rev Author: jdh2358 Date: 2009-09-18 14:05:51 +0000 (Fri, 18 Sep 2009) Log Message: ----------- add unit test for sf bug 2861426; empty date plot with year formatter Modified Paths: -------------- trunk/matplotlib/lib/matplotlib/tests/test_dates.py Modified: trunk/matplotlib/lib/matplotlib/tests/test_dates.py =================================================================== --- trunk/matplotlib/lib/matplotlib/tests/test_dates.py 2009-09-18 02:50:37 UTC (rev 7781) +++ trunk/matplotlib/lib/matplotlib/tests/test_dates.py 2009-09-18 14:05:51 UTC (rev 7782) @@ -141,6 +141,20 @@ fig.savefig( 'DateFormatter_fractionalSeconds' ) +#@image_comparison(baseline_images=['empty_date_bug']) +@knownfailureif(True) +def empty_date_with_year_formatter(): + # exposes sf bug 2861426: https://sourceforge.net/tracker/?func=detail&aid=2861426&group_id=80706&atid=560720 + import matplotlib.dates as dates + + fig = plt.figure() + ax = fig.add_subplot(111) + + yearFmt = dates.DateFormatter('%Y') + ax.xaxis.set_major_formatter(yearFmt) + + fig.savefig('empty_date_bug') + if __name__=='__main__': import nose nose.runmodule(argv=['-s','--with-doctest'], exit=False) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |