basic ploting for skills

This commit is contained in:
Benjamin Bertrand
2017-03-07 18:52:37 +03:00
parent 0fba0017fe
commit b543e15f59
4 changed files with 30 additions and 3 deletions

View File

@@ -19,7 +19,7 @@ def includegraphics(fig_ax, document_path="./", fig_path="fig/",
"""
try:
fig, ax = fig_ax
except TypeError:
except (TypeError, ValueError):
ax = fig_ax
fig = ax.figure

View File

@@ -18,6 +18,11 @@
\Var{e["quest"] | radar_on("Competence") | includegraphics(document_path=directory, scale=0.6)}
\Var{e["quest"] | radar_on("Domaine") | includegraphics(document_path=directory, scale=0.6)}
\vfill
\hspace{-2cm}
\Var{e["quest"] | pies_skills_level("Competence") | includegraphics(document_path=directory, scale=0.3)}
\vfill
%#\Var{conn_df}
%- if not conn_df.empty

View File

@@ -31,10 +31,12 @@ texenv = jinja2.Environment(
from .filters import includegraphics
texenv.filters['includegraphics'] = includegraphics
from notes_tools.tools.marks_plottings import radar_on, marks_hist, parallele_on
from notes_tools.tools.marks_plottings import *
texenv.filters['radar_on'] = radar_on
texenv.filters['marks_hist'] = marks_hist
texenv.filters['parallele_on'] = parallele_on
texenv.filters['pie_skill_evaluation'] = pie_skill_evaluation
texenv.filters['pies_skills_level'] = pies_skills_level
def feed_template(target, datas, template):
""" Get the template and feed it to create reports