diff --git a/doc/source/images/graphene.py.diff b/doc/source/images/graphene.py.diff index 9c158dfce083bb57443385ba9b5ebed646257666..59f9d43e6bf319913fefd96996c7b50a69124050 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 e309206052eec9ff8fb1ad739b5ef2c7420de7fa..abdb352179103005d19ac2a3cfc5af7bde27e6bb 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 e26c841a3086bca4d7b51ba2ff0e8d4aefc51cab..67e7b12dae468a66d569958c7e3feb872ea7d59a 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'}}