@@ -83,24 +83,24 @@ function Makie.plot!(fig::Union{Makie.Figure,Makie.GridPosition}, res::NMRInvers
8383 x = res. X_indirect
8484 y = res. X_direct
8585
86- xlbl = if seq == IRCPMG
86+ xlbl = if seq in ( IRCPMG, SRCPMG)
8787 L " T_1 \, \t extrm{(s)}"
8888 elseif seq == PFGCPMG
8989 L " D \, \t extrm{(m^2/s)}"
9090 elseif seq == CPMGCPMG
9191 L " T_{2A} \,\t extrm{(s)}"
9292 end
9393
94- ylbl = if seq in [ IRCPMG, PFGCPMG]
94+ ylbl = if seq in ( IRCPMG, SRCPMG, PFGCPMG)
9595 L " T_2 \,\t extrm{(s)}"
9696 elseif seq == CPMGCPMG
9797 L " T_{2B} \,\t extrm{(s)}"
9898 end
9999
100- x_low = seq in (IRCPMG, CPMGCPMG) ? exp10 (floor (log10 (min (x[1 ],y[1 ])))) : exp10 (floor (log10 (x[1 ])))
101- x_high = seq in (IRCPMG, CPMGCPMG) ? exp10 (ceil (log10 (max (x[end ],y[end ])))) : exp10 (ceil (log10 (x[end ])))
102- y_low = seq in (IRCPMG, CPMGCPMG) ? exp10 (floor (log10 (min (x[1 ],y[1 ])))) : exp10 (floor (log10 (y[1 ])))
103- y_high = seq in (IRCPMG, CPMGCPMG) ? exp10 (ceil (log10 (max (x[end ],y[end ])))) : exp10 (ceil (log10 (y[end ])))
100+ x_low = seq in (IRCPMG, SRCPMG, CPMGCPMG) ? exp10 (floor (log10 (min (x[1 ],y[1 ])))) : exp10 (floor (log10 (x[1 ])))
101+ x_high = seq in (IRCPMG, SRCPMG, CPMGCPMG) ? exp10 (ceil (log10 (max (x[end ],y[end ])))) : exp10 (ceil (log10 (x[end ])))
102+ y_low = seq in (IRCPMG, SRCPMG, CPMGCPMG) ? exp10 (floor (log10 (min (x[1 ],y[1 ])))) : exp10 (floor (log10 (y[1 ])))
103+ y_high = seq in (IRCPMG, SRCPMG, CPMGCPMG) ? exp10 (ceil (log10 (max (x[end ],y[end ])))) : exp10 (ceil (log10 (y[end ])))
104104
105105 gr = fig[1 : 10 , 1 : 10 ] = GridLayout ()
106106
@@ -207,7 +207,7 @@ function draw_on_axes(
207207 markers = collect (' a' :' z' )
208208 colors = cgrad (:tab10 )
209209
210- if res. seq in (IRCPMG, CPMGCPMG)
210+ if res. seq in (IRCPMG, SRCPMG, CPMGCPMG)
211211 plot_diagonal (axmain,x,y)
212212 end
213213
@@ -224,7 +224,7 @@ function draw_on_axes(
224224 xc = xdist ⋅ x / sum (spo)
225225 yc = ydist ⋅ y / sum (spo)
226226
227- lbl = if res. seq == IRCPMG
227+ lbl = if res. seq in ( IRCPMG, SRCPMG)
228228 " T₁/T₂ = $(round (wa_indir[i]/ wa_dir[i] , digits= 1 )) \n Volume = $(round (volumes[i] * 100 ,digits = 1 )) %"
229229 elseif res. seq == PFGCPMG
230230 " D = $(round (wa_indir[i], sigdigits= 3 )) , T₂ = $(round (wa_dir[i], sigdigits= 3 )) \n Volume = $(round (volumes[i] * 100 ,digits = 1 )) %"
@@ -349,15 +349,15 @@ function Makie.plot(res::NMRInversions.inv_out_2D)
349349 coord_label = Observable (" " )
350350 coord_label[] = " Hover mouse over plot to view coordinates."
351351
352- xlbl = if res. seq == IRCPMG
352+ xlbl = if res. seq in ( IRCPMG, SRCPMG)
353353 " T₁"
354354 elseif res. seq == PFGCPMG
355355 " D"
356356 elseif res. seq == CPMGCPMG
357357 " T₂ₐ"
358358 end
359359
360- ylbl = if res. seq in [ IRCPMG, PFGCPMG]
360+ ylbl = if res. seq in ( IRCPMG, SRCPMG, PFGCPMG)
361361 " T₂"
362362 elseif res. seq == CPMGCPMG
363363 " T₂ᵦ"
0 commit comments