Just to respond to Anton:

> Right now plotting of detached finalized leads isn't supported and is
> tracked in the issue
> https://gitlab.kwant-project.org/kwant/kwant/issues/18

They're not plotting a finalized system:

>>> zigzag_ribbon = kwant.Builder(kwant.TranslationalSymmetry([1, 0]))
>>> #zigzag_ribbon[graphene.shape((lambda pos: abs(pos[1]) < 9 and pos[1]%2 
>>> ==1), (0, 0))] = 0.2
>>> #zigzag_ribbon[graphene.shape((lambda pos: abs(pos[1]) < 9 and pos[1]%2 
>>> ==0), (0, 0))] = -0.2
>>> zigzag_ribbon[graphene.shape((lambda pos: abs(pos[1]) < 9), (0, 0))] = 0
>>> zigzag_ribbon[graphene.neighbors(1)] = 1
>>> zigzag_ribbon.finalized()
>>> kwant.plotter.plot(zigzag_ribbon)
>>> #kwant.plotter.bands(zigzag_ribbon.finalized());

so this should totally still work (and indeed it does on Kwant 1.3.3, or
when taking a minimal example as I illustrated in my email.


Joe


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to