|
20 | 20 | "import numpy as np\n",
|
21 | 21 | "import pyEXP\n",
|
22 | 22 | "import EXPtools \n",
|
23 |
| - "import matplotlib.pyplot as plt" |
| 23 | + "import matplotlib.pyplot as plt\n", |
| 24 | + "import k3d" |
24 | 25 | ]
|
25 | 26 | },
|
26 | 27 | {
|
|
95 | 96 | },
|
96 | 97 | {
|
97 | 98 | "cell_type": "code",
|
98 |
| - "execution_count": 19, |
| 99 | + "execution_count": 6, |
99 | 100 | "id": "79b66056",
|
100 | 101 | "metadata": {},
|
101 | 102 | "outputs": [],
|
102 | 103 | "source": [
|
103 |
| - "rend = EXPtools.visuals.field3Drender(np.array([field]), contour_ranges=[np.array([-0.1, 0.1]), np.array([-0.8, 0.8])],\n", |
| 104 | + "rend = EXPtools.visuals.field3Drender(np.array([field]), contour_ranges=[np.array([-3000, 3000]), \n", |
| 105 | + " np.array([-9000, 9000])],\n", |
| 106 | + " size=[-100, 100, -100, 100, -100, 100])" |
| 107 | + ] |
| 108 | + }, |
| 109 | + { |
| 110 | + "cell_type": "code", |
| 111 | + "execution_count": 7, |
| 112 | + "id": "30fc043a", |
| 113 | + "metadata": {}, |
| 114 | + "outputs": [], |
| 115 | + "source": [ |
| 116 | + "rend2 = EXPtools.visuals.field3Drender(np.array([field]), contour_ranges=[np.array([-1000, 1000]), \n", |
| 117 | + " np.array([-90000, 90000])],\n", |
104 | 118 | " size=[-100, 100, -100, 100, -100, 100])"
|
105 | 119 | ]
|
106 | 120 | },
|
107 | 121 | {
|
108 | 122 | "cell_type": "code",
|
109 |
| - "execution_count": 20, |
| 123 | + "execution_count": 8, |
110 | 124 | "id": "30e35046",
|
111 | 125 | "metadata": {
|
112 | 126 | "scrolled": false
|
113 | 127 | },
|
| 128 | + "outputs": [], |
| 129 | + "source": [ |
| 130 | + "plot = k3d.plot()" |
| 131 | + ] |
| 132 | + }, |
| 133 | + { |
| 134 | + "cell_type": "code", |
| 135 | + "execution_count": 12, |
| 136 | + "id": "39c1d5c3", |
| 137 | + "metadata": {}, |
114 | 138 | "outputs": [
|
115 | 139 | {
|
116 | 140 | "data": {
|
117 | 141 | "application/vnd.jupyter.widget-view+json": {
|
118 |
| - "model_id": "8c566d6df0c648bd9b86c4c9952a9534", |
| 142 | + "model_id": "f6f6a584c57749e58837f67293cf345a", |
119 | 143 | "version_major": 2,
|
120 | 144 | "version_minor": 0
|
121 | 145 | },
|
122 | 146 | "text/plain": [
|
123 | 147 | "Plot(antialias=3, axes=['x', 'y', 'z'], axes_helper=1.0, axes_helper_colors=[16711680, 65280, 255], background…"
|
124 | 148 | ]
|
125 | 149 | },
|
126 |
| - "execution_count": 20, |
| 150 | + "execution_count": 12, |
127 | 151 | "metadata": {},
|
128 | 152 | "output_type": "execute_result"
|
129 | 153 | }
|
130 | 154 | ],
|
131 | 155 | "source": [
|
132 |
| - "rend" |
| 156 | + "rend2" |
133 | 157 | ]
|
134 | 158 | },
|
135 | 159 | {
|
|
142 | 166 | "# Symphony fields"
|
143 | 167 | ]
|
144 | 168 | },
|
| 169 | + { |
| 170 | + "cell_type": "code", |
| 171 | + "execution_count": 13, |
| 172 | + "id": "5448615a", |
| 173 | + "metadata": {}, |
| 174 | + "outputs": [ |
| 175 | + { |
| 176 | + "ename": "TypeError", |
| 177 | + "evalue": "unsupported operand type(s) for +: 'Plot' and 'Plot'", |
| 178 | + "output_type": "error", |
| 179 | + "traceback": [ |
| 180 | + "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", |
| 181 | + "\u001b[0;31mTypeError\u001b[0m Traceback (most recent call last)", |
| 182 | + "Cell \u001b[0;32mIn[13], line 1\u001b[0m\n\u001b[0;32m----> 1\u001b[0m \u001b[43mrend\u001b[49m\u001b[43m \u001b[49m\u001b[38;5;241;43m+\u001b[39;49m\u001b[43m \u001b[49m\u001b[43mrend2\u001b[49m\n", |
| 183 | + "\u001b[0;31mTypeError\u001b[0m: unsupported operand type(s) for +: 'Plot' and 'Plot'" |
| 184 | + ] |
| 185 | + } |
| 186 | + ], |
| 187 | + "source": [ |
| 188 | + "rend. + rend2" |
| 189 | + ] |
| 190 | + }, |
145 | 191 | {
|
146 | 192 | "cell_type": "code",
|
147 | 193 | "execution_count": 2,
|
|
0 commit comments