Quantcast
Channel: 🎛️ Dash - Plotly Community Forum
Viewing all articles
Browse latest Browse all 6271

Plotly Express Dictionary As Parameters?

$
0
0

Say for example I have generated a plot using Plotly Express like so:
fig= px.box(plot_df, x="name_1", y="name_2", title="Hello Plotly")

Is there a way I can pass in something like a dictionary or other data structure in place of these parameters? For example, could I have something like:

my_dictionary = {
    "x" : "name_1",
    "y" : "name_2",
    "title" : "Hello Plotly"
}

fig = px.box(plot_df, my_dictionary)

Any help would be appreciated!

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 6271

Latest Images

Trending Articles



Latest Images