Dear Dedi, When I run your notebook I see that the bands of your leads go between energies of 1 and 7, however you calculate the transmission for energies between -0.2 and 0.2.
Thus, the reason that you see a transmission of 0 is because at the energies you have requested there are no open channels in the leads. Hope that helps, Joe On 27 September 2015 at 15:41, Dedi Setiabudidaya <[email protected] > wrote: > Dear Anton, > Thank you for quick response; sorry, I mean the graph does appear but the > conductance data are all zeros (see below). > > data = [] > energies = [-2 * pot + 4. / 50. * pot * i for i in xrange(51)] > for energy in energies: > smatrix = kwant.smatrix(sys, energy) > data.append(smatrix.transmission(0, 1)) > print data > pyplot.figure() > pyplot.plot(energies, data) > pyplot.xlabel("energy [t]") > pyplot.ylabel("conductance [e^2/h]") > pyplot.show() > > [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, > 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, > 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, > 0.0, 0.0, 0.0, 0.0, 0.0, 0.0] > > > Best Regards, > > > Dedi > > > From: [email protected] > > Date: Sun, 27 Sep 2015 13:38:35 +0200 > > Subject: Re: [Kwant] Conductance Plot doesn't appear > > To: [email protected] > > CC: [email protected] > > > > > Dear Dedi, > > > > I believe your problem is rather related to the jupyter/ipython > > notebook. Do regular plots appear? What if you add a pyplot.show() to > > the cell? > > > > Best, > > Anton > > > > On Sun, Sep 27, 2015 at 12:17 PM, Dedi Setiabudidaya > > <[email protected]> wrote: > > > Can anyone help me why the conductance plot in the enclosed graphene > code > > > doesn't appear ? > > > I just copied the codes from the tutorial. Thank you in advance. >
