Dear Joe, Dear Christoph, For testing I have adopted quantum_wire.py. The "critical" part looks like this: local_dos = kwant.ldos(sys, energy) # check size print local_dos.shape D2D = local_dos.reshape(NL,NW) kwant.plotter.map(sys, local_dos) # create dictionary to localize [i,j] ldos_dict = {tuple(site.tag): ldos for site, ldos in zip(sys.sites, local_dos)} for i in xrange(NL): for j in xrange(NW): D2D[i,j] = ldos_dict[i,j] pyplot.imshow(D2D.T, cmap=pyplot.cm.hot) pyplot.colorbar() kwant.plotter.map(sys, local_dos) I am using 64 bit Python2.7 windows version. Jerzy
"Jerzy Wrobel"
writes: Interestingly enough, when kwant.plotter.map(sys, ldos_array) is called again, AFTER dictionary creation, the resulting picture is changed to a random patchwork of colourful rectangles.
The creation of ldos_dict should not have any side-effects. Can you show us a script that demonstrates the problem?
Best, Christoph