13 lines
544 B
Python
13 lines
544 B
Python
import vispy.plot as vp
|
|
import numpy as np
|
|
from utils.files.input import ScannedObject
|
|
|
|
|
|
class CrossSection2DCanvas:
|
|
def __init__(self,x_values:list, y_values:list,title:str):
|
|
color = (0.3, 0.5, 0.8)
|
|
self.canvas = vp.Fig(show=False,size=(500, 500))
|
|
line = self.canvas[0,0].plot(np.column_stack((x_values,y_values)), symbol='o', width=0,
|
|
face_color=color + (0.02,), edge_color=None,
|
|
marker_size=8,title=title)
|
|
line.set_gl_state(depth_test=False) |