This is my package for plotting approximations
Installation:
pip install plot_yar
Description:
plot_yar.plot_approx(X_data, Y_data, input_function, plot_name='plot_name', plot_title='plot_title',
x_label='x_label', y_label='y_label', Y_absolute_sigma = 0, scientific_view = True, print_cross = True,
save_as_csv = False, to_latex = False, save_fig=True):
Parameters:
-
X_data: array_like.
X-axis data -
Y_data: array_like.
Y-axis data -
input_function: string.
Approximation function.
You could use template functions from dict or your own funcitons:
input_function = 'linear'
fun_examples = {'linear':'a0*x+a1', 'poly_2':'a0*x**2+a1*x+a2', 'poly_3':'a0*x**3+a1*x**2+a2*x+a3',
'exp':'e^(a0*x+a1)+a2', 'ln':'ln(a0*x+a1)+a2'}
-
plot_name: string.
Name of your plot (picture) -
plot_title: string.
Your plot title -
y_label: string.
Y-axis label -
x_label: string.
X-axis label -
Y_absolute_sigma: float or array_like.
Absolute Y-axis data error -
scientific_view: bool. (default True)
If True numbers will be written as $6.7 E + 01$ instead $670$ -
print_cross: bool. (default True)
Print crosses error or not? -
to_latex: bool. (default False)
If True save table of estimated coeffs to latex table, you could use this package:
\usepackage{booktabs}
-
save_as_csv: bool. (default False)
If True save table of estimated coeffs to csv table -
save_fig: bool. (default True)
If True create a folder "pictures" and save plot to .png
Example:
- in:
from plot_yar import plot_approx
plot_approx([[1.1,2.5,3.2],[2,3,4]],[[2,3,5],[5,6,8]], 'linear')
- out:
Coeffs table 0:
coeffs coeffs_values standard error relative se, %
0 a_0 1.327E+00 2.811E-01 2.119E+01
1 a_1 3.265E-01 1.659E+00 5.080E+02
Standart_error_Y_0 = 4.629E-01
Coeffs table 1:
coeffs coeffs_values standard error relative se, %
0 a_0 1.500E+00 8.333E-02 5.556E+00
1 a_1 1.833E+00 8.056E-01 4.394E+01
Standart_error_Y_1 = 2.357E-01
Metadata
Release files for plot-yar 0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| plot_yar-0.4.tar.gz | 5.7 kB | Without provenance | Details for plot_yar-0.4.tar.gz |
Release files / plot_yar-0.4.tar.gz
| Download URL | plot_yar-0.4.tar.gz |
|---|---|
| Size | 5.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f29147fcbebf4909d55342b2b9017a27d6d80e91d6f9667eed94fe7a8063bb8e
|
|
BLAKE2b-256 checksum How to use checksums |
10c2683619bb6029ade868a2f279f790351756474705436ed4bfcef7b0179097
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6
|
Security for plot-yar 0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.