import plotly
import plotly.graph_objs as go
from plotly.subplots import make_subplots
import plotly.graph_objects as go
import plotly.express as px
fig.add_annotation(x=2, y=5,
text="Text annotation with arrow",
showarrow=True,
arrowhead=1)
fig.update_layout({'title':{'text':'Predictor Exps.','font_size':50,'font_color':'Black'}})
fig = make_subplots(rows=1, cols=1)
fig.add_trace(
go.Scatter(
mode='markers',
x=box_center[:,0],
y=box_center[:,1],
opacity=1.,
name=xx,
# color='red',
)
)
fig.update_layout(height=500, width=1000, title_text="BEV-view Scatters")
fig.update(layout_coloraxis_showscale=False)
fig.show()
plotly.offline.init_notebook_mode()
fig.add_trace(
px.imshow(data_gt1).data[0],
row=1, col=1
)
fig = px.scatter(x=datas[:,0], y=datas[:,1],opacity=opacities,color=colors,symbol=colors)