Skip to main content

A tool for creating raincloud plots

Project description

DrawTool

This is a drawing tool.

云雨图

特点:

  1. 数据分布:展示每个特征的数据分布;
  2. 中心趋势: 结合箱线图和散点图,展示数据分布的趋势;
  3. 异常值: 显示数据分布的异常值;
  4. 特征比较: 适合比较多个特征之间的数据分布。

Usage

import pandas as pd 
import numpy as np 
from drawbox import cloudrain

np.random.seed(42) 
data = pd.DataFrame({ 
    'Group A': np.random.normal(0, 1, 100), 
    'Group B': np.random.normal(2, 1.5, 100), 
    'Group C': np.random.normal(-1, 0.5, 100), 
    'Group D': np.random.normal(1, 2, 100) 
})
categories = ['Group A', 'Group B', 'Group C', 'Group D']

custom_colors = ['#FF6B6B', '#4ECDC4', '#45B7D1', '#96CEB4'] 
cloudrain(
    data, 
    categories, 
    colors=custom_colors, 
    figsize=(12, 8), 
    save_path='raincloud_plot.png'
)

License

MIT

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

drawtool-1.0.0.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

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

DrawTool-1.0.0-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file drawtool-1.0.0.tar.gz.

File metadata

  • Download URL: drawtool-1.0.0.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.5

File hashes

Hashes for drawtool-1.0.0.tar.gz
Algorithm Hash digest
SHA256 9e2630bdefffbeb9d71c6f777faf13e2a1f139adb475492f1b2a05da39e7efe8
MD5 3817054572fca12669463384e515681a
BLAKE2b-256 b447f35cc60321564626719359951a3d4f6869ceab452b1322289eb1035cc98c

See more details on using hashes here.

File details

Details for the file DrawTool-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: DrawTool-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.5

File hashes

Hashes for DrawTool-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 be942a84fae28b919f5f69a55a00743504a9765c52f5043ad9953bf1ebbb8650
MD5 5205a818f9d3f75b38d7ea36646ea49a
BLAKE2b-256 b27de94a21d67e0da41e4a84b5561cd07ece11cbc99e4ba6d4f52bb9f9185a2c

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