plotly.express.bar参数图解

一. 前言

知微见著

更多内容见: https://nbviewer.org/github/Kyouichirou/NoteBook/blob/main/Plotly/Plotly柱状图详解.ipynb

通过对柱状图(bar)解析plot的绘图机制和各种参数使用, 以便于理解其整体的作业逻辑.

和pandas的read_csv类似, 大部分的参数, 执行逻辑在其他对象上也是类似的.

plotly.express.bar(
    data_frame=None, 
    x=None, 
    y=None, 
    color=None, 
    pattern_shape=None, 
    facet_row=None, 
    facet_col=None, 
    facet_col_wrap=0, 
    facet_row_spacing=None, 
    facet_col_spacing=None, 
    hover_name=None, 
    hover_data=None, 
    custom_data=None, 
    text=None, base=None, 
    error_x=None, 
    error_x_minus=None, 
    error_y=None, 
    error_y_minus=None, 
    animation_frame=None, 
    animation_group=None, 
    category_orders=None, 
    labels=None, 
    color_discrete_sequence=None, 
    color_discrete_map=None, 
    color_continuous_scale=None, 
    pattern_shape_sequence=None, 
    pattern_shape_map=None, 
    range_color=None, 
    color_continuous_midpoint=None, 
    opacity=None, 
    orientation=None, 
    barmode='relative', 
    log_x=False, 
    log_y=False, 
    range_x=None, 
    range_y=None, 
    text_auto=False, 
    title=None, 
    template=None, 
    width=None, 
    height=None) → plotly.graph_objects._figure.Figure

二. 图解

pp0fDNd.png

2.1 思维导图

ppBVxXR.png