Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • kwant kwant
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 140
    • Issues 140
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 20
    • Merge requests 20
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • kwant
  • kwantkwant
  • Issues
  • #233
Closed
Open
Created Sep 29, 2018 by Anton Akhmerov@anton-akhmerovOwner

Remove `show=...` argument from Kwant plotter

Matplotlib's own plotting functions have a separate logic for when to show figures or not. As far as I understand, we don't gain anything by adding a show argument to the plots. At the same time, because the figures we create are within pyplot's figure registry, we now may do things like

kwant.plot(syst, show=False)
pyplot.title('My awesome system')

If we remove show, the extra argument will not be needed. The downside is that the users running a non-interactive session will need to call pyplot.show() manually. This is consistent with how matplotlib works.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking