I have created a scatter plot in Plotly using a log, log x and y axis. (shown below)
In Matlab my professor was able to add diagonal lines in place of the x and y gridlines as shown below.
Is there a way to achieve this in plotly? I have tried using fig.add_trace() and fig.add_line(), but I cant seem to get either to work.
The bones(without all of the graph customization) for my code is as follows:
fig = px.scatter(
df,
x=‘g’,
y=[‘δLP’,‘Fδ0TLS’],
color=‘Reference’,
symbol=‘SC’,
symbol_sequence= symbols,
labels={‘SC’ : ‘Superconductor’, ‘Reference’ : ‘Source’, ‘Dep.’ : ‘Depostion’},
title=‘Putting Resonator Loss In Context’,
hover_name=‘Reference’,
hover_data=[‘Dep.’,‘SC’,‘Substrate’],
log_x=True, log_y=True)