@@ -574,7 +574,7 @@ def plot_scalar_field(step, fieldname, ridges, trenches):
574574 conf .field .colorbar = cbar
575575
576576 # plotting velocity vectors
577- field .plot_vec (axis , step , 'v' )
577+ field .plot_vec (axis , step , 'sx' if conf . plates . stress else ' v' )
578578
579579 # Put arrow where ridges and trenches are
580580 plot_plate_limits_field (axis , step .geom .rcmb , ridges , trenches )
@@ -673,34 +673,6 @@ def main_plates(sdat):
673673 # calculate stresses in the lithosphere
674674 lithospheric_stress (step , trenches , ridges , time )
675675
676- # plotting the principal deviatoric stress field
677- if 'sx' in conf .plates .plot :
678- fig , axis , _ , _ = field .plot_scalar (step , 'sII' ,
679- alpha = 0.1 )
680-
681- # plotting continents
682- cbar = conf .field .colorbar
683- conf .field .colorbar = False
684- field .plot_scalar (step , 'c' , continentsfld , axis ,
685- cmap = 'cool_r' , vmin = 0 , vmax = 0 )
686- cmap2 = plt .cm .ocean
687- cmap2 .set_over ('m' )
688- conf .field .colorbar = cbar
689-
690- # plotting principal deviatoric stress
691- field .plot_vec (axis , step , 'sx' )
692-
693- # Annotation with time and step
694- axis .text (1. , 0.9 , str (round (time , 0 )) + ' My' ,
695- transform = axis .transAxes )
696- axis .text (1. , 0.1 , str (timestep ),
697- transform = axis .transAxes )
698-
699- # Put arrow where ridges and trenches are
700- plot_plate_limits_field (axis , rcmb , ridges , trenches )
701-
702- saveplot (fig , 'sx' , timestep )
703-
704676
705677def cmd ():
706678 """Implementation of plates subcommand.
0 commit comments