Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to add log to a variable in plotly

import plotly.express as px
df = px.data.gapminder().query("year == 2007")

fig = px.scatter(df, x="gdpPercap", y="lifeExp", hover_name="country", log_x=True)
fig.show()
Source by plotly.com #
 
PREVIOUS NEXT
Tagged: #add #log #variable #plotly
ADD COMMENT
Topic
Name
3+3 =