Skip to content

Commit

Permalink
Merge e1cf7f5 into 5353d5e
Browse files Browse the repository at this point in the history
  • Loading branch information
prisae committed Jan 22, 2022
2 parents 5353d5e + e1cf7f5 commit 16f5229
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 12 deletions.
8 changes: 6 additions & 2 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,12 @@ v2.0.x
latest
------

- DOC: Expanded note on FFTLog.
- MAINT: Use scipy through conda in CI.
- Documentation: Expanded note on FFTLog.

- Maintenance:

- Use scipy through conda in CI.
- Fix ``do_3d_projection`` for ``matplotlib>3.5.0``.


v2.1.3: Random noise example
Expand Down
12 changes: 6 additions & 6 deletions examples/educational/coordinate_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,19 +101,19 @@
###############################################################################

class Arrow3D(FancyArrowPatch):
"""https://stackoverflow.com/a/29188796"""
"""https://github.com/matplotlib/matplotlib/issues/21688"""

def __init__(self, xs, ys, zs):
FancyArrowPatch.__init__(
self, (0, 0), (0, 0), mutation_scale=20, lw=1.5,
super().__init__(
(0, 0), (0, 0), mutation_scale=20, lw=1.5,
arrowstyle='-|>', color='.2', zorder=100)
self._verts3d = xs, ys, zs

def draw(self, renderer):
def do_3d_projection(self, renderer=None):
xs3d, ys3d, zs3d = self._verts3d
xs, ys, _ = proj3d.proj_transform(xs3d, ys3d, zs3d, self.axes.M)
xs, ys, zs = proj3d.proj_transform(xs3d, ys3d, zs3d, self.axes.M)
self.set_positions((xs[0], ys[0]), (xs[1], ys[1]))
FancyArrowPatch.draw(self, renderer)
return np.min(zs)


###############################################################################
Expand Down
7 changes: 3 additions & 4 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,14 @@
# SOFT DEPENDENCIES
scooby
# https://github.com/matplotlib/matplotlib/issues/21688
# Keep an eye on the issue to see if it will be resolved!
matplotlib != 3.5.0, != 3.5.1
matplotlib != 3.5.0

# SETUP RELATED
setuptools_scm

# FOR DOCUMENTATION
sphinx > 3
numpydoc >= 0.9
sphinx
numpydoc
sphinx_panels
sphinx_numfig
sphinx_gallery
Expand Down

0 comments on commit 16f5229

Please sign in to comment.