Skip to main content

paper-figure-tools

Code to generate figures and tables for publication, including thread diagrams and LaTeX tables including such thread diagrams.

Installation

  1. clone this repo git clone https://github.com/SherrillGroup/paper-figure-tools.git
  2. Install locally in developer mode pip install -e paper-figure-tools

Usage

Thread tables

import cdsg_plot

cdsg_plot.qcdb_plot.flat(
    data,
    color='blue',
    view=False,
    title=f"{i}_total_error",
    xlimit=20.0,
)
merge_dats = [
    {
        "show": "a",
        "db": "HSG",
        "sys": "1",
        "data": [0.3508, 0.1234, 0.0364, 0.0731, 0.0388],
    },
    {
        "show": "b",
        "db": "HSG",
        "sys": "3",
        "data": [0.2036, -0.0736, -0.1650, -0.1380, -0.1806],
    },
    {
        "show": "c",
        "db": "S22",
        "sys": "14",
        "data": [None, -3.2144, None, None, None],
    },
    {
        "show": "d",
        "db": "S22",
        "sys": "15",
        "data": [-1.5090, -2.5263, -2.9452, -2.8633, -3.1059],
    },
    {
        "show": "e",
        "db": "S22",
        "sys": "22",
        "data": [0.3046, -0.2632, -0.5070, -0.4925, -0.6359],
    },
]

threads(
    merge_dats,
    labels=["d", "t", "dt", "q", "tq"],
    color="sapt",
    title="MP2-CPa[]z",
    mae=[0.25, 0.5, 0.5, 0.3, 1.0],
    mape=[20.1, 25, 15, 5.5, 3.6],
)

Gallery

cdsg_plot

aka (C. David Sherrill Group Plotting Tools)

import cdsg_plot
import pandas as pd
import numpy as np

df = pd.DataFrame(
    {
        "MP2": 5 * np.random.randn(1000) + 0.5,
        "HF": 5 * np.random.randn(1000) - 0.5,
        "MP2.5": 5 * np.random.randn(1000) + 0.5,
    }
)
# Only specify columns you want to plot
vals = {
    "MP2 label": "MP2",
    "HF label": "HF",
}
cdsg_plot.error_statistics.violin_plot(df, vals, ylim=[-20, 35], output_filename="example.png")

Metadata

Release files for cdsg-tools 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cdsg-tools 0.0.4
File Size Uploaded Provenance Actions
cdsg_tools-0.0.4.tar.gz 41.9 kB Without provenance Details for cdsg_tools-0.0.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cdsg-tools 0.0.4
File Interpreter ABI Platform Actions
cdsg_tools-0.0.4-py3-none-any.whl Python 3 none any Details for cdsg_tools-0.0.4-py3-none-any.whl

Total release size: 85.8 kB

Release files / cdsg_tools-0.0.4.tar.gz

Download URL cdsg_tools-0.0.4.tar.gz
Size 41.9 kB
Tags Source
SHA-256 checksum
How to use checksums
7458bac7c461ff64dd3cb94b75126a2a60cb63075c6bcdd18c941d1cab437ce5
BLAKE2b-256 checksum
How to use checksums
e6953467d892c8bc70ea3392e292a3e3a39798b7dcdc60cad490263a2ded764c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.2

Release files / cdsg_tools-0.0.4-py3-none-any.whl

Download URL cdsg_tools-0.0.4-py3-none-any.whl
Size 43.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3ee5f2f5576691ea54c0515775915ebc82f9d60cd3efbd672ee4cf89b10e138d
BLAKE2b-256 checksum
How to use checksums
aef032d7df466398ca6f112ed5303f2635d99c090ce70f947ebd70bf636a6c41
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.2

Security for cdsg-tools 0.0.4

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page