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

fix for bug #996 and related issues #1011

Merged
merged 1 commit into from Jul 15, 2012
Merged

fix for bug #996 and related issues #1011

merged 1 commit into from Jul 15, 2012

Conversation

mdehoon
Copy link
Contributor

@mdehoon mdehoon commented Jul 15, 2012

This is a fix for bug #996 (macosx backend broken by #901: QuadMesh fails so colorbar fails) and a few related issues.

efiring added a commit that referenced this pull request Jul 15, 2012
@efiring efiring merged commit 408c529 into matplotlib:master Jul 15, 2012
clippath, clippath_transform = gc.get_clip_path()
if all_transforms:
transforms = [numpy.dot(master_transform, t) for t in all_transforms]
if offset_position=='data':
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know its been merged already, but its worth mentioning that the lines:

if offset_position=='data':
    offset_position = True
else:
   offset_position = False

are exactly equivalent to:

offset_position = (offset_position=='data')

(un-necessary parentheses added for readability)

@pelson
Copy link
Member

pelson commented Jul 16, 2012

Out of interest, is the OSX backend purely graphical or would it be possible to add some unit tests?

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 this pull request may close these issues.

None yet

3 participants