Labels#

Labels is to draw text labels on the plot.

from marsilea.plotter import Labels
import numpy as np
import matplotlib.pyplot as plt

_, ax = plt.subplots(figsize=(0.5, 6))
data = np.random.randint(0, 10, 30)
labels = Labels(data)
labels.set_side("right")
labels.render(ax)
plot labels

Total running time of the script: (0 minutes 0.063 seconds)

Gallery generated by Sphinx-Gallery