kwant.plotter.
current
(syst, current, relwidth=0.05, **kwargs)[source]¶Show an interpolated current defined for the hoppings of a system.
The system graph together with current intensities defines a “discrete” current density field where the current density is nonzero only on the straight lines that connect sites that are coupled by a hopping term.
To make this vector field easier to visualize and interpret at different
length scales, it is smoothed by convoluting it with the bellshaped bump
function f(r) = max(1  (2*r / width)**2, 0)**2
. The bump width is
determined by the relwidth parameter.
This routine samples the smoothed field on a regular (square or cubic) grid and displays it using an enhanced variant of matplotlib’s streamplot.
This is a convenience function that is equivalent to
streamplot(*interpolate_current(syst, current, relwidth), **kwargs)
.
The longer form makes it possible to tweak additional options of
interpolate_current
.
Parameters:  syst :
current : sequence of float
relwidth : float or None
**kwargs : various


Returns:  fig : matplotlib figure
