Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

line plotly with shaded area

import plotly.graph_objects as go

fig = go.Figure()
fig.add_trace(go.Scatter(x=[1, 2, 3, 4],
                         y=[0, 2, 3, 5],
                         fill='tozeroy')
             ) # fill down to xaxis
fig.update_layout(title='<b>Title</b>',
                  xaxis_title='<b>x</b>',
                  yaxis_title='<b>y</b>')
fig.show()
Comment

PREVIOUS NEXT
Code Example
Python :: installing required libraries in conda environment 
Python :: how to return number in binary python 
Python :: display multiple dataframe as table jupyter notebook 
Python :: sort dictionary by key 
Python :: python lambda function if else 
Python :: check for string in list python 
Python :: how to add array in python 
Python :: python get last element of array 
Python :: pandas lambda applu 
Python :: python all permutations of a string 
Python :: django x-frame-options allowall 
Python :: python for web development 
Python :: cv2.imwrite 
Python :: increment decrement operator in python 
Python :: url_for 
Python :: what is a class in python 
Python :: python index method 
Python :: import this 
Python :: how to get mac in python 
Python :: pandas create sample dataframe 
Python :: input function python 
Python :: how to plot box plot python 
Python :: pygame surface 
Python :: f string add 0 before python 
Python :: selenium save page as image 
Python :: comment lister les fichiers un dossier avec python 
Python :: tkinter filedialog how to show more than one filetype 
Python :: python log file 
Python :: python call function in class 
Python :: mean along third dimension array python 
ADD CONTENT
Topic
Content
Source link
Name
4+8 =