Plotting with plotly backendΒΆ
[1]:
# Basic imports
from physt.examples import normal_h2, normal_h1
from physt.plotting import plotly
import physt.plotting
import numpy as np
np.random.seed(42)
# Set that we want plotly
physt.plotting.set_default_backend("plotly")
[2]:
# Define the 1-D example
H = normal_h1()
The default plot is bar
.
[3]:
H.plot() # Same as H.plot.bar()