Skip to content

Conversation

cassiasamp
Copy link

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

Labels

None yet

1 participant