Hi, > kwant.plotter.plot(sys_2['sys'],site_color=lambda site: > sys_2['sys'][site],colorbar = True, cmap='gist_heat')
The line
lambda site: sys_2['sys'][site]
defines a function that takes a site and returns a **function** (i.e.
the onsite function). You actually want to return the **value computed
by the onsite function** so you should call it:
lambda site: sys_2['sys'][site](site, '0')
Hope that helps,
Joe
signature.asc
Description: PGP signature
