I have a problem with plotly I want to make a scatter plot I want to make this same graph but with other circle shape for ind1, tringale for ind2 and the color is according to the type
here is my my code code for your help:
data = {'ind1':[4,8,12,13,22,23],'ind2':[1,5,9,60,90,30],'type':['reg1','reg2','reg1','reg1','reg2','reg1']}
df = pd.DataFrame(data=data)
fig = px.scatter(df, x=df['ind1'],y= df['ind2'],color='type')
fig.show()
source https://stackoverflow.com/questions/71904007/plotly-express-scatter-plot-python
Comments
Post a Comment