import numpy as np
from valjean.javert.templates import (PlotTemplate, CurveElements,
                                      SubPlotElements)
bins = (np.array(np.arange(10)),)
lcurves = [CurveElements(values=bins[0]*0.5*(icurve+1), bins=bins,
                         legend=str(icurve+1), index=icurve)
           for icurve in range(20)]
pltit = PlotTemplate(subplots=[SubPlotElements(
    curves=lcurves, axnames=('the x-axis', ''), ptype='1D')])
from valjean.javert.mpl import MplPlot
mplplt = MplPlot(pltit)
fig, _ = mplplt.draw()
