Skip to main content

cf-plot

Code-light plotting for earth science and aligned research

Overview

cf-plot example gallery of plots

cf-plot allows you to produce and customise publication-quality contour, vector, line and more plots with the power of Python, matplotlib, Cartopy and cf-python, in as few lines of code as possible.

It is designed to be a useful visualisation tool for environmental, earth and aligned sciences, for example to facilitate climate and meteorological research. cf-plot is developed and maintained by the NCAS-CMS group, part of NCAS.

Brief Demonstration

In as little as four lines of Python including imports and file reading, using cf-plot you can for example produce a contour plot showing a 2D subspace of a netCDF dataset:

import cf
import cfplot as cfp
f = cf.read('<dataset name>.nc')[0]  # picks out a read-in field of the dataset
cfp.con(f.subspace(time=<chosen time value>))  # creates a contour plot of the field at that time value

A gallery of outputs made with cf-plot, showcasing a range of plotting possibilities with links to relevant documentation pages and to example code, can be found on this dedicated page within the documentation, as illustrated in the (static) image at the top of this document.

Documentation

See the cf-plot homepage (https://ncas-cms.github.io/cf-plot) for the full online documentation.

Installation

To install cf-plot with its required dependencies, you can use pip:

pip install cf-python cf-plot

or you can use conda (or similar package managers such as mamba) as follows (or equivalent):

conda install -c ncas -c conda-forge cf-python cf-plot udunits2

More detail about installation is provided on the installation page (https://ncas-cms.github.io/cf-plot/installation.html) of the documentation.

Contributing

Everyone is welcome to contribute to cf-plot in the form of bug reports, documentation, code, design proposals, and more.

Contributing guidelines are available in a dedicated document which is copied into the documentation here.

Help: Issues, Questions, Feature Requests, etc.

For any queries, see the guidance page (https://ncas-cms.github.io/cf-plot/support.html).

Metadata

Release files for cf-plot 3.5.0

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

Source distribution (sdist)

Source distribution for cf-plot 3.5.0
File Size Uploaded
cf_plot-3.5.0.tar.gz 2.9 MB Details

Release files / cf_plot-3.5.0.tar.gz

Download URL cf_plot-3.5.0.tar.gz
Size 2.9 MB
Tags Source
SHA-256 checksum
How to use checksums
05feafdb9de06644e82d3d31c0b189850f87af632735a80a881c39ea80aa9526
BLAKE2b-256 checksum
How to use checksums
4fd7f4f42d4fdc80cbac39d394e40164e1b79c36434ae6e8eb62407ed6ddd5f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Release history Release notifications | RSS feed

This release

3.5.0 This release

1 release file

3.4.0

1 release file

3.3.0

1 release file

3.2.23

1 release file

3.2.22

1 release file

3.2.21

1 release file

3.2.15

1 release file

3.2.14

1 release file

3.2.12

1 release file

3.2.7

1 release file

3.2.6

1 release file

3.2.0

1 release file

3.1.31

1 release file

3.1.30

1 release file

3.1.28

1 release file

3.1.26

1 release file

3.1.23

1 release file

3.1.22

1 release file

3.1.21

1 release file

3.1.18

1 release file

3.1.17

1 release file

3.1.16

1 release file

3.1.15

1 release file

3.1.6

1 release file

3.1.5

1 release file

3.1.4

1 release file

3.1.3

1 release file

3.1.2

1 release file

3.1.0

1 release file

3.0.38

1 release file

3.0.37

1 release file

3.0.32

1 release file

3.0.29

1 release file

3.0.25

1 release file

3.0.20

1 release file

3.0.19

1 release file

3.0.18

1 release file

3.0.17

1 release file

3.0.6

1 release file

3.0.5

1 release file

3.0.4

1 release file

3.0.3

1 release file

3.0.2

1 release file

2.4.10

1 release file

2.4.8

1 release file

2.4.5

1 release file

2.4.2

1 release file

2.4.1

1 release file

2.3.2

1 release file

2.3.1

1 release file

2.2.18

1 release file

2.1.75

1 release file

2.1.57

1 release file

2.1.52

1 release file

2.1.51

1 release file

2.1.35

1 release file

2.1.34

1 release file

2.1.22

1 release file

2.1.18

1 release file

2.1.10

1 release file

1.9.34

1 release file

1.9.29

1 release file

1.9.28

1 release file

1.9.27

1 release file

1.9.26

1 release file

1.9.25

1 release file

1.9.22

1 release file

1.9.21

1 release file

1.9.20

1 release file

1.9.19

1 release file

1.9.15

1 release file

1.9.13

1 release file

1.9.10

1 release file

1.9.9

1 release file

1.9.6

1 release file

1.9.3

1 release file

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