StackBar#

StackBar is for plotting stacked bar chart.

from marsilea.plotter import StackBar
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt

_, ax = plt.subplots()
data = pd.DataFrame(data=np.random.randint(0, 10, (10, 10)))
StackBar(data).render(ax)
plot stack bar

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

Gallery generated by Sphinx-Gallery