Skip to main content

Visualization tool that makes it easier to get scatter plots right.

Project description

quantile_scatter

下の方に日本語の説明があります

Overview

  • Visualization tool that makes it easier to get scatter plots right.
  • The number of uniform data is divided into intervals on the x-axis, and the quantile points for each interval are displayed.

Usage

import quantile_scatter

# dummy data
x_ls = [(4 * random.random() - 2) ** 3
	for _ in range(1000)]
y_ls = [math.sin(x) + random.random() * 0.5
	for x in x_ls]

# plot [quantile_scatter]
quantile_scatter.plot(
	x = x_ls,	# x-list
	y = y_ls,	# y-list
	min_bin_ratio = 1/20,	# Ratio of the smallest group (the number of records in the smallest group as a percentage of the total)
	ile_ls = [0.25, 0.5, 0.75]
)

Advanced Usage

  • Option argument of quantile_scatter.plot() function:
mean = True   # Also draw the "mean"
show = False  # Do not show the graph and only return the data to be displayed (useful for saving the graph or drawing with something other than matplotlib)

概要

  • 散布図を正しく把握しやすくする可視化ツール
  • 均一データ数の横軸区間に分け、各区間の分位点を表示する
  • 説明は執筆中です

使用例

import quantile_scatter

# ダミーデータ
x_ls = [(4 * random.random() - 2) ** 3
	for _ in range(1000)]
y_ls = [math.sin(x) + random.random() * 0.5
	for x in x_ls]

# 分位点散布図の描画 [quantile_scatter]
quantile_scatter.plot(
	x = x_ls,	# 横軸数値リスト
	y = y_ls,	# 縦軸数値リスト
	min_bin_ratio = 1/20,	# 最小グループ割合 (最も小さいグループのレコード数が全体に占める割合)
	ile_ls = [0.25, 0.5, 0.75]	# どこの分位点を出すか
)

発展的な利用方法

quantile_scatter.plot()関数のoption引数

mean = True	# 「平均」も描画する
show = False	# グラフ表示せず、表示対象データのみを返却 (グラフを保存したい場合や、matplotlib以外で描画したい場合などに有効)

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

quantile-scatter-0.3.2.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

quantile_scatter-0.3.2-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file quantile-scatter-0.3.2.tar.gz.

File metadata

  • Download URL: quantile-scatter-0.3.2.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.27.1 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.6.8

File hashes

Hashes for quantile-scatter-0.3.2.tar.gz
Algorithm Hash digest
SHA256 ba8d0f9a0bd527c78f231526491bb387840e67f86e478983b8151f27507b6df7
MD5 df48e349f884e8f35ba0f62fc3aff109
BLAKE2b-256 4544a9e4205f6906b6cd994bff12e8eacbafe4fc6a65f923faa81f77e3b5f633

See more details on using hashes here.

File details

Details for the file quantile_scatter-0.3.2-py3-none-any.whl.

File metadata

  • Download URL: quantile_scatter-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.27.1 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.6.8

File hashes

Hashes for quantile_scatter-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 338ab8dc86787967bcdab74ee73bd1fa00cf1fdfc31a88a6e28b63cb1cfb1630
MD5 9db00d3937247c25c790e04d8b41aaed
BLAKE2b-256 5f1d0630bf01bc72d77de84da84999ae3c8c0b685b17891b90550a40d350d1d4

See more details on using hashes here.

Supported by

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