From 0b9ee998492a239fc775892d6b3af0f01b4cb61f Mon Sep 17 00:00:00 2001 From: NFPCjiheon <76581542+NFPCjiheon@users.noreply.github.com> Date: Tue, 5 Nov 2024 00:56:29 -0800 Subject: [PATCH] Enhancing readability (triad_v2) --- f2py/pygacode/cgyro/data_plot.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/f2py/pygacode/cgyro/data_plot.py b/f2py/pygacode/cgyro/data_plot.py index 4d47144b2..99f36af79 100644 --- a/f2py/pygacode/cgyro/data_plot.py +++ b/f2py/pygacode/cgyro/data_plot.py @@ -605,19 +605,19 @@ def plot_triad_v2(self,xin): ax.plot(self.t ,T0 ,label=lab0,linewidth=2) ax.plot(self.t ,Ent0 ,label=lab1,linewidth=2) ax.plot(self.t ,Wkt0 ,label=lab2,linewidth=2) - ax.plot(self.t ,G+Q ,label=lab3,linewidth=2) # q_s = (1/Ln-1.5/LT)T_s*Gamma_s + Q_s + #ax.plot(self.t ,G+Q ,label=lab3,linewidth=2) # q_s = (1/Ln-1.5/LT)T_s*Gamma_s + Q_s ax.plot(self.t ,diss_r0 ,label=lab4,linewidth=2) ax.plot(self.t ,diss_th0 ,label=lab5,linewidth=2) ax.plot(self.t ,diss_c0 ,label=lab6,linewidth=2) - if spec == -1: ax.plot(self.t ,(T0 - Ent0) ,':k', label=r'$ZF-T0-S0$',linewidth=2) - if spec == -1: ax.plot(self.t ,-(diss_r0+diss_th0+diss_c0) ,':r', label=r'$ZF-Dissipation$',linewidth=2) + if spec == -1: ax.plot(self.t ,(T0 - Ent0) ,':k', label=r'$ZF: T0-S0 $',linewidth=2) + if spec == -1: ax.plot(self.t ,-(diss_r0+diss_th0+diss_c0) ,':r', label=r'$ZF: Dissipations $',linewidth=2) ax.set_xlim(0,t[-1]) if ymax != 'auto': ax.set_ylim(top=float(ymax)) if ymin != 'auto': ax.set_ylim(bottom=float(ymin)) - ax.legend(loc=3) + ax.legend(loc=1, ncol=3, framealpha=0) # JC: labels only correct for default norm head = '(cs/a) t Phi_0/rho_* Phi_n/rho_*'