AnalyseMorphologique/utils/graph2D/mpl_render.py

21 lines
458 B
Python

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:list,y:list):
"""
Render a 2D model using matplotlib
:param values: A list with the values
"""
fig = plt.figure()
ax = fig.add_subplot()
ax.scatter(x,y)
plt.show()