Skip to content

Commit

Permalink
Replace deprecated Pyplot "renderer.M" object (#36)
Browse files Browse the repository at this point in the history
* Replace deprecated Pyplot "renderer.M" object

* Change HISTORY.rst

---------

Co-authored-by: Romain Garby <romain.garby@cavotec.com>
  • Loading branch information
romain-garby and Romain Garby committed Aug 6, 2023
1 parent c8cbaa8 commit f645255
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions HISTORY.rst
Expand Up @@ -2,6 +2,14 @@
History
=======

0.9.2 (TBD)
--------------------------

Bug fixes & improvements
~~~~~~~~~~~~~~~~~~~~~~~~

* Fixed an error related to a deprecated matplotlib.pyplot reference, see `Issue #35 <https://github.com/phausamann/rigid-body-motion/issues/35>`.

0.9.1 (January 13th, 2022)
--------------------------

Expand Down
2 changes: 1 addition & 1 deletion rigid_body_motion/plotting.py
Expand Up @@ -18,7 +18,7 @@ def __init__(self, xs, ys, zs, *args, **kwargs):
def draw(self, renderer):
""" Draw to the given renderer. """
xs3d, ys3d, zs3d = self._verts3d
xs, ys, _ = proj3d.proj_transform(xs3d, ys3d, zs3d, renderer.M)
xs, ys, _ = proj3d.proj_transform(xs3d, ys3d, zs3d, self.axes.M)
self.set_positions((xs[0], ys[0]), (xs[1], ys[1]))
FancyArrowPatch.draw(self, renderer)

Expand Down

0 comments on commit f645255

Please sign in to comment.