matplotlib.artist.Artist.set#
- Artist.set(*, agg_filter=<UNSET>, alpha=<UNSET>, animated=<UNSET>, clip_box=<UNSET>, clip_on=<UNSET>, clip_path=<UNSET>, gid=<UNSET>, in_layout=<UNSET>, label=<UNSET>, mouseover=<UNSET>, path_effects=<UNSET>, picker=<UNSET>, rasterized=<UNSET>, sketch_params=<UNSET>, snap=<UNSET>, transform=<UNSET>, url=<UNSET>, visible=<UNSET>, zorder=<UNSET>)[source]#
Set multiple properties at once.
Supported properties are
Property
Description
a filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array and two offsets from the bottom left corner of the image
scalar or None
bool
bool
Patch or (Path, Transform) or None
str
bool
object
bool
None or bool or float or callable
bool
(scale: float, length: float, randomness: float)
bool or None
str
bool
float
Examples using matplotlib.artist.Artist.set
#
Creating a timeline with lines, dates, and text
Contour plot of irregularly spaced data
Creating multiple subplots using plt.subplots
Adding a colorbar to inset axes
Projecting contour profiles onto a graph
Projecting filled contour onto a graph
Generate polygons to fill under 3D line graph
3D voxel / volumetric plot with rgb colors
Connection styles for annotations
Arranging multiple Axes in a Figure