matplotnim

A Nim wrapper for Python's matplotlib

Wrapper score 15/100 · tests present · no docs generated

Wraps a native library — check OS Compatibility below for platform-specific linking notes.

Summary

Latest Version Unknown
License Apache License 2.0
CI Status Passing
Downloads 0
Last Indexed 2026-07-21 05:24

Installation

nimble install matplotnim
choosenim install matplotnim
git clone https://github.com/ruivieira/matplotnim

OS Compatibility

Platform Linux macOS Windows FreeBSD OpenBSD NetBSD Android iOS WASM Embedded
matplotnim - - - - - - -

Source

Repository https://github.com/ruivieira/matplotnim
Homepage https://github.com/ruivieira/matplotnim
Registry Source nimble_official

README

CI builds.sr.ht status

matplotnim

A Nim wrapper for matplotlib.

🔮 v0.2.0 and the Future

Most of v0.1.0 is now deprecated and redundant with the creation of the great nimpy. With nimpy (almost) all of the constructs of matplotlib can now be called directly.

Nevertheless, I will keep this package for two reasons:

  1. Hopefully it will serve as a learning resource, with examples, on how to call matplotlib using nimpy
  2. Some complex plots can be very verbose (not Nim's fault, by the way) and this will be a package aiming at providing premade templates for such plots.

Features

  • Line plots
  • Scatter plots
  • Histograms (and KDE denisty plots)
  • Line segments
  • Axis (horizontal and vertical) lines
  • Font customisation
  • Annotations
  • Custom size and DPI
  • Sub-plots
  • Horizontal and vertical limits
  • Custom markers

Examples

Examples can be found here.

Contributing

  • Fork it (https://github.com/ruivieira/matplotnim)
  • Create your feature branch (git checkout -b my-new-feature)
  • Commit your changes (git commit -am 'Add some feature')
  • Push to the branch (git push origin my-new-feature)
  • Create a new Pull Request

mailing lists

Please prefix the subject with [matplotnim].