Skip to content

Commit a55cc38

Browse files
tdhopperclaude
andcommitted
Fix seaborn API compatibility for 0.13+
Replace deprecated 'size' parameter with 'height' in seaborn calls: - sns.lmplot(..., size=12) β†’ height=12 - FacetGrid(..., size=10) β†’ height=10 The 'size' parameter was renamed to 'height' in seaborn 0.11+ and removed entirely in 0.13+. πŸ€– Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 9d523fd commit a55cc38

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

β€ŽExamples.ipynbβ€Ž

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@
601601
"outputs": [],
602602
"source": [
603603
"sns.lmplot(x=\"displ\", y=\"hwy\", \n",
604-
" data=mpg, size=12)"
604+
" data=mpg, height=12)"
605605
]
606606
},
607607
{
@@ -775,9 +775,9 @@
775775
"outputs": [],
776776
"source": [
777777
"\"\"\"seaborn.FacetGrid overrides the `rcParams['figure.figsize'] global parameter. \n",
778-
"You have to set the size in the size with `size=` in `FacetGrid`\"\"\"\n",
778+
"You have to set the size in the size with `height=` in `FacetGrid`\"\"\"\n",
779779
"(sns\n",
780-
" .FacetGrid(mpg, hue=\"class\", size=10)\n",
780+
" .FacetGrid(mpg, hue=\"class\", height=10)\n",
781781
" .map(pyplot.scatter, \"displ\", \"hwy\")\n",
782782
" .add_legend()\n",
783783
" .set(\n",
@@ -1740,4 +1740,4 @@
17401740
},
17411741
"nbformat": 4,
17421742
"nbformat_minor": 1
1743-
}
1743+
}

0 commit comments

Comments
Β (0)