Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
K
kwant
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Joseph Weston
kwant
Commits
feae933a
There was a problem fetching the pipeline summary.
Commit
feae933a
authored
7 years ago
by
Christoph Groth
Browse files
Options
Downloads
Patches
Plain Diff
current plotter: minor docstring corrections
parent
d16b3dfd
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
kwant/plotter.py
+9
-9
9 additions, 9 deletions
kwant/plotter.py
with
9 additions
and
9 deletions
kwant/plotter.py
+
9
−
9
View file @
feae933a
...
...
@@ -1812,7 +1812,7 @@ def interpolate_current(syst, current, relwidth=None, abswidth=None, n=9):
To make this vector field easier to visualize and interpret at different
length scales, it is smoothed by convoluting it with the bell-shaped bump
function ``f(r) = max(1 - (2*r / width)**2, 0)**2``. The bump width is
determined by the `
max_res
` and `width` parameters.
determined by the `
relwidth
` and `
abs
width` parameters.
This routine samples the smoothed field on a regular (square or cubic)
grid.
...
...
@@ -2006,12 +2006,13 @@ def streamplot(field, box, cmap=None, bgcolor=None, linecolor='k',
show
=
True
,
dpi
=
None
,
fig_size
=
None
,
ax
=
None
):
"""
Draw streamlines of a flow field in Kwant style
Solid colored streamlines are drawn, superimposed on a color plot of the
flow speed that may be disabled by setting `bgcolor`. The width of the
streamlines is proportional to the flow speed. Lines that would be thinner
than `min_linewidth` are blended into the background color in order to
create the illusion of arbitrarily thin lines. (This is done because some
plot backends like PDF do not support lines of arbitrary width.)
Solid colored streamlines are drawn, superimposed on a color plot of
the flow speed that may be disabled by setting `bgcolor`. The width
of the streamlines is proportional to the flow speed. Lines that
would be thinner than `min_linewidth` are blended in a perceptually
correct way into the background color in order to create the
illusion of arbitrarily thin lines. (This is done because some plot
backends like PDF do not support lines of arbitrarily thin width.)
Internally, this routine uses ``matplotlib.pyplot.streamplot``.
...
...
@@ -2059,7 +2060,6 @@ def streamplot(field, box, cmap=None, bgcolor=None, linecolor='k',
-------
fig : matplotlib figure
A figure with the output if `ax` is not set, else None.
"""
if
not
mpl_enabled
:
raise
RuntimeError
(
"
matplotlib was not found, but is required
"
...
...
@@ -2133,7 +2133,7 @@ def current(syst, current, relwidth=0.05, **kwargs):
To make this vector field easier to visualize and interpret at different
length scales, it is smoothed by convoluting it with the bell-shaped bump
function ``f(r) = max(1 - (2*r / width)**2, 0)**2``. The bump width is
determined by the `
limit` and `
width` parameter
s
.
determined by the `
rel
width` parameter.
This routine samples the smoothed field on a regular (square or cubic) grid
and displays it using an enhanced variant of matplotlib
'
s streamplot.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment