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
a0394850
Commit
a0394850
authored
11 years ago
by
Christoph Groth
Browse files
Options
Downloads
Patches
Plain Diff
plotter: make sites and lines somewhat finer (now that we do not show outlines by default)
parent
50a19b7f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
doc/source/images/graphene.py.diff
+4
-4
4 additions, 4 deletions
doc/source/images/graphene.py.diff
doc/source/tutorial/graphene.py
+2
-2
2 additions, 2 deletions
doc/source/tutorial/graphene.py
kwant/plotter.py
+3
-3
3 additions, 3 deletions
kwant/plotter.py
with
9 additions
and
9 deletions
doc/source/images/graphene.py.diff
+
4
−
4
View file @
a0394850
...
...
@@ -62,10 +62,10 @@
return 0 if site.family == a else 1
- # Plot the closed system without leads.
- kwant.plot(sys, site_color=family_colors, site_lw=0.1
2
, colorbar=False)
- kwant.plot(sys, site_color=family_colors, site_lw=0.1, colorbar=False)
+ size = (_defs.figwidth_in, _defs.figwidth_in)
+ for extension in ('pdf', 'png'):
+ kwant.plot(sys, site_color=family_colors, site_lw=0.1
2
, colorbar=False,
+ kwant.plot(sys, site_color=family_colors, site_lw=0.1, colorbar=False,
+ file="graphene_sys1." + extension,
+ fig_size=size, dpi=_defs.dpi)
...
...
@@ -76,11 +76,11 @@
sys.attach_lead(lead)
- # Then, plot the system with leads.
- kwant.plot(sys, site_color=family_colors, site_lw=0.1
2
,
- kwant.plot(sys, site_color=family_colors, site_lw=0.1,
- lead_site_lw=0, colorbar=False)
+ size = (_defs.figwidth_in, 0.9 * _defs.figwidth_in)
+ for extension in ('pdf', 'png'):
+ kwant.plot(sys, site_color=family_colors, colorbar=False, site_lw=0.1
2
,
+ kwant.plot(sys, site_color=family_colors, colorbar=False, site_lw=0.1,
+ file="graphene_sys2." + extension,
+ fig_size=size, dpi=_defs.dpi, lead_site_lw=0)
...
...
This diff is collapsed.
Click to expand it.
doc/source/tutorial/graphene.py
+
2
−
2
View file @
a0394850
...
...
@@ -149,7 +149,7 @@ def main():
return
0
if
site
.
family
==
a
else
1
# Plot the closed system without leads.
kwant
.
plot
(
sys
,
site_color
=
family_colors
,
site_lw
=
0.1
2
,
colorbar
=
False
)
kwant
.
plot
(
sys
,
site_color
=
family_colors
,
site_lw
=
0.1
,
colorbar
=
False
)
#HIDDEN_END_itkk
# Compute some eigenvalues.
...
...
@@ -162,7 +162,7 @@ def main():
sys
.
attach_lead
(
lead
)
# Then, plot the system with leads.
kwant
.
plot
(
sys
,
site_color
=
family_colors
,
site_lw
=
0.1
2
,
kwant
.
plot
(
sys
,
site_color
=
family_colors
,
site_lw
=
0.1
,
lead_site_lw
=
0
,
colorbar
=
False
)
# Finalize the system.
...
...
This diff is collapsed.
Click to expand it.
kwant/plotter.py
+
3
−
3
View file @
a0394850
...
...
@@ -989,12 +989,12 @@ def sys_leads_hopping_pos(sys, hop_lead_nr):
# Useful plot functions (to be extended).
_defaults
=
{
'
site_symbol
'
:
{
2
:
'
o
'
,
3
:
'
o
'
},
'
site_size
'
:
{
2
:
0.
3
,
3
:
0.5
},
'
site_size
'
:
{
2
:
0.
25
,
3
:
0.5
},
'
site_color
'
:
{
2
:
'
black
'
,
3
:
'
white
'
},
'
site_edgecolor
'
:
{
2
:
'
black
'
,
3
:
'
black
'
},
'
site_lw
'
:
{
2
:
0
,
3
:
0.1
2
},
'
site_lw
'
:
{
2
:
0
,
3
:
0.1
},
'
hop_color
'
:
{
2
:
'
black
'
,
3
:
'
black
'
},
'
hop_lw
'
:
{
2
:
0.1
2
,
3
:
0
},
'
hop_lw
'
:
{
2
:
0.1
,
3
:
0
},
'
lead_color
'
:
{
2
:
'
red
'
,
3
:
'
red
'
}}
...
...
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