tueplots.markers module

tueplots.markers module#

Marker styles and sizes (tueplots.markers).

Provides predefined marker shapes and sizes for scatter plots and line charts.

Examples

>>> import matplotlib.pyplot as plt
>>> from tueplots import markers
>>>
>>> # Select a style bundle
>>> style = markers.with_edge()
>>>
>>> # Apply the style to matplotlib
>>> plt.rcParams.update(style)
>>>
>>> # Create a plot
>>> fig, ax = plt.subplots()
>>> ax.plot([0, 1, 2], [2, 1, 3], "o-")
>>> ax.set_xlabel("$x$ label")
>>> ax.set_ylabel("$y$ label")
>>> plt.show()

(Source code, png, hires.png, pdf)

../_images/tueplots-markers-1.png
tueplots.markers.inverted(*, facecolor='white', edgewidth=0.75)[source]#

The edgecolor is set to the linecolor, the facecolor is changed.

tueplots.markers.with_edge(*, edgecolor='black', edgewidth=0.5)[source]#

The facecolor is set to the linecolor, the edgecolor is changed.