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

Fixing errors when running histogram customization on 04.11-Settings-and-Stylesheets.ipynb #252

Open
wants to merge 1 commit into
base: master
from

Conversation

@cassiasamp
Copy link

@cassiasamp cassiasamp commented Sep 7, 2020

I believe the code has stopped working due to Matplotlib´s version updates. it gives an error when setting the graph´s background and also when hiding top and right ticks.

So, this pull request is:

  • Fixing the graph background color and axes ticks by creating an axes object and then setting it´s set_facecolor to gray.
  • Hiding top and right ticks with ax.tick_params.

The code diffs are:

  1. ax = plt.axes(axisbg='#E6E6E6') to
    ax = plt.axes( ) ax.set_facecolor('#E6E6E6')

  2. ax.xaxis.tick_bottom() ax.yaxis.tick_left() to
    ax.tick_params(top=False) ax.tick_params(right=False)

Creating an axes object and then setting it´s facecolor for a gray background. Hiding top and right ticks with ax.tick_params.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

1 participant
You can’t perform that action at this time.