Skip to content
Snippets Groups Projects
Commit a0394850 authored by Christoph Groth's avatar Christoph Groth
Browse files

plotter: make sites and lines somewhat finer (now that we do not show outlines by default)

parent 50a19b7f
No related branches found
No related tags found
No related merge requests found
......@@ -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.12, 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.12, 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.12,
- 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.12,
+ 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)
......
......@@ -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.12, 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.12,
kwant.plot(sys, site_color=family_colors, site_lw=0.1,
lead_site_lw=0, colorbar=False)
# Finalize the system.
......
......@@ -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.12},
'site_lw': {2: 0, 3: 0.1},
'hop_color': {2: 'black', 3: 'black'},
'hop_lw': {2: 0.12, 3: 0},
'hop_lw': {2: 0.1, 3: 0},
'lead_color': {2: 'red', 3: 'red'}}
......
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