给Energy Profile 添加阴影


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()


创建Energy Profile Line


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]: