File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
crystal_toolkit/renderables Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -90,6 +90,9 @@ def get_site_scene(
9090
9191 radii = [legend .get_radius (sp , site = self ) for sp in self .species ]
9292 max_radius = float (min (radii ))
93+
94+ rscale_factor = 0.996
95+ rscale = 1.0
9396
9497 for sp , occu in self .species .items ():
9598 if isinstance (sp , DummySpecie ):
@@ -130,13 +133,14 @@ def get_site_scene(
130133 sphere = Spheres (
131134 positions = [position ],
132135 color = color ,
133- radius = radius ,
136+ radius = radius * rscale ,
134137 phiStart = phiStart ,
135138 phiEnd = phiEnd ,
136139 clickable = True ,
137140 tooltip = name ,
138141 )
139142 atoms .append (sphere )
143+ rscale *= rscale_factor
140144
141145 # Add magmoms
142146 if draw_magmoms and (magmom := self .properties .get ("magmom" )):
@@ -161,7 +165,7 @@ def get_site_scene(
161165 sphere = Spheres (
162166 positions = [position ],
163167 color = "#ffffff" ,
164- radius = max_radius ,
168+ radius = max_radius * rscale_factor ,
165169 phiStart = phiEnd ,
166170 phiEnd = np .pi * 2 ,
167171 )
You can’t perform that action at this time.
0 commit comments