Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ch07: fix the position of the title in the decision-region plot #74

Closed
vmirly opened this issue Nov 17, 2019 · 2 comments · Fixed by #75
Closed

Ch07: fix the position of the title in the decision-region plot #74

vmirly opened this issue Nov 17, 2019 · 2 comments · Fixed by #75

Comments

@vmirly
Copy link
Collaborator

vmirly commented Nov 17, 2019

Original:

plt.text(10.2, -0.5,
         s='OD280/OD315 of diluted wines',
         ha='center', va='center', fontsize=12)

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

image

Change:

plt.tight_layout()

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

image

@vmirly
Copy link
Collaborator Author

vmirly commented Nov 17, 2019

And same change here:

Original:

plt.text(10.2, -0.5,
         s='OD280/OD315 of diluted wines',
         ha='center', va='center', fontsize=12)

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

image

Change:

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

image

@rasbt
Copy link
Owner

rasbt commented Nov 17, 2019

ok thanks, i can make that change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants