|
127 | 127 | " ))\n",
|
128 | 128 | "\n",
|
129 | 129 | "# fix the ratio in the top left subplot to be a cube\n",
|
130 |
| - "fig['layout'][].update(go.Layout(\n", |
131 |
| - " go.layout.Scene(aspectmode='cube')),\n", |
132 |
| - " \n", |
| 130 | + "fig['layout']['scene'].update(dict(aspectmode='cube'))\n", |
133 | 131 | "\n",
|
134 | 132 | "# manually force the z-axis to appear twice as big as the other two\n",
|
135 |
| - "fig['layout']['scene2'].update(go.layout.Scene(\n", |
| 133 | + "fig['layout']['scene2'].update(dict(\n", |
136 | 134 | " aspectmode='manual',\n",
|
137 |
| - " aspectratio=go.layout.scene.Aspectratio(\n", |
| 135 | + " aspectratio=dict(\n", |
138 | 136 | " x=1, y=1, z=2\n",
|
139 | 137 | " )\n",
|
140 | 138 | "))\n",
|
141 | 139 | "\n",
|
142 | 140 | "# draw axes in proportion to the proportion of their ranges\n",
|
143 |
| - "fig['layout']['scene3'].update(go.layout.Scene(aspectmode='data'))\n", |
| 141 | + "fig['layout']['scene3'].update(dict(aspectmode='data'))\n", |
144 | 142 | "\n",
|
145 | 143 | "# automatically produce something that is well proportioned using 'data' as the default\n",
|
146 |
| - "fig['layout']['scene4'].update(go.layout.Scene(aspectmode='auto'))\n", |
| 144 | + "fig['layout']['scene4'].update(dict(aspectmode='auto'))\n", |
147 | 145 | "\n",
|
148 |
| - "py.iplot(fig, filename='3d-axis-fixed-ratio-axes')\n" |
| 146 | + "py.iplot(fig, filename='3d-axis-fixed-ratio-axes')" |
149 | 147 | ]
|
150 | 148 | },
|
151 | 149 | {
|
|
163 | 161 | {
|
164 | 162 | "data": {
|
165 | 163 | "text/html": [
|
166 |
| - "<iframe id=\"igraph\" scrolling=\"no\" style=\"border:none;\" seamless=\"seamless\" src=\"https://plot.ly/~PythonPlotBot/2849.embed\" height=\"525px\" width=\"700px\"></iframe>" |
| 164 | + "<iframe id=\"igraph\" scrolling=\"no\" style=\"border:none;\" seamless=\"seamless\" src=\"https://plot.ly/~michaelbabyn/286.embed\" height=\"525px\" width=\"700px\"></iframe>" |
167 | 165 | ],
|
168 | 166 | "text/plain": [
|
169 | 167 | "<plotly.tools.PlotlyDisplay object>"
|
|
224 | 222 | {
|
225 | 223 | "data": {
|
226 | 224 | "text/html": [
|
227 |
| - "<iframe id=\"igraph\" scrolling=\"no\" style=\"border:none;\" seamless=\"seamless\" src=\"https://plot.ly/~PythonPlotBot/2851.embed\" height=\"525px\" width=\"700px\"></iframe>" |
| 225 | + "<iframe id=\"igraph\" scrolling=\"no\" style=\"border:none;\" seamless=\"seamless\" src=\"https://plot.ly/~michaelbabyn/284.embed\" height=\"525px\" width=\"700px\"></iframe>" |
228 | 226 | ],
|
229 | 227 | "text/plain": [
|
230 | 228 | "<plotly.tools.PlotlyDisplay object>"
|
|
286 | 284 | {
|
287 | 285 | "data": {
|
288 | 286 | "text/html": [
|
289 |
| - "<iframe id=\"igraph\" scrolling=\"no\" style=\"border:none;\" seamless=\"seamless\" src=\"https://plot.ly/~PythonPlotBot/2853.embed\" height=\"525px\" width=\"700px\"></iframe>" |
| 287 | + "<iframe id=\"igraph\" scrolling=\"no\" style=\"border:none;\" seamless=\"seamless\" src=\"https://plot.ly/~michaelbabyn/282.embed\" height=\"525px\" width=\"700px\"></iframe>" |
290 | 288 | ],
|
291 | 289 | "text/plain": [
|
292 | 290 | "<plotly.tools.PlotlyDisplay object>"
|
|
337 | 335 | },
|
338 | 336 | {
|
339 | 337 | "cell_type": "code",
|
340 |
| - "execution_count": 7, |
| 338 | + "execution_count": 9, |
341 | 339 | "metadata": {},
|
342 | 340 | "outputs": [
|
343 | 341 | {
|
|
369 | 367 | "output_type": "stream",
|
370 | 368 | "text": [
|
371 | 369 | "Collecting git+https://github.com/plotly/publisher.git\n",
|
372 |
| - " Cloning https://github.com/plotly/publisher.git to /tmp/pip-req-build-B_WbM3\n", |
| 370 | + " Cloning https://github.com/plotly/publisher.git to /tmp/pip-req-build-xiHs6y\n", |
373 | 371 | "Building wheels for collected packages: publisher\n",
|
374 | 372 | " Running setup.py bdist_wheel for publisher ... \u001b[?25ldone\n",
|
375 |
| - "\u001b[?25h Stored in directory: /tmp/pip-ephem-wheel-cache-iIz9AA/wheels/99/3e/a0/fbd22ba24cca72bdbaba53dbc23c1768755fb17b3af0f33966\n", |
| 373 | + "\u001b[?25h Stored in directory: /tmp/pip-ephem-wheel-cache-MZf1bL/wheels/99/3e/a0/fbd22ba24cca72bdbaba53dbc23c1768755fb17b3af0f33966\n", |
376 | 374 | "Successfully built publisher\n",
|
377 | 375 | "Installing collected packages: publisher\n",
|
378 |
| - " Found existing installation: publisher 0.11\n", |
379 |
| - " Uninstalling publisher-0.11:\n", |
380 |
| - " Successfully uninstalled publisher-0.11\n", |
381 |
| - "Successfully installed publisher-0.11\n", |
| 376 | + " Found existing installation: publisher 0.12\n", |
| 377 | + " Uninstalling publisher-0.12:\n", |
| 378 | + " Successfully uninstalled publisher-0.12\n", |
| 379 | + "Successfully installed publisher-0.12\n", |
382 | 380 | "\u001b[33mYou are using pip version 10.0.1, however version 18.1 is available.\n",
|
383 | 381 | "You should consider upgrading via the 'pip install --upgrade pip' command.\u001b[0m\n"
|
384 | 382 | ]
|
|
0 commit comments