Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

plotly add hline dashed

import plotly.express as px

df = px.data.iris()
fig = px.scatter(df, x="petal_length", y="petal_width")
fig.add_vline(x=2.5, line_width=3, line_dash="dash", line_color="green")
fig.add_hrect(y0=0.9, y1=2.6, line_width=0, fillcolor="red", opacity=0.2)
fig.show()
Comment

PREVIOUS NEXT
Code Example
Python :: python clipboard to image 
Python :: api xml response to json python 
Python :: seaborn pairplot set title 
Python :: how to maker loops coun t in second in pytho 
Python :: upgrade package python 
Python :: AssertionError: Relational field must provide a `queryset` argument, override `get_queryset`, or set read_only=`True` 
Python :: center buttons tkinter 
Python :: django.db.backends.mysql install 
Python :: f string curency format 
Python :: scikit learn r2 score 
Python :: generate matrix python 
Python :: select python version ubuntu 
Python :: selenium scroll element into view inside overflow python 
Python :: python minute from datetime 
Python :: text to ascii art python 
Python :: get columns based on dtype pandas 
Python :: how to change font sizetkniter 
Python :: Extract categorical data features 
Python :: how to click in selenium 
Python :: calculate mape python 
Python :: downgrade pip 
Python :: python pygame key input 
Python :: pass argument to a py file 
Python :: how to use random in python 
Python :: django secret key 
Python :: django sum get 0 if none 
Python :: No default language could be detected for django app 
Python :: django annotate concat string 
Python :: random matrix python 
Python :: pandas split column into multiple columns by delimiter 
ADD CONTENT
Topic
Content
Source link
Name
2+6 =