简体   繁体   中英

Why plotly graph objects doing automatic binning?

Can we avoid auto binning when I want individual entries even if there are large number of x values. Even autobinx=false is not working. I tried setting nbinsx

fig.add_trace(go.Histogram(x=data['col_x'], y=data['col_y'], histfunc='max', nbinsx=0, autobinx=False))

fig.add_trace(go.Histogram(x=data['col_x'], y=data['col_y'], histfunc='max', nbinsx=data.shape[0], autobinx=False))

When you set nbinsx equals to 0, its value by default, you're asking for automatic binning.

If you put another value greater, the chart renders it

seehttps://plotly.com/python/reference/histogram/#histogram-nbinsx

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM