From ef7a74adc50a0833b6ca5db677372be9c627572d Mon Sep 17 00:00:00 2001
From: Christoph Groth <christoph.groth@cea.fr>
Date: Tue, 27 Nov 2012 21:53:38 +0100
Subject: [PATCH] replace pylab with pyplot in examples/square.py

---
 examples/square.py | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/examples/square.py b/examples/square.py
index 64b47c49..14e0bd27 100644
--- a/examples/square.py
+++ b/examples/square.py
@@ -4,6 +4,7 @@ kwant.Builder.
 
 from __future__ import division
 import numpy as np
+from matplotlib import pyplot
 import kwant
 from kwant.physics.selfenergy import square_self_energy
 
@@ -105,11 +106,10 @@ def main():
     data = [kwant.solve(sys, energy).transmission(1, 0)
             for energy in energies]
 
-    import pylab
-    pylab.plot(energies, data)
-    pylab.xlabel("energy [in units of t]")
-    pylab.ylabel("conductance [in units of e^2/h]")
-    pylab.show()
+    pyplot.plot(energies, data)
+    pyplot.xlabel("energy [in units of t]")
+    pyplot.ylabel("conductance [in units of e^2/h]")
+    pyplot.show()
 
 
 if __name__ == '__main__':
-- 
GitLab