|
344 | 344 | " x='wt',\n",
|
345 | 345 | " y='mpg',\n",
|
346 | 346 | " facet_col='cyl',\n",
|
347 |
| - " facet_col_labels={4: \"$\\\\alpha$\", 6: '$\\\\beta$', 8: '$\\sqrt[y]{x}$'},\n", |
| 347 | + " facet_col_labels={4: '$2^2 = 4$', 6: '$\\\\frac{18}{3} = 6$', 8: '$2\\cdot4 = 8$'},\n", |
348 | 348 | " marker={'color': 'rgb(240, 100, 2)'},\n",
|
349 | 349 | ")\n",
|
350 | 350 | "\n",
|
|
495 | 495 | },
|
496 | 496 | {
|
497 | 497 | "cell_type": "code",
|
498 |
| - "execution_count": 12, |
| 498 | + "execution_count": 13, |
499 | 499 | "metadata": {},
|
500 | 500 | "outputs": [
|
501 | 501 | {
|
|
507 | 507 | "<plotly.tools.PlotlyDisplay object>"
|
508 | 508 | ]
|
509 | 509 | },
|
510 |
| - "execution_count": 12, |
| 510 | + "execution_count": 13, |
511 | 511 | "metadata": {},
|
512 | 512 | "output_type": "execute_result"
|
513 | 513 | }
|
|
539 | 539 | },
|
540 | 540 | {
|
541 | 541 | "cell_type": "code",
|
542 |
| - "execution_count": 13, |
| 542 | + "execution_count": 14, |
543 | 543 | "metadata": {},
|
544 | 544 | "outputs": [
|
545 | 545 | {
|
|
721 | 721 | },
|
722 | 722 | {
|
723 | 723 | "cell_type": "code",
|
724 |
| - "execution_count": 14, |
| 724 | + "execution_count": 15, |
725 | 725 | "metadata": {},
|
726 | 726 | "outputs": [
|
727 |
| - { |
728 |
| - "data": { |
729 |
| - "text/html": [ |
730 |
| - "<link href=\"//fonts.googleapis.com/css?family=Open+Sans:600,400,300,200|Inconsolata|Ubuntu+Mono:400,700rel=\"stylesheet\" type=\"text/css\" />" |
731 |
| - ], |
732 |
| - "text/plain": [ |
733 |
| - "<IPython.core.display.HTML object>" |
734 |
| - ] |
735 |
| - }, |
736 |
| - "metadata": {}, |
737 |
| - "output_type": "display_data" |
738 |
| - }, |
739 |
| - { |
740 |
| - "data": { |
741 |
| - "text/html": [ |
742 |
| - "<link rel=\"stylesheet\" type=\"text/csshref=\"http://help.plot.ly/documentation/all_static/css/ipython-notebook-custom.css\">" |
743 |
| - ], |
744 |
| - "text/plain": [ |
745 |
| - "<IPython.core.display.HTML object>" |
746 |
| - ] |
747 |
| - }, |
748 |
| - "metadata": {}, |
749 |
| - "output_type": "display_data" |
750 |
| - }, |
751 | 727 | {
|
752 | 728 | "name": "stdout",
|
753 | 729 | "output_type": "stream",
|
754 | 730 | "text": [
|
755 | 731 | "Collecting git+https://github.com/plotly/publisher.git\n",
|
756 |
| - " Cloning https://github.com/plotly/publisher.git to /private/var/folders/tc/bs9g6vrd36q74m5t8h9cgphh0000gn/T/pip-Qtdk2b-build\n", |
| 732 | + " Cloning https://github.com/plotly/publisher.git to /private/var/folders/tc/bs9g6vrd36q74m5t8h9cgphh0000gn/T/pip-izMtrr-build\n", |
757 | 733 | "Installing collected packages: publisher\n",
|
758 | 734 | " Found existing installation: publisher 0.10\n",
|
759 | 735 | " Uninstalling publisher-0.10:\n",
|
|
778 | 754 | }
|
779 | 755 | ],
|
780 | 756 | "source": [
|
781 |
| - "from IPython.display import display, HTML\n", |
782 |
| - "\n", |
783 |
| - "display(HTML('<link href=\"//fonts.googleapis.com/css?family=Open+Sans:600,400,300,200|Inconsolata|Ubuntu+Mono:400,700rel=\"stylesheet\" type=\"text/css\" />'))\n", |
784 |
| - "display(HTML('<link rel=\"stylesheet\" type=\"text/csshref=\"http://help.plot.ly/documentation/all_static/css/ipython-notebook-custom.css\">'))\n", |
785 |
| - "\n", |
786 | 757 | "! pip install git+https://github.com/plotly/publisher.git --upgrade\n",
|
787 | 758 | "import publisher\n",
|
788 | 759 | "publisher.publish(\n",
|
789 |
| - " 'facet-and-trellis-plots.ipynb', 'python/facet-trellis/', 'Facet and Trellis Plots | plotly',\n", |
| 760 | + " 'facet-and-trellis-plots.ipynb', 'python/facet-trellis/', 'Facet and Trellis Plots',\n", |
790 | 761 | " 'How to make Facet and Trellis Plots in Python with Plotly.',\n",
|
791 | 762 | " title = 'Python Facet and Trellis Plots | plotly',\n",
|
792 |
| - " name = 'Facet and Trellis Plots',\n", |
793 | 763 | " has_thumbnail='true', thumbnail='thumbnail/facet-trellis-thumbnail.jpg',\n",
|
794 |
| - " language='python', display_as='statistical', order=10.2)" |
| 764 | + " language='python', \n", |
| 765 | + " page_type='example_index',\n", |
| 766 | + " display_as='statistical', order=10.2)" |
795 | 767 | ]
|
796 | 768 | },
|
797 | 769 | {
|
|
0 commit comments