|
1 | 1 | { |
2 | 2 | "cells": [ |
3 | | - { |
4 | | - "cell_type": "code", |
5 | | - "execution_count": null, |
6 | | - "metadata": { |
7 | | - "hideCode": true, |
8 | | - "hideOutput": true, |
9 | | - "hidePrompt": true, |
10 | | - "jupyter": { |
11 | | - "source_hidden": true |
12 | | - }, |
13 | | - "tags": [ |
14 | | - "remove-cell", |
15 | | - "skip-execution" |
16 | | - ] |
17 | | - }, |
18 | | - "outputs": [], |
19 | | - "source": [ |
20 | | - "# WARNING: advised to install a specific version, e.g. ampform==0.1.2\n", |
21 | | - "%pip install -q ampform[doc,viz] IPython" |
22 | | - ] |
23 | | - }, |
24 | | - { |
25 | | - "cell_type": "code", |
26 | | - "execution_count": null, |
27 | | - "metadata": { |
28 | | - "hideCode": true, |
29 | | - "hideOutput": true, |
30 | | - "hidePrompt": true, |
31 | | - "jupyter": { |
32 | | - "source_hidden": true |
33 | | - }, |
34 | | - "tags": [ |
35 | | - "remove-cell" |
36 | | - ] |
37 | | - }, |
38 | | - "outputs": [], |
39 | | - "source": [ |
40 | | - "import os\n", |
41 | | - "\n", |
42 | | - "STATIC_WEB_PAGE = {\"EXECUTE_NB\", \"READTHEDOCS\"}.intersection(os.environ)" |
43 | | - ] |
44 | | - }, |
45 | 3 | { |
46 | 4 | "cell_type": "markdown", |
47 | 5 | "metadata": {}, |
48 | 6 | "source": [ |
| 7 | + "# Continuation into other Riemann sheets\n", |
| 8 | + "\n", |
49 | 9 | "```{autolink-concat}\n", |
| 10 | + "\n", |
50 | 11 | "```" |
51 | 12 | ] |
52 | 13 | }, |
53 | | - { |
54 | | - "cell_type": "markdown", |
55 | | - "metadata": {}, |
56 | | - "source": [ |
57 | | - "# Continuation into other Riemann sheets" |
58 | | - ] |
59 | | - }, |
60 | 14 | { |
61 | 15 | "cell_type": "markdown", |
62 | 16 | "metadata": {}, |
|
522 | 476 | }, |
523 | 477 | "outputs": [], |
524 | 478 | "source": [ |
525 | | - "x = np.linspace(0, 8, num=300)\n", |
526 | | - "y = np.linspace(1e-3, 1, num=100)\n", |
| 479 | + "x = np.linspace(0, 6, num=150)\n", |
| 480 | + "y = np.linspace(1e-3, 1, num=40)\n", |
527 | 481 | "X, Y = np.meshgrid(x, y)\n", |
528 | 482 | "Zn = X - Y * 1j\n", |
529 | 483 | "Zp = X + Y * 1j" |
|
542 | 496 | }, |
543 | 497 | "outputs": [], |
544 | 498 | "source": [ |
| 499 | + "%%time\n", |
545 | 500 | "T1n = evaluate(T1_func, Zn**2)\n", |
546 | 501 | "T1p = evaluate(T1_func, Zp**2)\n", |
547 | 502 | "\n", |
|
563 | 518 | "source_hidden": true |
564 | 519 | }, |
565 | 520 | "tags": [ |
| 521 | + "full-width", |
566 | 522 | "hide-input" |
567 | 523 | ] |
568 | 524 | }, |
569 | 525 | "outputs": [], |
570 | 526 | "source": [ |
571 | | - "fig, axes = plt.subplots(figsize=(11, 4), ncols=2, sharey=True)\n", |
| 527 | + "fig, axes = plt.subplots(figsize=(13, 4), ncols=2, sharey=True)\n", |
572 | 528 | "ax1, ax2 = axes.ravel()\n", |
573 | | - "fig.subplots_adjust(wspace=0.1)\n", |
| 529 | + "fig.subplots_adjust(wspace=0.05)\n", |
574 | 530 | "fig.suptitle(R\"$s_{thr1}<s_{thr2}<m_{res}$\", fontsize=20)\n", |
575 | 531 | "ax1.set_title(\"I and II\", y=0.88)\n", |
576 | 532 | "ax2.set_title(\"I and III\", y=0.88)\n", |
|
598 | 554 | " ax.axvline(parameters[m0], **linestyle_res)\n", |
599 | 555 | "\n", |
600 | 556 | "ax1.legend(fontsize=11, loc=\"lower left\")\n", |
601 | | - "cbar = fig.colorbar(mesh, ax=axes)\n", |
| 557 | + "cbar = fig.colorbar(mesh, ax=axes, pad=0.01)\n", |
602 | 558 | "cbar.ax.set_ylabel(R\"$\\mathrm{Im} T(s)$\")\n", |
603 | 559 | "fig.show()" |
604 | 560 | ] |
|
0 commit comments