Dear Sebastian,
Regarding the plotting: check out my reply in this thread.
http://thread.gmane.org/gmane.comp.science.kwant.user/361
Basically you can use site_color=hamiltonian_function.
As for the random potential question, I don't see what is the problem.
Just perform the checks and modify the values you don't like.
Best,
Anton
On Thu, Jun 18, 2015 at 7:29 PM, Sebastian
Sebastian
writes: Dear All,
is there a way to get information on the potential of the sites? In my case every site gets a random number between -1 and 1. In a second step I would like to check whether the potentials of neighboring sites differ too much and if they do, reset their potenials.
Thank You in advance, Sebastian
Another question: How do I plot the on-site potentials? I'd like to have something like: kwant.plot(sys, site-color="on-site potential",...)
Thank You for Your help, Sebastian