https://github.com/bjlittle/nc-time-axis

Support for netcdftime axis in matplotlib.

https://github.com/bjlittle/nc-time-axis

Science Score: 23.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
  • .zenodo.json file
  • DOI references
    Found 3 DOI reference(s) in README
  • Academic publication links
    Links to: zenodo.org
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (3.1%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

Support for netcdftime axis in matplotlib.

Basic Info
  • Host: GitHub
  • Owner: bjlittle
  • License: bsd-3-clause
  • Language: Python
  • Default Branch: main
  • Homepage:
  • Size: 672 KB
Statistics
  • Stars: 0
  • Watchers: 2
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Fork of SciTools/nc-time-axis
Created almost 10 years ago · Last pushed 12 months ago

https://github.com/bjlittle/nc-time-axis/blob/main/

# nc-time-axis

Support for a cftime axis in matplotlib

| | | |------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | CI | [![ci-citation](https://github.com/SciTools/nc-time-axis/actions/workflows/ci-citation.yml/badge.svg)](https://github.com/SciTools/nc-time-axis/actions/workflows/ci-citation.yml) [![ci-locks](https://github.com/SciTools/nc-time-axis/actions/workflows/ci-locks.yml/badge.svg)](https://github.com/SciTools/nc-time-axis/actions/workflows/ci-locks.yml) [![ci-manifest](https://github.com/SciTools/nc-time-axis/actions/workflows/ci-manifest.yml/badge.svg)](https://github.com/SciTools/nc-time-axis/actions/workflows/ci-manifest.yml) [![ci-wheels](https://github.com/SciTools/nc-time-axis/actions/workflows/ci-wheels.yml/badge.svg)](https://github.com/SciTools/nc-time-axis/actions/workflows/ci-wheels.yml) [![pre-commit.ci status](https://results.pre-commit.ci/badge/github/SciTools/nc-time-axis/main.svg)](https://results.pre-commit.ci/latest/github/SciTools/nc-time-axis/main) | | Community | [![Contributor Covenant](https://img.shields.io/badge/contributor%20covenant-2.1-4baaaa.svg)](https://github.com/SciTools/nc-time-axes/blob/main/CODE_OF_CONDUCT.md) [![GH Discussions](https://img.shields.io/badge/github-discussions%20%F0%9F%92%AC-yellow?logo=github&logoColor=lightgrey)](https://github.com/SciTools/nc-time-axis/discussions) | | Documentation | [![RTD Status](https://readthedocs.org/projects/nc-time-axis/badge/?version=stable)](https://nc-time-axis.readthedocs.io/en/stable/?badge=stable) | | Health | [![codecov](https://codecov.io/gh/SciTools/nc-time-axis/branch/master/graph/badge.svg?token=JicwCCHwLd)](https://codecov.io/gh/SciTools/nc-time-axis) | | Meta | [![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff) [![SPEC 0 Minimum Supported Dependencies](https://img.shields.io/badge/SPEC-0-green?labelColor=%23004811&color=%235CA038)](https://scientific-python.org/specs/spec-0000/) [![license - bsd-3-clause](https://img.shields.io/github/license/SciTools/nc-time-axis)](https://github.com/SciTools/nc-time-axis/blob/main/LICENSE) [![conda platform](https://img.shields.io/conda/pn/conda-forge/nc-time-axis.svg)](https://anaconda.org/conda-forge/nc-time-axis) | | Package | [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.6472640.svg)](https://doi.org/10.5281/zenodo.6472640) [![conda-forge](https://img.shields.io/conda/vn/conda-forge/nc-time-axis?color=orange&label=conda-forge&logo=conda-forge&logoColor=white)](https://anaconda.org/conda-forge/nc-time-axis) [![pypi](https://img.shields.io/pypi/v/nc-time-axis?color=orange&label=pypi&logo=python&logoColor=white)](https://pypi.org/project/nc-time-axis/) [![pypi - python version](https://img.shields.io/pypi/pyversions/nc-time-axis.svg?color=orange&logo=python&label=python&logoColor=white)](https://pypi.org/project/nc-time-axis/) | | Repo | [![commits-since](https://img.shields.io/github/commits-since/SciTools/nc-time-axis/latest.svg)](https://github.com/SciTools/nc-time-axis/commits/main) [![contributors](https://img.shields.io/github/contributors/SciTools/nc-time-axis)](https://github.com/SciTools/nc-time-axis/graphs/contributors) [![release](https://img.shields.io/github/v/release/SciTools/nc-time-axis)](https://github.com/SciTools/nc-time-axis/releases) | | | ## Installation Install `nc-time-axis` either with `conda`: ```shell conda install -c conda-forge nc-time-axis ``` Or `pip`: ```shell pip install nc-time-axis ``` ## Example ```python import random import cftime import matplotlib.pyplot as plt import nc_time_axis calendar = "360_day" dt = [ cftime.datetime(year=2017, month=2, day=day, calendar=calendar) for day in range(1, 31) ] temperatures = [round(random.uniform(0, 12), 3) for _ in range(len(dt))] plt.plot(dt, temperatures) plt.margins(0.1) plt.ylim(0, 12) plt.xlabel("Date") plt.ylabel("Temperature") plt.show() ``` ![alt text](https://github.com/SciTools/nc-time-axis/raw/main/example_plot.png "Example plot with cftime axis") ## License `nc-time-axis` is distributed under the terms of the [BSD-3-Clause](https://spdx.org/licenses/BSD-3-Clause.html) license. ## [#ShowYourStripes](https://showyourstripes.info/s/globe)

#showyourstripes Global 1850-2021

**Graphics and Lead Scientist**: [Ed Hawkins](http://www.met.reading.ac.uk/~ed/home/index.php), National Centre for Atmospheric Science, University of Reading. **Data**: Berkeley Earth, NOAA, UK Met Office, MeteoSwiss, DWD, SMHI, UoR, Meteo France & ZAMG.

#ShowYourStripes is distributed under a Creative Commons Attribution 4.0 International License creative-commons-by

Owner

  • Name: Bill Little
  • Login: bjlittle
  • Kind: user
  • Location: Exeter, Devon, England
  • Company: Met Office

Soft, fluffy and machine washable.

GitHub Events

Total
  • Push event: 21
  • Create event: 9
Last Year
  • Push event: 21
  • Create event: 9