Skip to content

FIX: argument order in RendereAgg.restore_region - #4951

Merged
WeatherGod merged 1 commit into
matplotlib:masterfrom
tacaswell:fix_transpose_in_agg
Aug 18, 2015
Merged

FIX: argument order in RendereAgg.restore_region#4951
WeatherGod merged 1 commit into
matplotlib:masterfrom
tacaswell:fix_transpose_in_agg

Conversation

@tacaswell

Copy link
Copy Markdown
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