Mein Plot soll im dunklen Thema daher kommen. Leider habe ich immer einen ca. 6px breiten Rand.
Code: Alles auswählen
import plotly.express as px
fig = px.bar(data_diagramm, x='Date_Time' , y='DurationSeconds' ,barmode='stack', color='ProjektName', template='none')
fig.update_xaxes(dtick="M1", tickformat="%b\n%Y",ticklabelmode="period")
fig.update_layout(plot_bgcolor='rgb(27,29,35)',
paper_bgcolor='rgb(27,29,35)',
font_color='rgb(180,180,180)',
title = "Auswertung",
xaxis_title = "Date",
yaxis_title = "Zeit [h]",
legend_title = "Projekte"
)
self.webView.setHtml(plotly.offline.plot(fig, output_type='div', include_plotlyjs='cdn', auto_open=False))
self.webView.setVisible(True)