Dear all, I am trying to plot the current density using the command: kwant.plotter.current(syst, current, cmap = 'spectral_r',linecolor='black', density = 0.5, colorbar = True). However, when the figure is plotted, the colorbar doesn't appear. I know that this is a simple matter, but can someone indicate to me what am I doing wrong? Best Regards, Luan
Dear Luan, Can you upload the full script you're running? Are you using Jupyter Notebook? Also what version of Kwant and Matplotlib do you use? Best, Rafal -- Rafał Skolasiński GitHub: https://github.com/RafalSkolasinski Kwant GitLab: https://gitlab.kwant-project.org/r-j-skolasinski On 16 October 2017 at 20:13, Luan Vieira de Castro < vieiradecastroluan@fisica.ufc.br> wrote:
Dear all,
I am trying to plot the current density using the command: kwant.plotter.current(syst, current, cmap = 'spectral_r',linecolor='black', density = 0.5, colorbar = True). However, when the figure is plotted, the colorbar doesn't appear. I know that this is a simple matter, but can someone indicate to me what am I doing wrong?
Best Regards, Luan
Dear Luan,
According to docs of kwant.plotter.current
https://kwant-project.org/doc/1.3/reference/generated/kwant.plotter.current#...
all **kwargs are passed to kwant.plotter.streamplot
https://kwant-project.org/doc/1.3/reference/generated/kwant.plotter.streampl...
and according to its docs it should indeed give you a colorbar in this
situation.
Could you please file a bug report
https://gitlab.kwant-project.org/kwant/kwant/issues with the minimal
example that is reproducing the issue and information about
kwant/matplotlib versions?
Best,
Rafal
--
Rafał Skolasiński
GitHub: https://github.com/RafalSkolasinski
Kwant GitLab: https://gitlab.kwant-project.org/r-j-skolasinski
On 16 October 2017 at 20:15, Rafal Skolasinski
Dear Luan,
Can you upload the full script you're running? Are you using Jupyter Notebook? Also what version of Kwant and Matplotlib do you use?
Best, Rafal
-- Rafał Skolasiński
GitHub: https://github.com/RafalSkolasinski Kwant GitLab: https://gitlab.kwant-project.org/r-j-skolasinski
On 16 October 2017 at 20:13, Luan Vieira de Castro < vieiradecastroluan@fisica.ufc.br> wrote:
Dear all,
I am trying to plot the current density using the command: kwant.plotter.current(syst, current, cmap = 'spectral_r',linecolor='black', density = 0.5, colorbar = True). However, when the figure is plotted, the colorbar doesn't appear. I know that this is a simple matter, but can someone indicate to me what am I doing wrong?
Best Regards, Luan
Luan Vieira de Castro wrote:
However, when the figure is plotted, the colorbar doesn't appear. I know that this is a simple matter, but can someone indicate to me what am I doing wrong?
Thanks for reporting this issue. It has been fixed and will be released with Kwant 1.3.2. For now, you can use the workaround shown in https://www.mail-archive.com/kwant-discuss@kwant-project.org/msg01462.html
participants (3)
-
Christoph Groth
-
Luan Vieira de Castro
-
Rafal Skolasinski