Skip to content

Commit

Permalink
flip axis labels
Browse files Browse the repository at this point in the history
rasbt committed Aug 11, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 28b1275 commit bf62496
Showing 4 changed files with 62 additions and 189 deletions.
241 changes: 57 additions & 184 deletions ch07/ch07.ipynb

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions ch07/ch07.py
Original file line number Diff line number Diff line change
@@ -652,17 +652,17 @@ def get_params(self, deep=True):

axarr[idx].set_title(tt)

axarr[0].set_ylabel('Alcohol', fontsize=12)
axarr[0].set_ylabel('OD280/OD315 of diluted wines', fontsize=12)

plt.tight_layout()
plt.text(0, -0.2,
s='OD280/OD315 of diluted wines',
s='Alcohol',
ha='center',
va='center',
fontsize=12,
transform=axarr[1].transAxes)

#plt.savefig('images/07_08.png', dpi=300, bbox_inches='tight')
plt.savefig('images/07_08.png', dpi=300, bbox_inches='tight')
plt.show()


@@ -742,11 +742,11 @@ def get_params(self, deep=True):
c='green', marker='o')
axarr[idx].set_title(tt)

axarr[0].set_ylabel('Alcohol', fontsize=12)
axarr[0].set_ylabel('OD280/OD315 of diluted wines', fontsize=12)

plt.tight_layout()
plt.text(0, -0.2,
s='OD280/OD315 of diluted wines',
s='Alcohol',
ha='center',
va='center',
fontsize=12,
Binary file modified ch07/images/07_08.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ch07/images/07_11.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit bf62496

Please sign in to comment.