diff --git a/kwant/plotter.py b/kwant/plotter.py index 35813dd325eb1febc3e9a573a44d5b68fef13de8..d3bb4493bc32dca040cdf5352a653adc6a3bea4a 100644 --- a/kwant/plotter.py +++ b/kwant/plotter.py @@ -1167,7 +1167,7 @@ def mask_interpolate(coords, values, a=None, method='nearest', oversampling=3): raise ValueError("The reference distance a is too small.") if len(coords) != len(values): - raise ValueError("The number of sites doesn't match the number of" + raise ValueError("The number of sites doesn't match the number of " "provided values.") shape = (((cmax - cmin) / a + 1) * oversampling).round() @@ -1943,9 +1943,9 @@ def streamplot(field, box, cmap=None, bgcolor=None, linecolor='k', min_linewidth : float Minimum width of lines before blending into the background color begins. density : float - Number of flow lines per point of the field. The default value is - chosen to show two lines per default width of the interpolation bump of - `~kwant.plotter.interpolate_current`. + Number of flow lines per point of the field. The default value + of 2/9 is chosen to show two lines per default width of the + interpolation bump of `~kwant.plotter.interpolate_current`. colorbar : bool Whether to show a colorbar if a colormap is used. Ignored if `ax` is provided.