1. 22 Apr, 2018 1 commit
  2. 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
  3. 12 Mar, 2018 1 commit
  4. 05 Mar, 2018 3 commits
  5. 27 Feb, 2018 1 commit
  6. 26 Feb, 2018 11 commits
  7. 23 Feb, 2018 2 commits
  8. 22 Feb, 2018 1 commit
  9. 21 Feb, 2018 3 commits
  10. 08 Feb, 2018 2 commits
  11. 07 Feb, 2018 3 commits
  12. 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.
  13. 18 Jan, 2018 1 commit
  14. 12 Jan, 2018 1 commit
  15. 11 Jan, 2018 1 commit
  16. 10 Jan, 2018 2 commits
  17. 08 Jan, 2018 1 commit
  18. 05 Jan, 2018 1 commit
  19. 15 Dec, 2017 2 commits
    • Dániel Varjas's avatar
      fix bug in phs_symmetrization using square root method · 79800648
      Dániel Varjas authored
      This commit fixes the bug in phs_symmetrization when it fails to produce ph eigenstates
      with PH^2 = +1 when one of the wave functions is mapped exactly onto another one by PH,
      as in this case the PH symmetrized wf's from the two are identical. This is the case
      with wfs = np.eye(2) and  particle_hole = sigma[1], the second vector returned is an
      eigenstate with eigenvalue -1 not +1. In general this can be even worse, if there are
      multiple such vector pairs some vectors may not be ph eigenstates at all.
      The new code uses an improved version of the matrix square root method from
      Applied Mathematics and Computation 234 (2014) 380-384.
      Tests are modified to clear up the random unitary generation process (using kwant.rmt).
      Tests are now guaranteed to feed orthonormal set of vectors to phs_symmetrization().
      Add extra tests for the fully off-diagonal case where the old method fails.
    • 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.
  20. 13 Dec, 2017 1 commit