""" Created on Fri Apr 21 2023 @name: mpl_render.py @desc: A module to render a 2D data using matplotlib, thoses functions cant be integrated into pyqt gui yet @auth: Djalim Simaila @e-mail: djalim.simaila@inrae.fr """ import matplotlib.pyplot as plt def render2D(values:list): """ Render a 2D model using matplotlib :param values: A list with the values """ fig = plt.figure() ax = fig.add_subplot() ax.plot(values) plt.show() def cross_section(x_values:list, y_values:list): """ Render a 2D cross section using matplotlib :param x: A list with the x values :param y: A list with the y values """ fig = plt.figure() ax = fig.add_subplot() ax.scatter(x_values,y_values) plt.show()