#範例4-1:簡單範例,畫出y=[1,3,2]的線性圖(使用速成express方法) import plotly.express as px #fig = px.line(x=數據, y=數據,title=標題) fig = px.line(x=["a","b","c"], y=[1,3,2], title="sample figure") #印出fig的結構 #print(fig) #在jupiter網頁顯示 #fig.show() #開啟一個exp4-1.html顯示圖形 fig.write_html('exp4-1.html', auto_open=True)