I have a script for which I have created a GUI with PyQT5. As of now, I am able to plot my data with plot.ly, with the snippet of the code at the end of my script that follows:
data = [trace1, trace1_dots, trace1_reliability,trace2, trace2_dots, trace2_reliability]
layout = {
'xaxis': {
'range': [lower_limit,upper_limit]
},
'shapes': [
# Line Horizontal
{
'type': 'line',
'x0': 0,
'y0': 1_current_rank,
'x1': upper_limit,
'y1': 1_current_rank,
'opacity': 0.5,
'line': {
'color': 'rgb(0,179,134)',
'width': 4,
'dash': 'dash',
},
},
# Line Diagonal
{
'type': 'line',
'x0': 0,
'y0': 2_current_rank,
'x1': upper_limit,
'y1': 2_current_rank,
'opacity': 0.5,
'line': {
'color': 'rgb(255,191,0)',
'width': 4,
'dash': 'dash',
}
}
]
}
plotly.offline.plot({
"data": data,
"layout": layout
}, auto_open=True)
if __name__ == '__main__':
app = QApplication(sys.argv)
mainWin = MainWindow()
mainWin.show()
sys.exit(app.exec_())
However, I would like to use Dash instead but cannot wrap my head around how it could be done, mainly because âappâ is already used by PyQt5 and when I try to use âapp1â for example, it says it is not defined when running the script.
I am new to Dash and tried to look around but couldnât find a solution to my problem.