Skip to content

Commit 6791017

Browse files
committed
default plotting function now pops up figures
1 parent 5e320ff commit 6791017

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/plotting.jl

+11
Original file line numberDiff line numberDiff line change
@@ -99,29 +99,34 @@ function makeplots(mat::Dict; outdir::String="results")
9999
title("arterial input function, \$C_p\$")
100100
savefig("$outdir/aif.pdf")
101101

102+
figure()
102103
clf()
103104
imshow(mat["SER"], interpolation="nearest", cmap="cubehelix", vmin=0, vmax=10)
104105
colorbar()
105106
title("signal enhancement ratio")
106107
savefig("$outdir/ser.pdf")
107108

109+
figure()
108110
clf()
109111
imshow(mask, interpolation="nearest", cmap="gray")
110112
title("mask")
111113
savefig("$outdir/mask.pdf")
112114

115+
figure()
113116
clf()
114117
imshow(R1map, interpolation="nearest", cmap="cubehelix", vmin=0, vmax=5)
115118
title("\$R_1\$ relaxation rate (s\$^{-1}\$)")
116119
colorbar(ticks=[0:5])
117120
savefig("$outdir/R1.pdf")
118121

122+
figure()
119123
clf()
120124
imshow(S0map, interpolation="nearest", cmap="gray")
121125
title("\$S_0\$")
122126
colorbar()
123127
savefig("$outdir/S0.pdf")
124128

129+
figure()
125130
clf()
126131
Ct = squeeze(maximum(Ct,1),1)
127132
x = oplot2(clamp(Ct, 0.0, 5.0), back, mask)
@@ -130,27 +135,31 @@ function makeplots(mat::Dict; outdir::String="results")
130135
colorbar()
131136
savefig("$outdir/Ct.pdf")
132137

138+
figure()
133139
clf()
134140
x = oplot2(clamp(Kt, 0.0, 1.0), back, mask)
135141
imshow(x, interpolation="nearest", cmap="jet", vmin=0, vmax=1)
136142
title("\$K^\\mathrm{trans}\$ (min\$^{-1}\$)")
137143
colorbar(ticks=[0:2:10]/10.0)
138144
savefig("$outdir/Kt.pdf")
139145

146+
figure()
140147
clf()
141148
x = oplot2(clamp(ve, 0.0, 1.0), back, mask)
142149
imshow(x, interpolation="nearest", cmap="jet", vmin=0, vmax=1)
143150
title("\$v_e\$")
144151
colorbar(ticks=[0,0.2,0.4,0.6,0.8,1])
145152
savefig("$outdir/ve.pdf")
146153

154+
figure()
147155
clf()
148156
x = oplot2(clamp(vp, 0.0, 1.0), back, mask)
149157
imshow(x, interpolation="nearest", cmap="jet", vmin=0, vmax=1)
150158
title("\$v_p\$")
151159
colorbar(ticks=[0,0.2,0.4,0.6,0.8,1])
152160
savefig("$outdir/vp.pdf")
153161

162+
figure()
154163
clf()
155164
kep = clamp(Kt./ve, 0.0, 10.0)
156165
x = oplot2(kep, back, mask)
@@ -159,12 +168,14 @@ function makeplots(mat::Dict; outdir::String="results")
159168
colorbar(ticks=[0,2,4,6,8,10])
160169
savefig("$outdir/kep.pdf")
161170

171+
figure()
162172
clf()
163173
imshow(modelmap, interpolation="nearest", cmap="cubehelix")
164174
title("model used")
165175
colorbar(ticks=[0,1,2,3])
166176
savefig("$outdir/modelmap.pdf")
167177

178+
figure()
168179
clf()
169180
x = oplot2(clamp(100*resid, 0.0, 1.0), back, mask)
170181
imshow(x, interpolation="nearest", cmap="jet", vmin=0, vmax=1.0)

0 commit comments

Comments
 (0)