pyerrorbar: Plot error bars using pyplot

Description Usage Arguments Examples

Description

Plot error bars using pyplot

Usage

1
pyerrorbar(x, y, xerr, yerr, args = NULL, show = FALSE)

Arguments

x

numeric vector containing the x coordinates of points

y

numeric vector containing the y coordinates of points

xerr

A numeric vector of x errors at each data point

yerr

A numeric vector of y errors at each data point

args

character string of further arguments passed to the **kwargs argument of matplotlib.pyplot.scatter

show

bool indicating whether to open a window with the plot

Examples

1
2
3
4
5
6
x = seq(0, 2*pi, length=50)
xerr = rep(0.05, length(x)) #absolute error
yerr = sin(x)*0.1 #relative error
pyerrorbar(x, sin(x), xerr, yerr, args=" fmt='o', ecolor='red' ")
if (interactive())
   pyshow()

mpastell/Rpyplot documentation built on May 23, 2019, 6:27 a.m.