@@ -320,10 +320,10 @@ def moments_calc(xyzfile,rotor_atoms=None,isotopes=None,quiet=False,noplots=Fals
320
320
x = atom .vdw / 6 * np .outer (np .cos (u ),np .sin (v ))+ xx
321
321
y = atom .vdw / 6 * np .outer (np .sin (u ),np .sin (v ))+ yy
322
322
z = atom .vdw / 6 * np .outer (np .ones (np .size (u )),np .cos (v ))+ zz
323
- ax .plot_surface (x ,y ,z ,color = atom .color ,zorder = yy * (( - 1 ) ** j ) )
323
+ ax .plot_surface (x ,y ,z ,color = atom .color ,zorder = - yy )
324
324
ax .text (xx ,
325
325
yy ,
326
- zz ,f'{ atom .label } { i } ' ,ha = 'center' ,va = 'center' ,zorder = yy * (( - 1 ) ** j ) + atom .vdw / 6 + 0.01 ,fontsize = min (a_text ,min (b_text ,c_text )))
326
+ zz ,f'{ atom .label } { i } ' ,ha = 'center' ,va = 'center' ,zorder = - yy + atom .vdw / 6 + 0.01 ,fontsize = min (a_text ,min (b_text ,c_text )))
327
327
for i in range (len (a )):
328
328
for k in range (i + 1 ,len (a )):
329
329
if bond_matrix [i ,k ]:
@@ -344,19 +344,19 @@ def moments_calc(xyzfile,rotor_atoms=None,isotopes=None,quiet=False,noplots=Fals
344
344
x = xyz [0 ,:].reshape (100 ,100 ) + xx1
345
345
y = xyz [1 ,:].reshape (100 ,100 ) + yy1
346
346
z = xyz [2 ,:].reshape (100 ,100 ) + zz1
347
- if yy1 * (( - 1 ) ** j ) < = yy2 * (( - 1 ) ** j ) :
348
- zorder = yy1 - a [i ].vdw / 6 * (( - 1 ) ** j ) - .05 * (( - 1 ) ** j )
347
+ if yy1 > = yy2 :
348
+ zorder = yy1 + a [i ].vdw / 6 + .05
349
349
else :
350
- zorder = yy2 - a [k ].vdw / 6 * (( - 1 ) ** j ) - 0.05 * (( - 1 ) ** j )
351
- ax .plot_surface (x ,y ,z ,color = '#dddddd' ,zorder = zorder * (( - 1 ) ** j ) )
350
+ zorder = yy2 + a [k ].vdw / 6 + 0.05
351
+ ax .plot_surface (x ,y ,z ,color = '#dddddd' ,zorder = - zorder )
352
352
ax .set_aspect ('equal' )
353
353
ax .set_axis_off ()
354
354
xmin ,xmax = ax .get_xlim ()
355
355
ymin ,ymax = ax .get_ylim ()
356
356
zmin ,zmax = ax .get_zlim ()
357
- ax .plot (np .linspace (xmin ,xmax ,50 ),np .zeros (50 ),np .zeros (50 ),color = '#00000088' ,zorder = - 0 ,lw = 0.5 )
358
- ax .plot (np .zeros (50 ),np .linspace (ymin ,ymax ,50 ),np .zeros (50 ),color = '#00000088' ,zorder = - 0 ,lw = 0.5 )
359
- ax .plot (np .zeros (50 ),np .zeros (50 ),np .linspace (zmin ,zmax ,50 ),color = '#00000088' ,zorder = - 0 ,lw = 0.5 )
357
+ ax .plot (np .linspace (xmin ,xmax ,50 ),np .zeros (50 ),np .zeros (50 ),color = '#00000088' ,zorder = - 1000 ,lw = 0.5 )
358
+ ax .plot (np .zeros (50 ),np .linspace (ymin ,ymax ,50 ),np .zeros (50 ),color = '#00000088' ,zorder = - 1000 ,lw = 0.5 )
359
+ ax .plot (np .zeros (50 ),np .zeros (50 ),np .linspace (zmin ,zmax ,50 ),color = '#00000088' ,zorder = - 1000 ,lw = 0.5 )
360
360
361
361
if (j == 0 ):
362
362
ax .text (xmax ,.02 * ymax ,0.02 * zmax ,'a' )
@@ -368,7 +368,7 @@ def moments_calc(xyzfile,rotor_atoms=None,isotopes=None,quiet=False,noplots=Fals
368
368
ax .text (.02 * xmax ,.02 * ymax ,zmax ,'c' )
369
369
elif (j == 2 ):
370
370
ax .text (xmax ,.02 * ymax ,0.02 * zmax ,'b' )
371
- ax .text (.02 * xmax ,ymax ,0.02 * zmax ,'a' )
371
+ ax .text (.02 * xmax ,- ymax ,0.02 * zmax ,'a' )
372
372
ax .text (.02 * xmax ,.02 * ymax ,zmax ,'c' )
373
373
374
374
ax .set_xlim (xmin / 1.25 ,xmax / 1.25 )
0 commit comments