axisbg deprecated in Matplotlib

Issue #31 new
Former user created an issue

Fixed by changing to "facecolor" like:

cm = pylab.get_cmap(cm_name)
bottom_col = [    cm._segmentdata['red'][0][1],
                  cm._segmentdata['green'][0][1],
                  cm._segmentdata['blue'][0][1]   ]
axmatrix = fig.add_axes(    [0.0,0.0,1.0,1.0],
                            **facecolor**=bottom_col)
if any([c < 0.95 for c in bottom_col]):
    axmatrix.spines['right'].set_color('none')
    axmatrix.spines['left'].set_color('none')
    axmatrix.spines['top'].set_color('none')
    axmatrix.spines['bottom'].set_color('none')

Comments (0)

  1. Log in to comment