|
35 | 35 | "import scipp as sc\n", |
36 | 36 | "from ess import loki, sans\n", |
37 | 37 | "from ess.logging import configure_workflow\n", |
38 | | - "import scippneutron as scn" |
| 38 | + "import scippneutron as scn\n", |
| 39 | + "import plopp as pp" |
39 | 40 | ] |
40 | 41 | }, |
41 | 42 | { |
|
233 | 234 | "metadata": {}, |
234 | 235 | "outputs": [], |
235 | 236 | "source": [ |
236 | | - "scn.instrument_view(ds['sample'], pixel_size=0.0075)" |
| 237 | + "scn.instrument_view(ds['sample'].hist(), pixel_size=0.0075)" |
237 | 238 | ] |
238 | 239 | }, |
239 | 240 | { |
|
327 | 328 | " q_bins=q_bins,\n", |
328 | 329 | " gravity=gravity,\n", |
329 | 330 | " monitor_non_background_range=monitor_non_background_range)\n", |
330 | | - "sample_q.plot()" |
| 331 | + "sample_q.hist().plot()" |
331 | 332 | ] |
332 | 333 | }, |
333 | 334 | { |
|
345 | 346 | " q_bins=q_bins,\n", |
346 | 347 | " gravity=gravity,\n", |
347 | 348 | " monitor_non_background_range=monitor_non_background_range)\n", |
348 | | - "background_q.plot()" |
| 349 | + "background_q.hist().plot()" |
349 | 350 | ] |
350 | 351 | }, |
351 | 352 | { |
|
376 | 377 | "source": [ |
377 | 378 | "fig1, ax1 = plt.subplots(1, 2, figsize=(10, 4))\n", |
378 | 379 | "sc.plot(result, ax=ax1[0])\n", |
379 | | - "sc.plot(result, norm='log', ax=ax1[1])\n", |
380 | | - "fig1" |
| 380 | + "sc.plot(result, norm='log', ax=ax1[1])" |
381 | 381 | ] |
382 | 382 | }, |
383 | 383 | { |
|
456 | 456 | "\n", |
457 | 457 | "fig2, ax2 = plt.subplots(1, 2, figsize=(10, 4))\n", |
458 | 458 | "sc.plot(collapsed, ax=ax2[0])\n", |
459 | | - "sc.plot(collapsed, norm='log', legend=False, ax=ax2[1])\n", |
460 | | - "fig2" |
| 459 | + "sc.plot(collapsed, norm='log', ax=ax2[1])" |
461 | 460 | ] |
462 | 461 | }, |
463 | 462 | { |
|
0 commit comments