import numpy as np
from valjean.javert.templates import (PlotTemplate, CurveElements,
                                      SubPlotElements)
bins = [np.array(np.arange(10))]
lcurves = []
for icurve in range(20):
    lcurves.append(CurveElements(values=bins[0]*0.5*(icurve+1),
                                 bins=bins, legend=str(icurve+1),
                                 index=icurve))
sbpe = SubPlotElements(curves=lcurves, axnames=['the x-axis', ''])
pltit = PlotTemplate(subplots=[sbpe])
from valjean.javert.mpl import MplPlot, MplStyle
style = MplStyle(colors=['b', 'g', 'r', 'y', 'm'],
                 mshape=['X', '+', 'D', '1', 'p', 'v', 'o'],
                 mfill=['top', 'full', 'right', 'none', 'bottom',
                        'left', 'none'])
mplplt = MplPlot(pltit , style=style)
fig, _ = mplplt.draw()
