In [1]:
%matplotlib inline
In [2]:
from catplot.ep_components.ep_canvas import EPCanvas
from catplot.ep_components.ep_lines import ElementaryLine
In [3]:
canvas = EPCanvas()
In [4]:
line = ElementaryLine([0.0, 1.2, 0.8], shadow_depth=6, shadow_color="#595959") # 添加阴影深度和颜色
In [5]:
canvas.add_line(line)
canvas.draw()
In [6]:
canvas.figure
Out[6]: