mirror of
https://github.com/ArthurDanjou/handson-ml3.git
synced 2026-01-14 20:19:29 +01:00
Fix figure 2-13 x-axis values and legend not showing
This commit is contained in:
@@ -551,7 +551,9 @@
|
||||
"housing.plot(kind=\"scatter\", x=\"longitude\", y=\"latitude\", alpha=0.4,\n",
|
||||
" s=housing[\"population\"]/100, label=\"population\", figsize=(10,7),\n",
|
||||
" c=\"median_house_value\", cmap=plt.get_cmap(\"jet\"), colorbar=True,\n",
|
||||
")\n",
|
||||
" sharex=False) # sharex=False fixes a bug (temporary solution)\n",
|
||||
" # See: https://github.com/pandas-dev/pandas/issues/10611\n",
|
||||
" # Thanks to Wilmer Arellano for pointing it out.\n",
|
||||
"plt.legend()\n",
|
||||
"save_fig(\"housing_prices_scatterplot\")"
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user