This python library is meant to augment the plotly and dash visualization libraries.
It is designed to facilitate rapid and beautiful data visualizations for research scientists and data scientists.
Its advantages over naive plotly are:
* One-line commands to make plots
* Integrated scatistical testing above plots
* Expanded plot types (such as confusion amtrices, ROC plots)
* more 'Matlab-like' interface for those making the Matlab --> python transition
* Easily make full multi-figure dashboards in a single line using Dash
## Requirements and installation
Required packages:
* numpy
* scipy
* plotly
* colorlover
* dash
* dash_core_components
* dash_html_components
To install, simply use `pip install plotly-scientific-plots`
**NOTE**: to get latest version install directly from git, which is more commonly updated. Use the following:
`pip install git+https://github.com/rsandler00/plotly-scientific-plots.git`
To import use `import plotly_scientific_plots as psp`
## Examples and Usage
Plotly's key strength is its ability to do interactive visualizations.
For scientists, this allows novel ways of exploring data with mouse clicks and hovers. **To see a full list of plotly-scientific-tools examples and their descriptions, go through the `examples.ipynb`
in nbviewer by clicking [here][1]**
Below, are a limited set of examples to give the feel of how `psp` works:
#### Sample plots
##### Two dataset histograms:
```python
psp.plot2Hists(data_source_1, data_source_2, names=['Data 1','Data 2'],
normHist=True, title='Comparison of 2 Data Sources',
KS=True, MW=True, T=True)
```
Notice that the statistics box only appears when mouse hovers on the databar of the given color.

##### Scatter + Contour Plot:
```python
psp.scatterHistoPlot(data_source_1, data_source_3, title='Contour of x_var & y_var',
xlbl='x_var label', ylbl='y_var label')
```

##### Multiple Dataset Correlations + Stats:
```python
psp.corrPlot([data_source_1, data_source_11, data_source_12], [data_source_3, data_source_31,
data_source_32], names=['datasetA', 'datasetB', 'datasetC'],addCorr=True,
addCorrLine=True, title='Correlation of x_var & y_var', xlbl='x_var label',
ylbl='y_var label')
```

##### Polar Plot
```python
psp.plotPolar([polar1], numbins=20, title='Polar Distribution')
```

#### Dashboards
To make multi-figure dashboards simply collect all desired figures in a nested list. Each outer list will correspond
to a column in the dashboard, and each figure within each outer list will be a row in the column. The pass that list
to `psp.startDashboard`. A flask-based web-server will start showing the figures in the browser at the provided port
(default port=8050). For example:
```python
plot1 = psp.plotHist(..., plot=False)
plot2 = psp.plot2Hists(..., plot=False)
plot3 = psp.corrPlot(..., plot=False)
plot4 = psp.plotPolar(..., plot=False)
dash_plots = [
[plot1, plot2],
[plot3, plot4]
]
psp.startDashboard(dash_plots, port=8052)
```
An example dashboard appears below:

[1]: https://nbviewer.jupyter.org/github/rsandler00/plotly-scientific-plots/blob/master/examples.ipynb
Metadata
Release files for plotly-scientific-plots 0.1.0.6
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 |
|---|---|---|---|---|
| plotly-scientific-plots-0.1.0.6.tar.gz | 26.6 kB | Without provenance | Details for plotly-scientific-plots-0.1.0.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| plotly_scientific_plots-0.1.0.6-py3-none-any.whl | Python 3 | none | any | Details for plotly_scientific_plots-0.1.0.6-py3-none-any.whl |
Total release size: 88.1 kB
Release files / plotly-scientific-plots-0.1.0.6.tar.gz
| Download URL | plotly-scientific-plots-0.1.0.6.tar.gz |
|---|---|
| Size | 26.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cc00d2ca8e90430ac513e1447dbef86d2dfe8a5367e5e10eaaabaca6b89d0b7c
|
|
BLAKE2b-256 checksum How to use checksums |
8f4056a0c71bd530670c937ea5fddf11317ab5a7bb1e9a1e7901bcec9b2ddadf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.3
|
Release files / plotly_scientific_plots-0.1.0.6-py3-none-any.whl
| Download URL | plotly_scientific_plots-0.1.0.6-py3-none-any.whl |
|---|---|
| Size | 61.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a2bcc1f2a2f506c688a6e2e6176b66fa3c5aee1c18df77baa9e1c9cc4ba1aefe
|
|
BLAKE2b-256 checksum How to use checksums |
87f282b13cce5508ca5b54c23cd3b080d50a2fd2fd0d6fbf68cacc4fe73f7df0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.3
|
Security for plotly-scientific-plots 0.1.0.6
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.