Skip to content

Commit e74b42d

Browse files
committed
minor tweaks to notebooks
1 parent f5352b2 commit e74b42d

File tree

2 files changed

+25
-17
lines changed

2 files changed

+25
-17
lines changed

docs/tutorial/closer_look_at_viz.ipynb

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@
257257
" ylabel='Normal Probabilities', \n",
258258
" **common_opts)\n",
259259
"ax3.set_ylim(bottom=0.13, top=99.87)\n",
260-
"ax3.legend()\n",
260+
"ax3.legend(loc='upper left')\n",
261261
"fig.tight_layout()\n",
262262
"seaborn.despine()"
263263
]
@@ -306,8 +306,8 @@
306306
"fig = probscale.probplot(tips['total_bill'], ax=ax3, dist=None,\n",
307307
" ylabel='Normal Probabilities', **common_opts)\n",
308308
"\n",
309-
"ax.legend(loc='lower right')\n",
310-
"ax.set_ylim(bottom=0.1, top=99.9)\n",
309+
"ax3.legend(loc='lower right')\n",
310+
"ax3.set_ylim(bottom=0.1, top=99.9)\n",
311311
"seaborn.despine()\n",
312312
"fig.tight_layout()"
313313
]
@@ -599,9 +599,12 @@
599599
},
600600
"outputs": [],
601601
"source": [
602-
"fg = seaborn.FacetGrid(data=iris, hue='species', aspect=2)\n",
603-
"fg.map(probscale.probplot, 'sepal_length')\n",
604-
"fg.set_axis_labels(x_var='Probability', y_var='Sepal Length')"
602+
"fg = (\n",
603+
" seaborn.FacetGrid(data=iris, hue='species', aspect=2)\n",
604+
" .map(probscale.probplot, 'sepal_length')\n",
605+
" .set_axis_labels(x_var='Probability', y_var='Sepal Length')\n",
606+
" .add_legend()\n",
607+
")"
605608
]
606609
},
607610
{
@@ -612,9 +615,12 @@
612615
},
613616
"outputs": [],
614617
"source": [
615-
"fg = seaborn.FacetGrid(data=iris, hue='species', aspect=2)\n",
616-
"fg.map(probscale.probplot, 'petal_length', plottype='qq', probax='y')\n",
617-
"fg.set_ylabels('Quantiles')"
618+
"fg = (\n",
619+
" seaborn.FacetGrid(data=iris, hue='species', aspect=2)\n",
620+
" .map(probscale.probplot, 'petal_length', plottype='qq', probax='y')\n",
621+
" .set_ylabels('Quantiles')\n",
622+
" .add_legend()\n",
623+
")"
618624
]
619625
},
620626
{
@@ -625,10 +631,12 @@
625631
},
626632
"outputs": [],
627633
"source": [
628-
"fg = seaborn.FacetGrid(data=tips, hue='sex', row='smoker', col='time', \n",
629-
" aspect=1.5, margin_titles=True)\n",
630-
"fg.map(probscale.probplot, 'total_bill', probax='y', bestfit=True)\n",
631-
"fg.set_ylabels('Probability')"
634+
"fg = (\n",
635+
" seaborn.FacetGrid(data=tips, hue='sex', row='smoker', col='time', aspect=1.5, margin_titles=True)\n",
636+
" .map(probscale.probplot, 'total_bill', probax='y', bestfit=True)\n",
637+
" .set_ylabels('Probability')\n",
638+
" .add_legend()\n",
639+
")"
632640
]
633641
}
634642
],
@@ -653,4 +661,4 @@
653661
},
654662
"nbformat": 4,
655663
"nbformat_minor": 0
656-
}
664+
}

docs/tutorial/getting_started.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -296,9 +296,9 @@
296296
"probscale.probplot(\n",
297297
" new_sample,\n",
298298
" ax=ax,\n",
299-
" probax='y', # flip the plot\n",
300-
" datascale='log', # scale of the non-probability axis\n",
301-
" bestfit=True, # draw a best-fit line\n",
299+
" probax='y', # flip the plot\n",
300+
" datascale='log', # scale of the non-probability axis\n",
301+
" bestfit=True, # draw a best-fit line\n",
302302
" xlabel='Lognormal Values', # labels and markers...\n",
303303
" ylabel='Non-exceedance probability',\n",
304304
" scatter_kws=dict(marker='d', zorder=2, mew=1.25, mec='w', markersize=10),\n",

0 commit comments

Comments
 (0)