Skip to content
Snippets Groups Projects

added visplot and matplotlib cross section

Merged SIMAILA DJALIM requested to merge 2D_graphs into main
2 files
+ 32
0
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -8,4 +8,14 @@ def render2D(values:list):
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()
\ No newline at end of file
Loading