Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

plotly scatter markers size

import plotly.express as px

df = px.data.iris()
fig = px.scatter(df, x="sepal_width", y="sepal_length", color="species")

fig.update_traces(marker=dict(size=12,
                              line=dict(width=2,
                                        color='DarkSlateGrey')),
                  selector=dict(mode='markers'))
fig.show()
Comment

PREVIOUS NEXT
Code Example
Python :: python random phone number 
Python :: opencv imshow resize 
Python :: Appending pandas dataframes generated in a for loop 
Python :: average out all rows pandas 
Python :: how to color print in python 
Python :: intersection of dataframes based on column 
Python :: dict godot 
Python :: random element python 
Python :: pyspark select without column 
Python :: positive lookahead regex python 
Python :: wait() in python tkinter 
Python :: drop index in multiindex pandas 
Python :: python transpose list 
Python :: django get current date 
Python :: jupyter notebook check memory usage 
Python :: add path python sys 
Python :: pandas subtract integer from column 
Python :: longest substring without repeating characters python 
Python :: python check if string is number 
Python :: numpy ones 
Python :: arabic in python 
Python :: create pdf from images python 
Python :: what is a good python version today 
Python :: python for loop backwards 
Python :: pygame hide cursor 
Python :: corona 
Python :: load static files in django 
Python :: force two decimal places python 
Python :: open text file in python 
Python :: python: check type and ifno of a data frame 
ADD CONTENT
Topic
Content
Source link
Name
3+6 =