Skip to content

Commit 0f0a1a3

Browse files
committed
nits
1 parent 2c0b775 commit 0f0a1a3

File tree

1 file changed

+17
-13
lines changed

1 file changed

+17
-13
lines changed

Examples.ipynb

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1032,12 +1032,14 @@
10321032
},
10331033
"outputs": [],
10341034
"source": [
1035-
"fig = figure_factory.create_facet_grid(df=mpg,\n",
1036-
" x ='displ',\n",
1037-
" y = 'cty',\n",
1038-
" facet_col = 'cyl',\n",
1039-
" facet_row = 'drv')\n",
1040-
"Image(fig.to_image(format=\"png\", width=900, height=900, scale=2))"
1035+
"fig = figure_factory.create_facet_grid(\n",
1036+
" df=mpg, \n",
1037+
" x=\"displ\", \n",
1038+
" y=\"cty\", \n",
1039+
" facet_col=\"cyl\", \n",
1040+
" facet_row=\"drv\"\n",
1041+
")\n",
1042+
"Image(fig.to_image(format=\"png\", width=900, height=900))"
10411043
]
10421044
},
10431045
{
@@ -1414,13 +1416,15 @@
14141416
"outputs": [],
14151417
"source": [
14161418
"fig = figure_factory.create_distplot(\n",
1417-
" [diamonds['depth'][diamonds['cut'] == c].values for c in diamonds.cut.unique()], \n",
1418-
" diamonds.cut.unique(), \n",
1419-
" show_hist=False,\n",
1420-
" show_rug=False\n",
1421-
" )\n",
1422-
"for d in fig['data']:\n",
1423-
" d.update({'fill' : 'tozeroy'})\n",
1419+
" [diamonds[\"depth\"][diamonds[\"cut\"] == c].values \n",
1420+
" for c in diamonds.cut.unique()\n",
1421+
" ],\n",
1422+
" diamonds.cut.unique(),\n",
1423+
" show_hist=False,\n",
1424+
" show_rug=False,\n",
1425+
")\n",
1426+
"for d in fig[\"data\"]:\n",
1427+
" d.update({\"fill\": \"tozeroy\"})\n",
14241428
"Image(fig.to_image(format=\"png\", width=900, height=900))"
14251429
]
14261430
},

0 commit comments

Comments
 (0)