(Currently broken)
from physt.examples import normal_h1, normal_h2, normal_h3, munros
from physt.plotting import set_default_backend
import numpy as np
np.random.seed(42)
set_default_backend("vega")
H = normal_h1()
H.plot.scatter()
H.plot.bar(cumulative=True, xlabel="Other label")
H = normal_h1()
H.plot.line(cumulative=True)
H2 = munros().T
H2.plot(cmap="YellowGreen", show_values=True, height=333, width=333, value_format=".:;oO##############".__getitem__)
Note: Unfortunately, this example does not render properly nor in GitHub renderer or notebook viewer. A live notebook must be running.
H3 = normal_h3()
H3.axis_names = ("first", "second", "third")
H3.plot(show_values=True, show_zero=False, cmap="Blues", density=True, show_colorbar=False, value_format=".1f")