1. 22 Jun, 2021 1 commit
  2. 21 Jun, 2021 1 commit
  3. 27 Feb, 2019 1 commit
  4. 15 Feb, 2019 1 commit
  5. 12 Feb, 2019 1 commit
  6. 06 Jan, 2019 1 commit
    • Anton Akhmerov's avatar
      skip callable parameters in spectrum title · 451a6031
      Anton Akhmerov authored
      Closes #232.
      We can further improve on this behavior if we provide a useful class of
      callables that can efficiently represent itself in printed form, however this
      change is an immediate improvement of plot quality.
  7. 31 Dec, 2018 1 commit
  8. 20 Nov, 2018 1 commit
  9. 19 Oct, 2018 1 commit
  10. 16 Oct, 2018 1 commit
  11. 13 Aug, 2018 2 commits
  12. 03 Aug, 2018 2 commits
  13. 02 Aug, 2018 2 commits
    • Joseph Weston's avatar
      fix docstrings in plotter · 6d7bd088
      Joseph Weston authored
      Previously parts of the docstrings for 'density' and 'current'
      had been switched.
    • Anton Akhmerov's avatar
      if we intend to use pyplot, use it also to create figures · 90f212e6
      Anton Akhmerov authored
      Closes #207.
      pyplot "attaches" a figure to a backend on calling pyplot.figure. Previously we
      implemented a hack that worked around this limitation in case the user did not
      import pyplot. However this hack is fragile and breaks new things with newer
      matplotlib versions. Now we detect whether the figure is intended for pyplot
      and import pyplot directly if it is.
      This change also allows us to simplify the interface and the implementation of
      output_fig, but this is permitted because it is an internal function.
  14. 01 Aug, 2018 1 commit
  15. 22 May, 2018 8 commits
  16. 03 Apr, 2018 1 commit
    • Joseph Weston's avatar
      improve heuristic for setting colormap limits in plotter.map · 82baedca
      Joseph Weston authored
      Previously we used the matplotlib default behavior of setting
      the colormap limits (vmin and vmax) to the limits of the plotted
      data, if they are not provided by the user. Now we set the
      colormap limits to the 2nd and 98th percentile of the input
      data, and stretch the limits by 10% on either end in an attempt
      to include all the data in the limits. If we cannot do so
      we set the limits to the percentiles plus the stretch
      and issue a warning.
      Also, whenever the data falls outside the colorbar limits
      (even when the latter are set by the user) we set the appropriate
      ends of the colorbar to be pointy, indicating that the data
      extends beyond the colorbar.
      Closes #183
  17. 05 Mar, 2018 1 commit
    • Joseph Weston's avatar
      change the padding around the bounding box to width/2 · fc2dd977
      Joseph Weston authored
      The bump function we convolve with has finite support,
      so the vector field is identically zero at distances
      greater than width/2 outside of the bounding box.
      Also replace this magic number with a 'padding' constant
      to improve readability just a smidge.
  18. 01 Mar, 2018 1 commit
  19. 28 Feb, 2018 1 commit
  20. 26 Feb, 2018 3 commits
  21. 22 Feb, 2018 1 commit
  22. 06 Feb, 2018 1 commit
    • Christoph Groth's avatar
      fix streamline color if no lines are blended · c1bcca9b
      Christoph Groth authored
      Matplotlib backends like PDF cannot display arbitrarily thin lines.
      That's why kwant.plotter.streamplot simulates thinner lines by blending
      them into the background.
      Previously if no lines were blended, i.e. all had the same color value
      1, the background color would be used for drawing them instead of the
      line color.
  23. 15 Dec, 2017 1 commit
    • Christoph Groth's avatar
      select matplotlib backend only when needed · 8ca980f7
      Christoph Groth authored
      Previously, in order to not to fix the matplotlib backend, we required
      users to import matplotlib.pyplot before calling any Kwant plotting
      functions.  This did not have the desired effect, since we did import
      `matplotlib.backends` and that also fixes the backend.
      Now, both backends and pyplot are imported at the last possible moment
      and a warning is emitted if this fixes the backend.
  24. 13 Dec, 2017 1 commit
  25. 08 Dec, 2017 2 commits
  26. 07 Dec, 2017 1 commit
    • Joseph Weston's avatar
      remove dubious resize of transformations when plotting in 3D · 6647bc7a
      Joseph Weston authored
      Previously, when plotting a 3D system with 'site_size' provided
      explicity as a sequence, a ValueError would be raised when using
      '%matplotlib inline' or '%matplotlib notebook' from a Jupyter
      notebook. We do not add a test for this, because that would require
      depending on Jupyter.
      Closes #39.
  27. 30 Nov, 2017 1 commit