Using kwant.plotter.density selectively?
Hello, I am plotting the wavefunction of my system as such: import scipy.linalg as la ham = sys.hamiltonian_submatrix(params=dict(pot=0)) evecs = la.eigh(ham)[1] wf = abs(evecs[:, 1])**2 kwant.plotter.density(sys, wf) I am wondering how/if I could give plotter.density some condition to only plot part of my system? Some region's wavefunction values don't appear as they are too small, but those are the ones I am trying to observe.
Dear Henry,
You can play with the vector you want to plot before passing it to the
function.
For example, sometimes it is better to plot the change in the Density
|wf|**2-|wf0|**2 rather than the density itself.
Please check the documentation for different examples.
I hope this helps,
Adel
On Sun, Apr 11, 2021 at 9:28 PM Henry Axt
Hello, I am plotting the wavefunction of my system as such:
import scipy.linalg as la
ham = sys.hamiltonian_submatrix(params=dict(pot=0)) evecs = la.eigh(ham)[1] wf = abs(evecs[:, 1])**2
kwant.plotter.density(sys, wf)
I am wondering how/if I could give plotter.density some condition to only plot part of my system? Some region's wavefunction values don't appear as they are too small, but those are the ones I am trying to observe.
-- Abbout Adel
participants (2)
-
Abbout Adel
-
Henry Axt