I am working with a ternary diagram and I would like to reverse the scales of the axis. My data is being plotted correctly, but I need the scales to basically be reversed. The arrows are the direction I want to reverse them.
px.defaults.template = "plotly_white"
px.defaults.color_continuous_scale = px.colors.sequential.Blackbody
# px.defaults.width = 1000
px.defaults.height = 900
print("Ternary Plot has been chosen to disoplay data")
color = columns.get(colorbar_selection)
fig = px.scatter_ternary(df,
a=df['x_element'],
b=df['ni'],
c=df['ti'],
hover_name=df.title,
color=df[color]
)
fig.layout.template="plotly_white"
fig.update_layout(
font=dict(
family="Courier New, monospace",
size=24,
)
)
fig.update_ternaries(aaxis_title=dict(text=chosen_elements), baxis_title=dict(text='Ni'), caxis_title=dict(text='Ti'), )
fig.update_traces(marker=dict(size=12,
line=dict(width=1,
color='DarkSlateGrey')),
selector=dict(mode='markers'))