Skip to content

Commit

Permalink
Enhancing readability (triad_v2)
Browse files Browse the repository at this point in the history
  • Loading branch information
NFPCjiheon authored Nov 5, 2024
1 parent dfc8b32 commit 0b9ee99
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions f2py/pygacode/cgyro/data_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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_*'
Expand Down

0 comments on commit 0b9ee99

Please sign in to comment.