本文中介绍的是如何在plotly实现轴刻度的设置。
?...改变起始值
改变坐标轴的起始值,有时候不需要从0开始
import plotly.graph_objects as go
fig = go.Figure(go.Scatter(
x = [1,...通过数组的形式来实现
import plotly.graph_objects as go
go.Figure(go.Scatter(
x = [1, 2, 3, 4, 5, 6, 7, 8,...改变轴刻度属性
import plotly.graph_objects as go
go.Figure(go.Scatter(
x = [1, 2, 3, 4, 5, 6, 7, 8, 9,...坐标轴使用刻度线
import plotly.graph_objects as go
fig = go.Figure(go.Bar(
x = ["apples", "oranges", "pears