Hi! Thank you for your response. This is the code I used:
import numpy as np
import plotly.graph_objects as go
if __name__ == '__main__':
np.random.seed(1)
N = 100
x = np.random.rand(N)
y = np.random.rand(N)
colors = np.random.rand(N)
sz = np.random.rand(N) * 30
fig = go.Figure()
fig.add_trace(go.Scatter(
x=x,
y=y,
mode="markers",
marker=go.scatter.Marker(
size=sz,
color=colors,
opacity=0.6,
colorscale="Viridis"
)
)
)
fig.write_image("fig1.png")