Remove redundant comment

This commit is contained in:
Aurélien Geron
2021-12-08 15:16:42 +13:00
parent 146e6fc062
commit 3552690321
6 changed files with 25 additions and 32 deletions

View File

@@ -201,8 +201,8 @@
"plt.rc('font', size=14)\n",
"plt.rc('axes', labelsize=14, titlesize=14)\n",
"plt.rc('legend', fontsize=14)\n",
"plt.rc('xtick',labelsize=10)\n",
"plt.rc('ytick',labelsize=10)\n",
"plt.rc('xtick', labelsize=10)\n",
"plt.rc('ytick', labelsize=10)\n",
"\n",
"housing.hist(bins=50, figsize=(12, 8))\n",
"save_fig(\"attribute_histogram_plots\") # not in the book\n",
@@ -1196,7 +1196,7 @@
"outputs": [],
"source": [
"# not in the book this code generates Figure 217\n",
"fig, axs = plt.subplots(1, 2, figsize=(8,3), sharey=True)\n",
"fig, axs = plt.subplots(1, 2, figsize=(8, 3), sharey=True)\n",
"housing[\"population\"].hist(ax=axs[0], bins=50)\n",
"housing[\"population\"].apply(np.log).hist(ax=axs[1], bins=50)\n",
"axs[0].set_xlabel(\"Population\")\n",
@@ -1270,7 +1270,7 @@
"ax2 = ax1.twinx() # create a twin axis that shares the same x-axis\n",
"color = \"blue\"\n",
"ax2.plot(ages, rbf1, color=color, label=\"gamma = 0.10\")\n",
"ax2.plot(ages, rbf2, color=color, label=\"gamma = 0.03\", linestyle=\"--\",)\n",
"ax2.plot(ages, rbf2, color=color, label=\"gamma = 0.03\", linestyle=\"--\")\n",
"ax2.tick_params(axis='y', labelcolor=color)\n",
"ax2.set_ylabel(\"Age similarity\", color=color)\n",
"\n",