From a0394850908858d537d3edc0262bdb39ca6f90b7 Mon Sep 17 00:00:00 2001
From: Christoph Groth <christoph.groth@cea.fr>
Date: Fri, 7 Jun 2013 12:00:57 +0200
Subject: [PATCH] plotter: make sites and lines somewhat finer (now that we do
 not show outlines by default)

---
 doc/source/images/graphene.py.diff | 8 ++++----
 doc/source/tutorial/graphene.py    | 4 ++--
 kwant/plotter.py                   | 6 +++---
 3 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/doc/source/images/graphene.py.diff b/doc/source/images/graphene.py.diff
index 9c158dfc..59f9d43e 100644
--- a/doc/source/images/graphene.py.diff
+++ b/doc/source/images/graphene.py.diff
@@ -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)
  
diff --git a/doc/source/tutorial/graphene.py b/doc/source/tutorial/graphene.py
index e3092060..abdb3521 100644
--- a/doc/source/tutorial/graphene.py
+++ b/doc/source/tutorial/graphene.py
@@ -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.
diff --git a/kwant/plotter.py b/kwant/plotter.py
index e26c841a..67e7b12d 100644
--- a/kwant/plotter.py
+++ b/kwant/plotter.py
@@ -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'}}
 
 
-- 
GitLab