Note
Go to the end to download the full example code. or to run this example in your browser via Binder
Here’s a small example showcasing how to plot bars on a circular strip.
import numpy as np
from circhic._base import CircHiCFigure
First, simulate some data
lengths = np.array([3500])
random_state = np.random.RandomState(42)
data = random_state.randn(100)
Then, create the circhic figure and plot the bars
circhicfig = CircHiCFigure(lengths)
_, ax = circhicfig.plot_bars(
data,
inner_radius=0.5,
color="0")
ax.set_title("Plotting bars", fontweight="bold")
Text(0.5, 1.0493697602799101, 'Plotting bars')
Total running time of the script: (0 minutes 0.211 seconds)