tableXY

tableXY

class tableXY[source]

Bases: object

Describes a scatter plot (x, y)

Methods

center_symmetrise

rtype

None

clip

This function seems sometimes to not work without any reason WARNING

copy

rtype

tableXY

diff

rtype

None

find_max

rtype

None

find_min

rtype

None

fit_gaussian

guess = [amp,cen,width,offset]

fit_poly

rtype

None

fit_sinus

rtype

None

interpolate

rtype

None

null

rtype

None

order

rtype

None

plot

For the mask give either the first and last index in a list [a,b] or the mask boolean

replace_nan

rtype

None

rm_outliers

rtype

None

rms_w

rtype

None

rolling

rtype

None

smooth

rtype

None

stack

substract_polyfit

rtype

None

supress_mask

rtype

None

supress_nan

rtype

None

switch

List of members of tableXY

__init__(x, y, *yerr)[source]
rms_w()[source]
Return type

None

copy()[source]
Return type

tableXY

switch()[source]
stack()[source]
order(order=None)[source]
Return type

None

null()[source]
Return type

None

clip(min=[None, None], max=[None, None], replace=True, invers=False)[source]

This function seems sometimes to not work without any reason WARNING

Return type

None

supress_nan()[source]
Return type

None

replace_nan()[source]
Return type

None

supress_mask(mask)[source]
Return type

None

center_symmetrise(center, replace=False, Plot=False)[source]
Return type

None

plot(Show=False, color='k', label='', ls='', offset=0, mask=None, capsize=3, fmt='o', markersize=6, zorder=1, species=None, alpha=1, modulo=None, modulo_norm=False, cmap='viridis', new=False, phase_mod=0, periodic=False, frac=1, yerr=True)[source]

For the mask give either the first and last index in a list [a,b] or the mask boolean

Return type

None

find_max(vicinity=3)[source]
Return type

None

find_min(vicinity=3)[source]
Return type

None

smooth(box_pts=5, shape='rectangular', replace=True)[source]
Return type

None

diff(replace=True)[source]
Return type

None

substract_polyfit(deg, replace=False, Draw=False)[source]
Return type

None

rolling(window=1, quantile=None, median=True, iq=True)[source]
Return type

None

fit_poly(Draw=False, d=2, color='r', cov=True)[source]
Return type

None

fit_sinus(Draw=False, d=0, guess=[0, 1, 0, 0, 0, 0], p_max=500, report=False, c='r')[source]
Return type

None

rm_outliers(who='Y', m=2, kind='inter', bin_length=0, replace=True)[source]
Return type

None

fit_gaussian(guess=None, Plot=True, color='r', free_offset=True)[source]

guess = [amp,cen,width,offset]

Return type

None

interpolate(new_grid='auto', method='cubic', replace=True, interpolate_x=True, fill_value='extrapolate', scale='lin')[source]
Return type

None