Module 7: Data Visualization and Presentation with NumPy and Matplotlib Flashcards
Use ________ to write papers containing ___________ python code including figures, plots, animations, etc.
jupyter
executable
NumPy is a _______ so must be _______ and is good practice to ________ it.
module
imported
rename
To import and rename a module use format __________________.
import module as name
NumPy works with ________, and type is __________. Can be created from a list[float] using __________ function.
arrays
np.ndarray
np.array()
An np.ndarray _______ contain a mix of values.
can
np.ndarray values are _________ or ________.
componentwise
item by item
Cannot use range for NumPy, instead use function _________ with format __________.
np.linspace
linspace(start, stop, count)
np.linspace by default ___________ endpoint. Can change this using flag endpoint=______
includes
False
NumPy library has _________ of the _______ functions that work on arrays with format ________.
vectorized versions
math
ex. np.pi
If a function doesnt do only vector stuff use ___________ which takes a callable and returns a new callable that works well with np.ndarray
np.vectorize
Use _________ with a pair of equal sized iterables (lists or arrays) to plot lines or points.
plt.plot
Use ___________ to plot points with controllable sizes.
plt.scatter(x, y, s=sizes)
Multiple plots can occur on the same figure by calling _________.
plt functions repeatedly
A new blank plot is started using ___________.
plt.figure()
____________ means programmers can the mathematical operators can be redefined.
operator overloading