How can I remove the white margin/border around the figure?
import pandas as pd
import numpy as np
import plotly.express as px
df = pd.DataFrame(np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]]),
columns=['a', 'b', 'c'])
fig = px.line(df, x=df.index, y=['a', 'b', 'c'], template='plotly_dark')
fig.show()
Tried without the templates, as well as removing margins, padding and backgrounds via
fig.update_layout(
margin=dict(l=0,r=0,b=0,t=0),
paper_bgcolor="Black"
)