Is there a way to decrease the white space between Sat
and Sun
on the x-axis?
(Data here https://www.dropbox.com/s/iht1ogn9il0t42m/tips_1.xlsx?dl=0)
import plotly.express as px
import pandas as pd
df = pd.read_excel('/Users/Jakob/Documents/python_notebooks/data/tips_1.xlsx')
fig = px.scatter(df, x='day', y='total_bill', color="day")
# Customization of y-axis
#fig.update_yaxes(range=[0, 10])
# Figure layout
fig.update_layout(template='simple_white', title='Main Title', yaxis_title='Distance moved',
legend=dict(title='', itemclick='toggle', itemsizing='constant', traceorder='normal',
bgcolor='rgba(0,0,0,0)', x=1),
xaxis=dict(title='This is a title', showticklabels=True, ticks='outside', type='category')
)
fig.show()