Scatter Plot -- Python Plotly (part 1)

preview_player
Показать описание
Using Plotly, we'll explore everything we can do with the Scatter Plot,
all in Python. Links below:

The Code:

Plotly Express Scatter Plot Documentation:

Symbols for Markers:

Plotly Color Scales:
Рекомендации по теме
Комментарии
Автор

by far the best explaination of plotly scatter that i came across, the facet_row and col really a life saver

TheSoonAnn
Автор

Both this and the part two are very good and helpful you show everything which allows me to know how they work and apply them the way I like keep it up your doing great.

martincastner
Автор

Not able to get colors in my scatter plot .

def update_graph(xaxis_name, yaxis_name):
return {
'data': [go.Scatter(
x=df[xaxis_name],
y=df[yaxis_name],
text=df['Category'],
color=df['Region'],
color_discrete_sequence =['red', 'green', 'blue', 'black'],
opacity=0.6,
mode='markers',
marker={
'size': 15,
'opacity': 0.5,
'line': {'width': 0.5, 'color': 'white'},

}
)],
'layout': go.Layout(
xaxis={'title': xaxis_name.title()},
yaxis={'title': yaxis_name.title()},
margin={'l': 40, 'b': 40, 't': 10, 'r': 0},
hovermode='closest'
)
}

anuvratshukla
Автор

If I need 3 kind of symbols: one is a basic and 2 for errors, while each error type is located in different column of the data frame, how can I handle this?

Автор

Hi.. Producing the plotly graph for large data set seems very slow..is there anyway to overcome that

PeterCazorla
visit shbcf.ru