On 23 July 2013 21:43, Andreas Mueller <amuel...@ais.uni-bonn.de> wrote:
> On 07/23/2013 07:39 PM, Nelle Varoquaux wrote:
> > Hello,
> >
> > After a discussion with Olivier and Gaƫl, we think it is best to go
> > with ``from matplotlib import pyplot as plt`` instead of ``import
> > pylab as pl``.
>
> +1 for matplotlib.pyplot
>
> I'm a bit surprised that
>
> from matplotlib import pyplot as plt
>
> is the idiom, though. I thought it was
>
> import matplotlib.pyplot as plt
>
> (which is shorter and is used by Jake:
> http://matplotlib.org/xkcd/examples/api/histogram_path_demo.html)
>
I use from matplotlib import pyplot as plt in my own code. On sklearn, I
started switching to
import matplotlib.pyplot as plt (hence not what I wrote in my email).
FYI, on matplotlib, the convention is to import modules with import foo.bar
as fbar, and functions with from foo.bar import egg. I think this is why
Jake is using this idiom.
>
> [Not that I care strongly, though a consistent idiom makes scanning code
> a little faster]
>
>
> ------------------------------------------------------------------------------
> See everything from the browser to the database with AppDynamics
> Get end-to-end visibility with application monitoring from AppDynamics
> Isolate bottlenecks and diagnose root cause in seconds.
> Start your free trial of AppDynamics Pro today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
> _______________________________________________
> Scikit-learn-general mailing list
> Scikit-learn-general@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
>
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Scikit-learn-general mailing list
Scikit-learn-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general