Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 19e9240

Browse files
committed
bug fix and whats_new
1 parent a9e377c commit 19e9240

2 files changed

Lines changed: 13 additions & 2 deletions

File tree

doc/users/whats_new.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,17 @@ Larry Bradley fixed the :func:`~matplotlib.pyplot.errorbar` method such
153153
that the upper and lower limits (*lolims*, *uplims*, *xlolims*,
154154
*xuplims*) now point in the correct direction.
155155

156+
Simple quiver plot for mplot3d toolkit
157+
``````````````````````````````````````
158+
A team of students in an *Engineering Large Software Systems* course, taught
159+
by Prof. Anya Tafliovich at the University of Toronto, implemented a simple
160+
version of a quiver plot in 3D space for the mplot3d toolkit as one of their
161+
term project. This feature is documented in :func:`~mpl_toolkits.mplot3d.Axes3D.quiver`.
162+
The team members are: Ryan Steve D'Souza, Victor B, xbtsw, Yang Wang, David,
163+
Caradec Bisesar and Vlad Vassilovski.
164+
165+
.. plot:: mpl_examples/quiver3d_demo.py
166+
156167
Date handling
157168
-------------
158169

lib/mpl_toolkits/mplot3d/axes3d.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2486,7 +2486,7 @@ def point_vector_to_line(point, vector, length):
24862486
use a point and vector to generate lines
24872487
"""
24882488
lines = []
2489-
for var in np.linspace(0, length, num=20):
2489+
for var in np.linspace(0, length, num=2):
24902490
lines.append(list(zip(*(point - var * vector))))
24912491
lines = np.array(lines).swapaxes(0, 1)
24922492
return lines.tolist()
@@ -2515,7 +2515,7 @@ def point_vector_to_line(point, vector, length):
25152515
masks = bcast[argi:]
25162516
if masks:
25172517
# combine the masks into one
2518-
mask = reduce(lambda k, k1: k or k1, masks)
2518+
mask = reduce(np.logical_or, masks)
25192519
# put mask on and compress
25202520
input_args = [np.ma.array(k, mask=mask).compressed() for k in input_args]
25212521
else:

0 commit comments

Comments
 (0)