Skip to content

Commit 813f0b3

Browse files
committed
Switch ncol to ncols for legend().
1 parent c89839e commit 813f0b3

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

notebooks/3-data_visualization.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2268,7 +2268,7 @@
22682268
{
22692269
"data": {
22702270
"text/plain": [
2271-
"<matplotlib.legend.Legend at 0x104f4ae50>"
2271+
"<matplotlib.legend.Legend at 0x13819ebd0>"
22722272
]
22732273
},
22742274
"execution_count": 5,
@@ -3679,7 +3679,7 @@
36793679
"ax.yaxis.set_major_formatter(ticker.EngFormatter())\n",
36803680
"\n",
36813681
"# customize the legend\n",
3682-
"ax.legend(title='', loc='center', bbox_to_anchor=(0.5, -0.3), ncol=3, frameon=False)"
3682+
"ax.legend(title='', loc='center', bbox_to_anchor=(0.5, -0.3), ncols=3, frameon=False)"
36833683
]
36843684
},
36853685
{
@@ -5404,7 +5404,7 @@
54045404
{
54055405
"data": {
54065406
"text/plain": [
5407-
"<seaborn.axisgrid.FacetGrid at 0x1478c5910>"
5407+
"<seaborn.axisgrid.FacetGrid at 0x138338e90>"
54085408
]
54095409
},
54105410
"execution_count": 11,

slides/3-data_visualization.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2300,7 +2300,7 @@
23002300
{
23012301
"data": {
23022302
"text/plain": [
2303-
"<matplotlib.legend.Legend at 0x12895ddd0>"
2303+
"<matplotlib.legend.Legend at 0x11f349c90>"
23042304
]
23052305
},
23062306
"execution_count": 5,
@@ -3711,7 +3711,7 @@
37113711
"ax.yaxis.set_major_formatter(ticker.EngFormatter())\n",
37123712
"\n",
37133713
"# customize the legend\n",
3714-
"ax.legend(title='', loc='center', bbox_to_anchor=(0.5, -0.3), ncol=3, frameon=False)"
3714+
"ax.legend(title='', loc='center', bbox_to_anchor=(0.5, -0.3), ncols=3, frameon=False)"
37153715
]
37163716
},
37173717
{
@@ -6564,7 +6564,7 @@
65646564
{
65656565
"data": {
65666566
"text/plain": [
6567-
"<seaborn.axisgrid.FacetGrid at 0x1606ada90>"
6567+
"<seaborn.axisgrid.FacetGrid at 0x16aa00650>"
65686568
]
65696569
},
65706570
"execution_count": 11,

0 commit comments

Comments
 (0)