I have modified quantum_wire_revisited.py by adding new function
def plot_ldos(sys, energy):
# Compute local dos
local_dos = kwant.ldos(sys, energy)
kwant.plotter.map(sys, local_dos, num_lead_cells=5)
and adding new command
to the already existing function main().
It works well. However, when I have modified the spin-orbit.py file
in the same way, program halts. Some cryptic messages,
which ended with ValueError: different number of values and points,
How to resolve this? Thanks in advance,
kwant.__version__ == '1.0.0'
when kwant.plotter.map() is given the axes to plot on such as
kwant.plotter.plot(system, stuff_to_plot, ax = gca())
kwant/plotter.py first sets fig=None in line 1523 and the tries to create
colorbar for a None object in line 1536
Either disable colorbar in this case
line 1535: if colorbar and fig is not None:
Or figure out how to create another axes with colorbar.