|
11 | 11 | }, |
12 | 12 | { |
13 | 13 | "cell_type": "code", |
14 | | - "execution_count": 1, |
| 14 | + "execution_count": 18, |
15 | 15 | "metadata": {}, |
16 | 16 | "outputs": [ |
17 | 17 | { |
|
1135 | 1135 | " print(proc2)" |
1136 | 1136 | ] |
1137 | 1137 | }, |
1138 | | - { |
1139 | | - "cell_type": "markdown", |
1140 | | - "metadata": { |
1141 | | - "tags": [] |
1142 | | - }, |
1143 | | - "source": [ |
1144 | | - "# Merge scale analysis plots (SWE, Euler, RB)" |
1145 | | - ] |
1146 | | - }, |
1147 | | - { |
1148 | | - "cell_type": "code", |
1149 | | - "execution_count": 36, |
1150 | | - "metadata": { |
1151 | | - "collapsed": true, |
1152 | | - "jupyter": { |
1153 | | - "outputs_hidden": true, |
1154 | | - "source_hidden": true |
1155 | | - }, |
1156 | | - "tags": [] |
1157 | | - }, |
1158 | | - "outputs": [ |
1159 | | - { |
1160 | | - "name": "stdout", |
1161 | | - "output_type": "stream", |
1162 | | - "text": [ |
1163 | | - "./output/scale_analysis_swe.pdf ./output/scale_analysis_euler.pdf ./output/scale_analysis_rb.pdf\n", |
1164 | | - "['pdfjam', '--nup', '3x1', './output/scale_analysis_swe.pdf', './output/scale_analysis_euler.pdf', './output/scale_analysis_rb.pdf', '--outfile', './output/scale_analysis.pdf']\n", |
1165 | | - "0\n", |
1166 | | - "0\n" |
1167 | | - ] |
1168 | | - } |
1169 | | - ], |
1170 | | - "source": [ |
1171 | | - "dd = './output'\n", |
1172 | | - "p1 = '%s/scale_analysis_swe.pdf' %dd\n", |
1173 | | - "p2 = '%s/scale_analysis_euler.pdf' %dd\n", |
1174 | | - "p3 = '%s/scale_analysis_rb.pdf' %dd\n", |
1175 | | - "\n", |
1176 | | - "ps = [p1,p2,p3]\n", |
1177 | | - "p_long = p1\n", |
1178 | | - "\n", |
1179 | | - "for p in ps[1:]:\n", |
1180 | | - " p_long += ' ' + p\n", |
1181 | | - "# print([p for p in ps])\n", |
1182 | | - "print(p_long)\n", |
1183 | | - "\n", |
1184 | | - "call = ['pdfjam', '--nup', '3x1']\n", |
1185 | | - "for p in ps:\n", |
1186 | | - " call += [p]\n", |
1187 | | - "call += ['--outfile', '%s/scale_analysis.pdf' %dd]\n", |
1188 | | - "print(call)\n", |
1189 | | - "\n", |
1190 | | - "proc1 = subprocess.call(call)\n", |
1191 | | - "print(proc1)\n", |
1192 | | - "if not proc1:\n", |
1193 | | - " proc2 = subprocess.call(['pdfcrop', '%s/scale_analysis.pdf' %dd, '%s/scale_analysis.pdf' %dd])\n", |
1194 | | - " print(proc2)" |
1195 | | - ] |
1196 | | - }, |
1197 | 1138 | { |
1198 | 1139 | "cell_type": "markdown", |
1199 | 1140 | "metadata": {}, |
1200 | 1141 | "source": [ |
1201 | | - "# Merge scale analysis plots (TV, RB)" |
| 1142 | + "# Merge scale analysis plot (SWE)" |
1202 | 1143 | ] |
1203 | 1144 | }, |
1204 | 1145 | { |
1205 | 1146 | "cell_type": "code", |
1206 | | - "execution_count": 3, |
| 1147 | + "execution_count": 22, |
1207 | 1148 | "metadata": {}, |
1208 | 1149 | "outputs": [ |
1209 | 1150 | { |
1210 | 1151 | "name": "stdout", |
1211 | 1152 | "output_type": "stream", |
1212 | 1153 | "text": [ |
1213 | 1154 | "0\n", |
1214 | | - "0\n", |
1215 | | - "['pdfjam', '--nup', '1x2', './output/scale_analysis_euler.pdf', './output/scale_analysis_rb.pdf', '--outfile', './output/scaleAnalysis.pdf']\n", |
| 1155 | + "['pdfjam', '--nup', '1x1', './output/scale_analysis_swe.pdf', '--outfile', './output/SWEscaleAnalysis.pdf']\n", |
1216 | 1156 | "0\n", |
1217 | 1157 | "0\n" |
1218 | 1158 | ] |
1219 | 1159 | } |
1220 | 1160 | ], |
1221 | 1161 | "source": [ |
1222 | 1162 | "dd = './output'\n", |
1223 | | - "p1 = '%s/scale_analysis_euler.pdf' %dd\n", |
1224 | | - "p2 = '%s/scale_analysis_rb.pdf' %dd\n", |
| 1163 | + "p1 = '%s/scale_analysis_swe.pdf' %dd\n", |
1225 | 1164 | "\n", |
1226 | | - "ps = [p1,p2]\n", |
| 1165 | + "ps = [p1]\n", |
1227 | 1166 | "\n", |
1228 | 1167 | "for p in ps:\n", |
1229 | 1168 | " proc0 = subprocess.call(['pdfcrop', '%s' %(p), '%s' %(p)])\n", |
1230 | 1169 | " print(proc0)\n", |
1231 | 1170 | "\n", |
1232 | | - "call = ['pdfjam', '--nup', '1x2']\n", |
| 1171 | + "call = ['pdfjam', '--nup', '1x1']\n", |
1233 | 1172 | "for p in ps:\n", |
1234 | 1173 | " call += [p]\n", |
1235 | | - "call += ['--outfile', '%s/scaleAnalysis.pdf' %dd]\n", |
| 1174 | + "call += ['--outfile', '%s/SWEscaleAnalysis.pdf' %dd]\n", |
1236 | 1175 | "print(call)\n", |
1237 | 1176 | "\n", |
1238 | 1177 | "proc1 = subprocess.call(call)\n", |
1239 | 1178 | "print(proc1)\n", |
1240 | 1179 | "if not proc1:\n", |
1241 | | - " proc2 = subprocess.call(['pdfcrop', '%s/scaleAnalysis.pdf' %dd, '%s/scaleAnalysis.pdf' %dd])\n", |
| 1180 | + " proc2 = subprocess.call(['pdfcrop', '%s/SWEscaleAnalysis.pdf' %dd, '%s/SWEscaleAnalysis.pdf' %dd])\n", |
1242 | 1181 | " print(proc2)" |
1243 | 1182 | ] |
1244 | 1183 | }, |
1245 | 1184 | { |
1246 | 1185 | "cell_type": "markdown", |
1247 | 1186 | "metadata": {}, |
1248 | 1187 | "source": [ |
1249 | | - "# Merge scale analysis plots (arXiv)" |
| 1188 | + "# Merge scale analysis plots (TV, RB)" |
1250 | 1189 | ] |
1251 | 1190 | }, |
1252 | 1191 | { |
1253 | 1192 | "cell_type": "code", |
1254 | | - "execution_count": 4, |
| 1193 | + "execution_count": 24, |
1255 | 1194 | "metadata": {}, |
1256 | 1195 | "outputs": [ |
1257 | 1196 | { |
|
1260 | 1199 | "text": [ |
1261 | 1200 | "0\n", |
1262 | 1201 | "0\n", |
1263 | | - "['pdfjam', '--nup', '1x2', './output/scale_analysis_euler.pdf', './output/scale_analysis_rb.pdf', '--outfile', './output/scaleAnalysis.pdf']\n", |
| 1202 | + "['pdfjam', '--nup', '2x1', './output/scale_analysis_euler.pdf', './output/scale_analysis_rb.pdf', '--outfile', './output/scaleAnalysis.pdf']\n", |
1264 | 1203 | "0\n", |
1265 | 1204 | "0\n" |
1266 | 1205 | ] |
|
1277 | 1216 | " proc0 = subprocess.call(['pdfcrop', '%s' %(p), '%s' %(p)])\n", |
1278 | 1217 | " print(proc0)\n", |
1279 | 1218 | "\n", |
1280 | | - "call = ['pdfjam', '--nup', '1x2']\n", |
| 1219 | + "call = ['pdfjam', '--nup', '2x1']\n", |
1281 | 1220 | "for p in ps:\n", |
1282 | 1221 | " call += [p]\n", |
1283 | 1222 | "call += ['--outfile', '%s/scaleAnalysis.pdf' %dd]\n", |
|
1294 | 1233 | "cell_type": "markdown", |
1295 | 1234 | "metadata": {}, |
1296 | 1235 | "source": [ |
1297 | | - "# Merge poster/slides rb contour plots" |
1298 | | - ] |
1299 | | - }, |
1300 | | - { |
1301 | | - "cell_type": "code", |
1302 | | - "execution_count": 5, |
1303 | | - "metadata": {}, |
1304 | | - "outputs": [ |
1305 | | - { |
1306 | | - "name": "stdout", |
1307 | | - "output_type": "stream", |
1308 | | - "text": [ |
1309 | | - "./output/rb_deltap_contour_comp_slides.pdf ./output/rb_deltap_contour_psinc_slides.pdf\n", |
1310 | | - "['pdfjam', '--nup', '2x1', './output/rb_deltap_contour_comp_slides.pdf', './output/rb_deltap_contour_psinc_slides.pdf', '--outfile', './output/rb_deltap_contour_slides.pdf', '--delta', '0.2cm 0.2cm']\n", |
1311 | | - "66\n" |
1312 | | - ] |
1313 | | - } |
1314 | | - ], |
1315 | | - "source": [ |
1316 | | - "dd = './output'\n", |
1317 | | - "p1 = '%s/rb_deltap_contour_comp_slides.pdf' %dd\n", |
1318 | | - "p2 = '%s/rb_deltap_contour_psinc_slides.pdf' %dd\n", |
1319 | | - "\n", |
1320 | | - "out_name = 'rb_deltap_contour_slides'\n", |
1321 | | - "\n", |
1322 | | - "ps = [p1,p2]\n", |
1323 | | - "p_long = p1\n", |
1324 | | - "\n", |
1325 | | - "for p in ps[1:]:\n", |
1326 | | - " p_long += ' ' + p\n", |
1327 | | - "# print([p for p in ps])\n", |
1328 | | - "print(p_long)\n", |
1329 | | - "\n", |
1330 | | - "call = ['pdfjam', '--nup', '2x1']\n", |
1331 | | - "for p in ps:\n", |
1332 | | - " call += [p]\n", |
1333 | | - "call += ['--outfile', '%s/%s.pdf' %(dd,out_name)]\n", |
1334 | | - "call += ['--delta', '0.2cm 0.2cm']\n", |
1335 | | - "print(call)\n", |
1336 | | - "\n", |
1337 | | - "proc1 = subprocess.call(call)\n", |
1338 | | - "print(proc1)\n", |
1339 | | - "if not proc1:\n", |
1340 | | - " proc2 = subprocess.call(['pdfcrop', '%s/%s.pdf' %(dd,out_name), '%s/%s.pdf' %(dd,out_name)])\n", |
1341 | | - " print(proc2)" |
| 1236 | + "# Merge scale analysis plots (arXiv)" |
1342 | 1237 | ] |
1343 | 1238 | }, |
1344 | 1239 | { |
|
0 commit comments