Hi, Sayandip Dhara wrote:
> As I understand that when I use "kwant.plot" to generate a lattice it > automatically connects with a line whenever it sees a hopping between > two sites. Now in my case, I wanted to connect two edges of a system > by hopping to implement periodic boundary conditions. However, now > when I plot the lattice I can see the long black lines from one edge > to another since they are connected by a hopping. So, when I do a ldos > I can still see those lines in my plot. So is there a way to remove > the lines corresponding to the hopping between two edges in the plot? I’m not sure to understand what you mean. You would like to make some hoppings invisible in a plot generated by kwant.plot? The following could work: the hop_color argument of kwant.plot can be a Python function. In that case the function will be called for each hopping with the two sites that are connected and is expected to return a matplotlib color description. I guess that matplotlib supports transparency, so that it should be possible to make some hoppings transparent. Alternatively some lines could be given zero width using the hop_lw argument. But actually, when plotting LDOS or something similar, I would rather use kwant.plotter.map or kwant.plotter.density. The image will be nicer, more compact, and no hoppings will be visible. Christoph
smime.p7s
Description: S/MIME cryptographic signature