Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

plot confidence interval matplotlib

from matplotlib import pyplot as plt
import numpy as np

#some example data
x = np.linspace(0.1, 9.9, 20)
y = 3.0 * x
#some confidence interval
ci = 1.96 * np.std(y)/np.sqrt(len(x))

fig, ax = plt.subplots()
ax.plot(x,y)
ax.fill_between(x, (y-ci), (y+ci), color='b', alpha=.1)
Comment

python plot confidence interval

sns.lineplot(data=fmri, x="timepoint", y="signal", hue="event")
Comment

PREVIOUS NEXT
Code Example
Python :: while loop countdown python 
Python :: download kaggle dataset in colab 
Python :: python datetime last day of month 
Python :: how to save array python 
Python :: pythom datetime now 
Python :: python code to find the length of string in a list 
Python :: python convert hex to binary 
Python :: Python find max in list of dict by value 
Python :: python change cmd title 
Python :: nb_occurence in list python 
Python :: multivariate outlier detection python 
Python :: time delta python 
Python :: download pdf using python 
Python :: how to convert a pandas series from int to float in python 
Python :: django queryset get all distinct 
Python :: django create model from dictionary 
Python :: Update label text after pressing a button in Tkinter 
Python :: Python pandas drop any row 
Python :: python check folder exist 
Python :: how to edit variables with functions in python 
Python :: from matrix to array python 
Python :: pandas change every row to df 
Python :: python split string regular expression 
Python :: Get all columns with particular name in string 
Python :: how to get a row from a dataframe in python 
Python :: add rectangle matplotlib 
Python :: how to launch an application using python 
Python :: import serial python 
Python :: zlib decompress python 
Python :: python requests cookies 
ADD CONTENT
Topic
Content
Source link
Name
4+1 =