scorner.py
Produces a similar plot to corner, which shows the projections of data in a multi-dimensional space. This uses seaborn to produce a more adjustable, 'publication ready' plot e.g. through variable axis thickness, the use of colour maps, line styles, choice of contours/density maps and order of plotting in relation to scatter plot. Also included is an option to save a hard copy in the required format.
See src/demo.ipynb for examples
Parameters
----------
data : obj
The data in the form of an array or dataframe.
cols: list
If data input as array this specifies the column names of the
dataframe (required by seaborn).
true_values: list
The mean values used to generate the data. Default is not to
show.
true_style : list
Line style, width and colour if showing true_values
test_run : bool
If True a test using test_no rows of the dataframe will be
run. Since sns.kdeplot can take a while to run, this is
advisable until the plot appearance is satisfactory. Default
is to run the whole dataset.
test_no : int
The number of rows which test_run will use. Default is 500
bins : int
The number of histogram bins
cmap : str
The colour map of the density plot. Default is 'rainbow'
https://matplotlib.org/stable/users/explain/colors/colormaps.html
fs : float
Specifies the font size, which scales with the height of the plot
xlabel_off : bool
If True this removes the x-axis labels. If False the dataframe column
names are used
ylabel_off : bool
If True this removes the y-axis labels. If False the dataframe column
names are used
height : float
The height of the plot according to seaborn. The default is 1.5
aspect : float
The aspect of the plot according to seaborn
aw : float
Axis widths, the default is 2
aw : float
Axis padding, the default is 7
point_s : float
Point size in scatter plots
point_c:
Point colour in scatter plots
lrot : float
Axis label rotation angle, default is 0
min_space : int
Number of minor ticks per major tick interval. Default is 5
dens : bol
If True this will plot a density maps using the specified colour map.
Default is True
dens_alpha : float
The transparency of the density map. Default is fully opaque (alpha = 1)
con : bol
If True this will show a contour map. Default is no contour map
con_levels : int
The number of contours
con_thresh : float
The lowest contour value
show_stats : bool
Show the mean and standard deviation in the histogram. Default is False
stats_in : bool
If True (default) the above legend is shown within the histograms. If
False it is show above the histograms
leg_scale: float
If show_stats=True, the size of the legend font in relation to the tick font
leg_dps : int
If show_stats=True, the number of decimal places to show these to
leg_alpha : float
Transparency of legend box if stats_in = True. Default is 0.5
leg_fc : str
Colour of legend box if stats_in = True, Default is 'w'
tlp : float
The plt.tight_layout pad value, the default is 0.3
hc : bool
hc = True saves a hard copy. The default is False
plot_form : str
The format of the hard copy, the default is 'png'
plot_name : str
The name of the hard copy, the default is 'scorner'
Metadata
Release files for scorner 0.2.0
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 |
|---|---|---|---|---|
| scorner-0.2.0.tar.gz | 7.3 kB | Without provenance | Details for scorner-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| scorner-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for scorner-0.2.0-py3-none-any.whl |
Total release size: 21.2 kB
Release files / scorner-0.2.0.tar.gz
| Download URL | scorner-0.2.0.tar.gz |
|---|---|
| Size | 7.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
53d0bc36a2ec1ca7371b1049bceec71ecfeeea0e4ebe1b26bc3be55228704097
|
|
BLAKE2b-256 checksum How to use checksums |
18752d3eeb11de0a2b7a4f151e866fd8e050d0a0c91c42f035aa08af789f1ce9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.4 CPython/3.9.15 Darwin/24.6.0
|
Release files / scorner-0.2.0-py3-none-any.whl
| Download URL | scorner-0.2.0-py3-none-any.whl |
|---|---|
| Size | 13.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d096c50b0d2354839254be2484fd07462ae836bff7a9bdce364d61996c7f19ab
|
|
BLAKE2b-256 checksum How to use checksums |
2e9aad31c3481d00dc420a785a8180a3782c1daf25ec5054931998849ffce1ef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.4 CPython/3.9.15 Darwin/24.6.0
|
Security for scorner 0.2.0
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.