Closed Mephistofer closed 5 months ago
谢谢你!我后面集中查一次,请继续批评指正。
On Thu, Dec 14, 2023 at 8:04 AM Mephistofer @.***> wrote:
Book_1_Ch_10,代码5,对应Bk1_Ch10_06.ipynb
fig = px.line(x=x, y=[y_sin, y_cos], labels={'y': 'f(x)', 'x': 'x'})
应该修改为:
fig = px.line(x=x, y=[y_sin, y_cos], labels={'value': 'f(x)', 'x': 'x'})
不确定是不是因为y列表赋值,导致默认labelname为value 同理:代码6,对应Bk1_Ch10_07.ipynb
fig = px.line(df, x='x', y=['Sine', 'Cosine'], labels={'value': 'f(x)', 'X': 'x'})
应该修改为:
fig = px.line(df, x='x', y=['Sine', 'Cosine'], labels={'value': 'f(x)', 'x': 'x'})
大写X修改为小写x
— Reply to this email directly, view it on GitHub https://github.com/Visualize-ML/Book1_Python-For-Beginners/issues/127, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZHC6V5BT5A4KGZHM5F42DTYJL2OLAVCNFSM6AAAAABAU2A4DCVHI2DSMVQWIX3LMV43ASLTON2WKOZSGA2DCNRWGAYDEMY . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Book_1_Ch_10,代码5,对应Bk1_Ch10_06.ipynb
应该修改为:
不确定是不是因为y列表赋值,导致默认labelname为value 同理:代码6,对应Bk1_Ch10_07.ipynb
应该修改为:
大写X修改为小写x