Dear Sayandip, As Christoph has said you can adjust a function as hop_color to do so. In your case just you have to proceed as follow: *1.select the position of the sites at the edges* *2.* then make a condition in hop_color or hopping low (transparent ) f*or the sites at the top (y1=+L) and at the bottom (y2=0 or -L, depending on your script). * *To to give you a hint see the following commands,* ### --------------------- ---------------------------------------------------- def hopping_low(site_1, site_2): x1, y1 =site_1.pos x2, y2 =site_2.pos ## define the condition for sites that you want to remove hopping if y2 == L and y1 == -L: return 0 else: return 0.2 or def hopping_color(site_1, site_2): x1, y1 =site_1.pos x2, y2 =site_2.pos ## define the condition for sites that you want to remove hopping if y2 == L and y1 == -L: return "white" else: return "k" kwant.plot(syst, hop_lw=hopping_low, hop_color=hopping_color, colorbar=False, ax=ax)
I hope this will help. If not it would be better to give a small script to your case. Best Adel Le ven. 3 juin 2022 à 22:10, Sayandip Dhara <sayan...@knights.ucf.edu> a écrit : > Hello Christoph, > Thanks for the suggestions. I would exactly like to make some hoppings > invisible in a plot generated by kwant.plot. So when I use kwant.plot how > do I specify inside that which of the hoppings I want to give zero width. > If understand correctly you are suggesting that I have to write a function > that I can pass through the "hop_color" argument. Now in that function can > I just go through those hoppings which I want to make transparent or do I > have to run it through every hopping in the system? > Since I want all the hoppings in the bulk of the system to stay in the > plot and all the hopping which are required for the periodic boundary > condition to disappear, using kwant.plotter.map or kwant.plotter.density > would not work. >