Échelle du journal du tableau de bord
import plotly.graph_objects as go
import numpy as np
from plotly.offline import download_plotlyjs, init_notebook_mode, iplot
init_notebook_mode(connected=True)
fig1 = go.Figure()
fig1.add_trace(go.Scatter(
x=[0, 1, 2, 3, 4, 5, 6, 7],
y=[8, 7, 6, 5, 4, 3, 2, 1]
))
fig1.update_layout(title_text="Switching between linear and log yaxis ",
updatemenus=[
dict(
buttons=[
dict(label="Linear",
method="relayout",
args=[{"yaxis.type": "linear"}]),
dict(label="Log",
method="relayout",
args=[{"yaxis.type": "log"}]),
])]
);
iplot(fig1)
Combative Crocodile