Skip to content
Snippets Groups Projects
Commit ef7a74ad authored by Christoph Groth's avatar Christoph Groth
Browse files

replace pylab with pyplot in examples/square.py

parent de679a6f
No related branches found
No related tags found
No related merge requests found
......@@ -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__':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment