Skip to main content

Easy and fast way of creating scatter plots.

Project description

scatterd

Python PyPI Version License

  • Easy and fast manner of creating scatter plots.

Contents

Installation

  • Install scatterd from PyPI (recommended). scatterd is compatible with Python 3.6+ and runs on Linux, MacOS X and Windows.
  • It is distributed under the MIT license.

Requirements

pip install numpy matplotlib colourmap

Quick Start

pip install scatterd
  • Alternatively, install scatterd from the GitHub source:
git clone https://github.com/erdogant/scatterd.git
cd scatterd
python setup.py install

Import scatterd package

from scatterd import scatterd

Example:

# Import some example data
from sklearn import datasets
iris = datasets.load_iris()
X = iris.data[:, :2]  # we only take the first two features.
y = iris.target

# Make simple scatterplot
scatterd(X[:,0], X[:,1])
# Color based on labels
scatterd(X[:,0], X[:,1], label=y, s=100)
# Set labels
scatterd(X[:,0], X[:,1], label=y, s=100, norm=True, cmap='Set2', xlabel='xlabel', ylabel='ylabel', title='Title')
# Change sizes
s=np.random.randint(10,200,len(y))
scatterd(X[:,0], X[:,1], label=y, s=s, cmap='Set2', xlabel='xlabel', ylabel='ylabel', title='Title', fontsize=25, figsize=(15,10))
# Change figure size
scatterd(X[:,0], X[:,1], figsize=(25,15))

Citation

Please cite scatterd in your publications if this is useful for your research. Here is an example BibTeX entry:

@misc{erdogant2019scatterd,
  title={scatterd},
  author={Erdogan Taskesen},
  year={2019},
  howpublished={\url{https://github.com/erdogant/scatterd}},
}

Maintainers

Contribute

  • Contributions are welcome.

Licence

See LICENSE for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

scatterd-0.1.0.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

scatterd-0.1.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file scatterd-0.1.0.tar.gz.

File metadata

  • Download URL: scatterd-0.1.0.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.7.5

File hashes

Hashes for scatterd-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2b0539a3f08a7f0c66fc01c03b81953b87e9022292701e41b45225c83c560891
MD5 12062d7b89ac325ce0f291049cb5c90e
BLAKE2b-256 12bf0d39af426a8197942318e7cc679afef255a97260b38f06e529ed7be83e2f

See more details on using hashes here.

File details

Details for the file scatterd-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: scatterd-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.7.5

File hashes

Hashes for scatterd-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d7e60e7813ee6d24884645c187b81d20e6563e96c1e1897e8b229c3f4785d538
MD5 8b9a1d90c1cf03bc638af7e7302ced73
BLAKE2b-256 b959b1594a775f21dd870fd9c1be421e4a20705db6552780daa5ef3275f54b8e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page