basic ploting for skills
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user