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: argument order in RendereAgg.restore_region #4951

Merged
merged 1 commit into from Aug 18, 2015

Conversation

tacaswell
Copy link
Member

In ba40160 Remove use of PyCXX in core C++ extensions the order
of the arguments into the restore_region that takes off sets
was swapped. The order should be (x1, x2, y1, y2, offset_x, offset_y)
which was the order of restore_region2 (a function removed as part
of the refactor in favor of simple dispatch in the wrapper code +
c++ function overloading) and the order of the arguments passed
out of the python layer, but at the c++ layer they were being mapped
to (offset_x, offset_y, x1, x2, y1, y2) which was causing a region
not of interest to be restored.

closes #4947

In ba40160 Remove use of PyCXX in core C++ extensions the order
of the arguments into the `restore_region` that takes off sets
was swapped.  The order should be (x1, x2, y1, y2, offset_x, offset_y)
which was the order of `restore_region2` (a function removed as part
of the refactor in favor of simple dispatch in the wrapper code +
c++ function overloading) and the order of the arguments passed
out of the python layer, but at the c++ layer they were being mapped
to (offset_x, offset_y, x1, x2, y1, y2) which was causing a region
not of interest to be restored.

closes matplotlib#4947
@tacaswell tacaswell added this to the next point release milestone Aug 18, 2015
WeatherGod added a commit that referenced this pull request Aug 18, 2015
FIX: argument order in RendereAgg.restore_region
@WeatherGod WeatherGod merged commit 4fd00b0 into matplotlib:master Aug 18, 2015
@tacaswell tacaswell deleted the fix_transpose_in_agg branch August 18, 2015 13:19
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.

animation blitting is no longer working
2 participants