SF.net SVN: matplotlib:[7883] trunk/matplotlib/lib/matplotlib
Revision: 7883
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7883&view=rev
Author: mdboom
Date: 2009-10-14 17:37:41 + (Wed, 14 Oct 2009)
Log Message:
---
Support running of individual tests and multiprocess support.
Modified Paths:
--
trunk/matplotlib/lib/matplotlib/__init__.py
trunk/matplotlib/lib/matplotlib/testing/compare.py
trunk/matplotlib/lib/matplotlib/tests/__init__.py
Modified: trunk/matplotlib/lib/matplotlib/__init__.py
===
--- trunk/matplotlib/lib/matplotlib/__init__.py 2009-10-13 05:28:55 UTC (rev
7882)
+++ trunk/matplotlib/lib/matplotlib/__init__.py 2009-10-14 17:37:41 UTC (rev
7883)
@@ -920,19 +920,6 @@
from testing.noseclasses import KnownFailure
from nose.plugins.manager import PluginManager
-# Store the current backend and all rcParams for restoration later
-backend = rcParams['backend']
-original_params = rcParams.copy()
-
-use('Agg', warn=False) # use Agg backend for these tests
-
-# These settings *must* be hardcoded for running the comparison
-# tests and are not necessarily the default values as specified in
-# rcsetup.py
-rcdefaults() # Start with all defaults
-rcParams['font.family'] = 'Bitstream Vera Sans'
-rcParams['text.hinting'] = False
-
# store the old values before overriding
plugins = []
plugins.append( KnownFailure() )
@@ -945,9 +932,6 @@
config=config,
)
-# restore the old backend and rcParams
-use(backend, warn=False)
-rcParams.update(original_params)
return success
test.__test__ = False # nose: this function is not a test
Modified: trunk/matplotlib/lib/matplotlib/testing/compare.py
===
--- trunk/matplotlib/lib/matplotlib/testing/compare.py 2009-10-13 05:28:55 UTC
(rev 7882)
+++ trunk/matplotlib/lib/matplotlib/testing/compare.py 2009-10-14 17:37:41 UTC
(rev 7883)
@@ -152,7 +152,8 @@
msg += "Standard error:\n%s\n" % stderr
raise IOError, msg
-if matplotlib.checkdep_xmllint():
+# Turning this off, because it seems to cause multiprocessing issues
+if matplotlib.checkdep_xmllint() and False:
verifiers['svg'] = lambda filename: [
'xmllint', '--valid', '--nowarning', '--noout', filename]
Modified: trunk/matplotlib/lib/matplotlib/tests/__init__.py
===
--- trunk/matplotlib/lib/matplotlib/tests/__init__.py 2009-10-13 05:28:55 UTC
(rev 7882)
+++ trunk/matplotlib/lib/matplotlib/tests/__init__.py 2009-10-14 17:37:41 UTC
(rev 7883)
@@ -0,0 +1,13 @@
+from matplotlib import rcParams, rcdefaults, use
+
+_multiprocess_can_split_ = True
+
+def setup():
+use('Agg', warn=False) # use Agg backend for these tests
+
+# These settings *must* be hardcoded for running the comparison
+# tests and are not necessarily the default values as specified in
+# rcsetup.py
+rcdefaults() # Start with all defaults
+rcParams['font.family'] = 'Bitstream Vera Sans'
+rcParams['text.hinting'] = False
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins
SF.net SVN: matplotlib:[7884] branches/v0_99_maint/lib/matplotlib/dates.py
Revision: 7884 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7884&view=rev Author: ryanmay Date: 2009-10-14 20:27:07 + (Wed, 14 Oct 2009) Log Message: --- Add AutoDateFormatter and AutoDateLocator to __all__ and to the module-level documentation. Modified Paths: -- branches/v0_99_maint/lib/matplotlib/dates.py Modified: branches/v0_99_maint/lib/matplotlib/dates.py === --- branches/v0_99_maint/lib/matplotlib/dates.py2009-10-14 17:37:41 UTC (rev 7883) +++ branches/v0_99_maint/lib/matplotlib/dates.py2009-10-14 20:27:07 UTC (rev 7884) @@ -72,11 +72,18 @@ arbitrary date tick specifications. See `rrule example <../examples/pylab_examples/date_demo_rrule.html>`_. +* :class:`AutoDateLocator`: On autoscale, this class picks the best + :class:`MultipleDateLocator` to set the view limits and the tick + locations. + Date formatters --- Here all all the date formatters: +* :class:`AutoDateFormatter`: attempts to figure out the best format + to use. This is most useful when used with the :class:`AutoDateLocator`. + * :class:`DateFormatter`: use :func:`strftime` format strings * :class:`IndexDateFormatter`: date plots with implicit *x* @@ -109,8 +116,9 @@ __all__ = ( 'date2num', 'num2date', 'drange', 'epoch2num', 'num2epoch', 'mx2num', 'DateFormatter', -'IndexDateFormatter', 'DateLocator', 'RRuleLocator', -'YearLocator', 'MonthLocator', 'WeekdayLocator', +'IndexDateFormatter', 'AutoDateFormatter', 'DateLocator', +'RRuleLocator', 'AutoDateLocator', 'YearLocator', +'MonthLocator', 'WeekdayLocator', 'DayLocator', 'HourLocator', 'MinuteLocator', 'SecondLocator', 'rrule', 'MO', 'TU', 'WE', 'TH', 'FR', 'SA', 'SU', 'YEARLY', 'MONTHLY', 'WEEKLY', 'DAILY', This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Matplotlib-checkins mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins
SF.net SVN: matplotlib:[7885] trunk/matplotlib
Revision: 7885 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7885&view=rev Author: ryanmay Date: 2009-10-14 20:33:45 + (Wed, 14 Oct 2009) Log Message: --- Merged revisions 7884 via svnmerge from https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/branches/v0_99_maint r7884 | ryanmay | 2009-10-14 15:27:07 -0500 (Wed, 14 Oct 2009) | 1 line Add AutoDateFormatter and AutoDateLocator to __all__ and to the module-level documentation. Modified Paths: -- trunk/matplotlib/lib/matplotlib/dates.py Property Changed: trunk/matplotlib/ trunk/matplotlib/doc/pyplots/README trunk/matplotlib/doc/sphinxext/gen_gallery.py trunk/matplotlib/doc/sphinxext/gen_rst.py trunk/matplotlib/examples/misc/multiprocess.py trunk/matplotlib/examples/mplot3d/contour3d_demo.py trunk/matplotlib/examples/mplot3d/contourf3d_demo.py trunk/matplotlib/examples/mplot3d/polys3d_demo.py trunk/matplotlib/examples/mplot3d/scatter3d_demo.py trunk/matplotlib/examples/mplot3d/surface3d_demo.py trunk/matplotlib/examples/mplot3d/wire3d_demo.py trunk/matplotlib/lib/matplotlib/sphinxext/mathmpl.py trunk/matplotlib/lib/matplotlib/sphinxext/only_directives.py trunk/matplotlib/lib/matplotlib/sphinxext/plot_directive.py trunk/matplotlib/lib/matplotlib/tests/baseline_images/test_spines/spines_axes_positions.png Property changes on: trunk/matplotlib ___ Modified: svnmerge-integrated - /branches/mathtex:1-7263 /branches/v0_99_maint:1-7880 + /branches/mathtex:1-7263 /branches/v0_99_maint:1-7884 Modified: svn:mergeinfo - /branches/v0_91_maint:5753-5771 /branches/v0_98_5_maint:6581,6585,6587,6589-6609,6614,6616,6625,6652,6660-6662,6672-6673,6714-6715,6717-6732,6752-6754,6761-6773,6781,6792,6800,6802,6805,6809,6811,6822,6827,6850,6854,6856,6859,6861-6873,6883-6884,6886,6890-6891,6906-6909,6911-6912,6915-6916,6918,6920-6925,6927-6928,6934,6941,6946,6948,6950,6952,6960,6972,6984-6985,6990,6995,6997-7001,7014,7016,7018,7024-7025,7033,7035,7042,7072,7080,7176,7209-7211,7227,7245 /branches/v0_99_maint:7338,7393,7395-7404,7407-7424,7428-7433,7442-7444,7446,7475-7482,7484,7486,7489-7523,7567,7569,7582-7584,7616-7618,7633,7638,7703,7727-7734,7740-7741,7745,7751,7756,7762,7770,7772,7774,7776-7778,7780,7784,7788,7790,7792,7794,7796,7800,7803,7808,7822,7827,7834,7837,7844,7846-7847,7849,7858,7864,7866-7867,7874 + /branches/v0_91_maint:5753-5771 /branches/v0_98_5_maint:6581,6585,6587,6589-6609,6614,6616,6625,6652,6660-6662,6672-6673,6714-6715,6717-6732,6752-6754,6761-6773,6781,6792,6800,6802,6805,6809,6811,6822,6827,6850,6854,6856,6859,6861-6873,6883-6884,6886,6890-6891,6906-6909,6911-6912,6915-6916,6918,6920-6925,6927-6928,6934,6941,6946,6948,6950,6952,6960,6972,6984-6985,6990,6995,6997-7001,7014,7016,7018,7024-7025,7033,7035,7042,7072,7080,7176,7209-7211,7227,7245 /branches/v0_99_maint:7338,7393,7395-7404,7407-7424,7428-7433,7442-7444,7446,7475-7482,7484,7486,7489-7523,7567,7569,7582-7584,7616-7618,7633,7638,7703,7727-7734,7740-7741,7745,7751,7756,7762,7770,7772,7774,7776-7778,7780,7784,7788,7790,7792,7794,7796,7800,7803,7808,7822,7827,7834,7837,7844,7846-7847,7849,7858,7864,7866-7867,7874,7884 Property changes on: trunk/matplotlib/doc/pyplots/README ___ Modified: svn:mergeinfo - /branches/v0_98_5_maint/doc/pyplots/README:6581,6585,6587,6589-6609,6614,6616,6625,6652,6660-6662,6672-6673,6714-6715,6717-6732,6752-6754,6761-6773,6781,6792,6800,6802,6805,6822,6827,6850,6854,6856,6859,6861-6873,6883-6884,6886,6890-6891,6911-6912,6915-6916,6918,6920-6925,6927-6928,6934,6941,6946,6948,6950,6952,6960,6972,6984-6985,6990,6995,6997-7001,7014,7016,7018,7024-7025,7033,7035,7042,7072,7080,7176,7209-7211,7227,7245 /branches/v0_99_maint/doc/pyplots/README:7338,7393,7395-7404,7407-7424,7428-7433,7442-7444,7446,7475-7482,7484,7486,7489-7523,7567,7569,7582-7584,7616-7618,7633,7638,7703,7727-7734,7740-7741,7745,7751,7756,7762,7770,7772,7774,7776-7778,7780,7784,7788,7790,7792,7794,7796,7800,7803,7808,7822,7827,7834,7837,7844,7846-7847,7849,7858,7864,7866-7867,7874 + /branches/v0_98_5_maint/doc/pyplots/README:6581,6585,6587,6589-6609,6614,6616,6625,6652,6660-6662,6672-6673,6714-6715,6717-6732,6752-6754,6761-6773,6781,6792,6800,6802,6805,6822,6827,6850,6854,6856,6859,6861-6873,6883-6884,6886,6890-6891,6911-6912,6915-6916,6918,6920-6925,6927-6928,6934,6941,6946,6948,6950,6952,6960,6972,6984-6985,6990,6995,6997-7001,7014,7016,7018,7024-7025,7033,7035,7042,7072,7080,7176,7209-7211,7227,7245 /branches/v0_99_maint/doc/pyplots/README:7338,7393,7395-7404,7407-7424,7428-7433,7442-7444,7446,7475-7482,7484,7486,7489-7523,7567,7569,7582-7584,7616-7618,7633,7638,7703,7727-7734,7740-7741,7745,7751,7756,7762,7770,7772,7774,7776-7778,7780,7784,7788,7790,7792,7794,7796,7800,7803,7808,7822,7827,7834,7837,78
