Scatter plot from plotly(px)
Plotly scatter plot plotly.express.scatter()
please check : [https://plotly.com/python-api-reference/generated/plotly.express.scatter.html] for more info
Input
Output
Configuration
x
str: column name for x-axis' values
string
y
str: column name for y-axis' values
string
color
str: column name to color the graph figures
string
title
Title of the graph
string
y_axis_name
set the y axis name
string
x_axis_name
set the x axis name
string
template
Plotly template to use
string
animation_frame
str: Values from this column are used to assign marks to animation frames.
string
animation_group
str: Values from this column are used to provide object-constancy across animation frames: rows with matching `animation_group`s will be treated as if they describe the same object in each frame.
string
log_x
the x-axis is log-scaled in cartesian coordinates.
bool
log_y
the y-axis is log-scaled in cartesian coordinates.
bool
range_x
If provided, overrides auto-scaling on the x-axis in cartesian coordinates.
string
range_y
If provided, overrides auto-scaling on the y-axis in cartesian coordinates.
string
width
int: The figure width in pixels.
int
height
int The figure height in pixels
int
label_columns
one column per line, and same line for the text
list
label_text
text for labels, size should match 'colot to label'
list
facet_row
str: Values from this column are used to assign marks to facetted subplots in the vertical direction.
string
facet_col
Values from this column are used to assign marks to facetted subplots in the horizontal direction.
string
facet_col_wrap
int: Maximum number of facet columns.
int
facet_row_spacing
float: Spacing between facet rows, in paper units. Default is 0.03 or 0.0.7 when facet_col_wrap is used.
float
facet_col_spacing
float: Spacing between facet columns, in paper units. Default is 0.03 or 0.0.7 when facet_col_wrap is used.
float
hover_data
list str: Values from these columns appear in the hover tooltip.
list
hover_name
Values from this column appear in bold in the hover tooltip.
string
orientation
Orientation of the box plot ('v' for vertical, 'h' for horizontal)
string
v
size
Values from this column are used to assign mark sizes
string
opacity
float: opacity of the marks
float
size_max
int: maximum size of the marks
int
20
marginal_x
If set, a horizontal subplot is drawn above the main plot, visualizing the x-distribution.
string
marginal_y
If set, a vertical subplot is drawn to the right of the main plot, visualizing the y-distribution.
string
symbol
str: Values from this column are used to assign symbols to marks.
string
render_mode
Controls the browser API used to draw marks.
string
error_x
str: Values from this column are used to size x-axis error bars
string
error_x_minus
str: Values from this column or array_like are used to size x-axis error bars in the negative direction.
string
error_y
str: Values from this column are used to size y-axis error bars
string
error_y_minus
str: Values from this column or array_like are used to size x-axis error bars in the negative direction.
string
text
str: Values from this column or array_like appear in the figure as text labels.
string
trendline
Add a trendline to the plot, see the plotlydoc : plotly.express.trendline_functions
string
trendline_color_override
all trendlines will be drawn in this color rather than in the same color as the traces from which they draw their inputs.
string
trendline_scope
If 'trace', then one trendline is drawn per trace (i.e. per color, symbol, facet, animation frame etc) and if 'overall' then one trendline is computed for the entire dataset, and replicated across all facets.
string
trace
custom_data
str: Values from this column are displayed on the graph
string