Skip to content
Snippets Groups Projects
  1. Sep 21, 2018
  2. Sep 20, 2018
  3. Aug 14, 2018
  4. Aug 09, 2018
  5. Aug 06, 2018
  6. Aug 03, 2018
  7. May 22, 2018
  8. May 18, 2018
  9. Apr 03, 2018
    • 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
      82baedca
  10. Feb 27, 2018
  11. Feb 26, 2018
  12. Feb 22, 2018
  13. Dec 15, 2017
    • 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.
      8ca980f7
  14. Dec 13, 2017
  15. Dec 08, 2017
  16. Dec 04, 2017
  17. Oct 26, 2017
  18. Sep 12, 2017
  19. Sep 06, 2017
  20. Aug 18, 2017
  21. Aug 10, 2017
  22. Jul 31, 2017
  23. Jul 25, 2017
    • Christoph Groth's avatar
      move tutorial script generation, reorganize doc/source · 9fdd41e8
      Christoph Groth authored
      I assume that most people encounter the tutorial example scripts by
      reading the documentation, and not by viewing the tutorial subdirectory
      of a checked-out Kwant source.
      
      That's the motivation for moving all the manipulations of tutorial
      scripts from setup.py to doc/Makefile.  Previously, a successful 'make
      html' would require a preceding execution of 'setup.py build_tut'.  Now,
      a simple 'make html' is enough.
      
      While at it, I reorganized where the example scripts and their outputs
      are stored.  Everything is now in 'doc/source/code' with its three
      subdirectories 'download' (to be shown to readers), 'include' (with
      include markers), and 'figure' (figure generation & figures).  This
      organization is clearer and also makes the generation of figures
      separate from the tutorial.
      9fdd41e8
    • Christoph Groth's avatar
      improve the tutorial script and image buiding machinery · 001dafbb
      Christoph Groth authored
      The basic idea remains the same, but should work much better now.  The
      difference is that images/example.py.diff is now a patch with complete
      context and becomes the authoritative source for both the visible flavor
      of an example as well as for its figure-generating variant.  Both
      tutorial/example.py and images/example.py are extracted from this file
      by 'make html'.  Thanks to the complete context the diffs are quite
      readable and may be modified directly.
      
      Alternatively, one may also modify the generated scripts.  When
      tutorial/example.py has been modified, it will be patched and saved as
      images/example.py.  The patching is done using the tool 'wiggle' that
      works much better than 'patch'.  If a conflict occurs, conflict markers
      are added to the output file and its dated back to the dawn of time
      (i.e. 1970) in order to mark the conflicts as not yet resolved.  After
      resolving, 'make html' is simply run again.
      
      Upon a successful execution of the figure-generating script the diff
      gets recreated automatically, 'generate-diffs' no longer exists.
      001dafbb
    • Christoph Groth's avatar
      generate documentation for kwant.builder.{Finite,Infinite}System · 503acc43
      Christoph Groth authored
      These classes used not to have any features beyond
      kwant.system.{Finite,Infinite}System, but this is no longer the case.
      503acc43
  24. Jul 20, 2017
Loading