tableXY#
- class tableXY[source]#
Bases:
object
Describes a scatter plot (x, y)
Methods
- rtype:
This function seems sometimes to not work without any reason WARNING
- rtype:
tableXY
- rtype:
- rtype:
- rtype:
guess = [amp,cen,width,offset]
- rtype:
- rtype:
- rtype:
- rtype:
- rtype:
- rtype:
- rtype:
For the mask give either the first and last index in a list [a,b] or the mask boolean
- rtype:
- rtype:
- rtype:
- rtype:
- rtype:
- rtype:
- rtype:
- rtype:
- rtype:
Switches, in place, the x and y coordinates
List of members of tableXY
- __init__(x: Optional[Union[_SupportsArray[dtype], _NestedSequence[_SupportsArray[dtype]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]], y: Union[_SupportsArray[dtype], _NestedSequence[_SupportsArray[dtype]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]], /) None [source]#
- __init__(x: Optional[Union[_SupportsArray[dtype], _NestedSequence[_SupportsArray[dtype]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]], y: Union[_SupportsArray[dtype], _NestedSequence[_SupportsArray[dtype]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]], yerr: Union[_SupportsArray[dtype], _NestedSequence[_SupportsArray[dtype]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]], /) None
- __init__(x: Optional[Union[_SupportsArray[dtype], _NestedSequence[_SupportsArray[dtype]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]], y: Union[_SupportsArray[dtype], _NestedSequence[_SupportsArray[dtype]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]], xerr: Union[_SupportsArray[dtype], _NestedSequence[_SupportsArray[dtype]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]], yerr: Union[_SupportsArray[dtype], _NestedSequence[_SupportsArray[dtype]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]], /) None
Creates a tableXY
The constructor takes additional error vectors.
If no error vector is provided, the y error is estimated using the median absolute deviation
If one error vector is provided, it is attributed to the y error
If two error vectors are provided, they correspond to the x and y errors respectively
- Parameters:
x (
Optional
[Union
[_SupportsArray
[dtype
],_NestedSequence
[_SupportsArray
[dtype
]],bool
,int
,float
,complex
,str
,bytes
,_NestedSequence
[Union
[bool
,int
,float
,complex
,str
,bytes
]]]]) – X values, can be omitted by providing None (will be replaced by a 0 to (n-1) range instead)y (
Union
[_SupportsArray
[dtype
],_NestedSequence
[_SupportsArray
[dtype
]],bool
,int
,float
,complex
,str
,bytes
,_NestedSequence
[Union
[bool
,int
,float
,complex
,str
,bytes
]]]) – Y values, must be providederrs (
Union
[_SupportsArray
[dtype
],_NestedSequence
[_SupportsArray
[dtype
]],bool
,int
,float
,complex
,str
,bytes
,_NestedSequence
[Union
[bool
,int
,float
,complex
,str
,bytes
]]]) – See description
- Raises:
ArgumentError – If more that two error vectors are provided
- myscatter(num=True, liste=None, factor=30, color='b', alpha=1, x_offset=0, y_offset=0, color_text='k', modulo=None)[source]#
- Return type:
- 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:
- plot(Show=False, color='k', label='', ls='', offset=0, mask=None, capsize=3, fmt='o', markersize=6, zorder=1, species=None, alpha=1.0, modulo=None, modulo_norm=False, cmap='viridis', new=False, phase_mod=0, periodic=False, frac=1.0, yerr=True)[source]#
For the mask give either the first and last index in a list [a,b] or the mask boolean
- Return type:
- fit_sinus(Draw=False, d=0, guess=[0, 1, 0, 0, 0, 0], p_max=500, report=False, c='r')[source]#
- Return type:
- fit_gaussian(guess=None, Plot=True, color='r', free_offset=True)[source]#
guess = [amp,cen,width,offset]
- Return type: