Skip to content
Snippets Groups Projects
Commit f6ee0b00 authored by Joseph Weston's avatar Joseph Weston
Browse files

add a whatsnew entry

parent 35873024
No related branches found
No related tags found
No related merge requests found
......@@ -65,6 +65,33 @@ rather than::
kwant.lattice.square()
Plotly for plots
----------------
Kwant can now use the `Plotly <https://plot.ly/>`_ library when plotting,
though matplotlib is still used by default. Using plotly empowers Kwant
to produce high-quality interactive plots, as well as true 3D support:
.. jupyter-execute::
:hide-code:
import kwant
import kwant.plotter
.. jupyter-execute::
lat = kwant.lattice.cubic(norbs=1)
syst = kwant.Builder()
def disk(r):
x, y, z = r
return -2 <= z < 2 and 10**2 < x**2 + y**2 < 20**2
syst[lat.shape(disk, (15, 0, 0))] = 4
kwant.plotter.set_engine("plotly")
kwant.plot(syst);
Automatic addition of Peierls phase terms to Builders
-----------------------------------------------------
Kwant 1.4 introduced `kwant.physics.magnetic_gauge` for computing Peierls
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment