257
257
" ylabel='Normal Probabilities', \n " ,
258
258
" **common_opts)\n " ,
259
259
" ax3.set_ylim(bottom=0.13, top=99.87)\n " ,
260
- " ax3.legend()\n " ,
260
+ " ax3.legend(loc='upper left' )\n " ,
261
261
" fig.tight_layout()\n " ,
262
262
" seaborn.despine()"
263
263
]
306
306
" fig = probscale.probplot(tips['total_bill'], ax=ax3, dist=None,\n " ,
307
307
" ylabel='Normal Probabilities', **common_opts)\n " ,
308
308
" \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 " ,
311
311
" seaborn.despine()\n " ,
312
312
" fig.tight_layout()"
313
313
]
599
599
},
600
600
"outputs" : [],
601
601
"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
+ " )"
605
608
]
606
609
},
607
610
{
612
615
},
613
616
"outputs" : [],
614
617
"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
+ " )"
618
624
]
619
625
},
620
626
{
625
631
},
626
632
"outputs" : [],
627
633
"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
+ " )"
632
640
]
633
641
}
634
642
],
653
661
},
654
662
"nbformat" : 4 ,
655
663
"nbformat_minor" : 0
656
- }
664
+ }
0 commit comments