FIX: colorbar check for constrained layout #10594
import matplotlib.pyplot as plt import numpy as np gx = np.linspace(-5, 5, 10) img = np.hypot(gx, gx[:, None]) fig = plt.figure() ax = fig.add_axes([0, 0, 1, 1]) mesh = ax.pcolormesh(gx, gx, img) plt.colorbar(mesh) plt.show()
failed with an attribute error. This is the most straightforward way of checking for that.
Not sure if this should have a test or not. Seems that maybe pyplot-created colorbars are not tested if this one got through the test suite...
Feb 25, 2018
8 checks passed
ci/circleci: docs-python35 Your tests passed on CircleCI!Details
ci/circleci: docs-python36 Your tests passed on CircleCI!Details
codecov/patch 100% of diff hit (target 50%)Details
codecov/project/library 66.99% (target 50%)Details
codecov/project/tests 98.39% (+<.01%) compared to 72770e6Details
continuous-integration/appveyor/pr AppVeyor build succeededDetails
continuous-integration/travis-ci/pr The Travis CI build passedDetails
lgtm analysis: Python No alert changesDetails
referenced this pull request
Feb 25, 2018
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews.