|
[yoda-svn] yoda: Expose the yoda.plot() Python function in a way that doesn...YODA Mercurial yoda at projects.hepforge.orgThu Oct 1 22:45:01 BST 2015
details: https://yoda.hepforge.org/hg/yoda/rev/632da2ab6f0c branches: changeset: 1137:632da2ab6f0c user: Andy Buckley <andy at insectnation.org> date: Thu Oct 01 22:39:51 2015 +0100 description: Expose the yoda.plot() Python function in a way that doesn't automatically induce a dependence on matplotlib. diffs (26 lines): --- a/ChangeLog Wed Sep 30 22:21:18 2015 +0100 +++ b/ChangeLog Thu Oct 01 22:39:51 2015 +0100 @@ -1,3 +1,8 @@ +2015-10-01 Andy Buckley <andy.buckley at cern.ch> + + * Expose the yoda.plot() Python function in a way that doesn't + automatically induce a dependence on matplotlib. + 2015-09-30 Andy Buckley <andy.buckley at cern.ch> * Fix yodals to work with Counters. --- a/pyext/yoda/__init__.py Wed Sep 30 22:21:18 2015 +0100 +++ b/pyext/yoda/__init__.py Thu Oct 01 22:39:51 2015 +0100 @@ -1,8 +1,10 @@ ## Pull in core YODA C++/Python extension functionality from yoda.core import * -## Try to pull in plotting tools -from yoda.plotting import plot #, mplot +## Try to pull in plotting tools in a non-dependency-inducing way +def plot(*args, **kwargs): + from yoda.plotting import plot as p + return p(*args, **kwargs) ## Try to pull in optional ROOT compatibility try:
More information about the yoda-svn mailing list |