Moniplot

Latest version: v1.1.0

Safety actively analyzes 722581 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 4

1.1.0

Moniplot v1.1.0 is a minor release that fixes bugs and regressions discovered after the v1.0.0 release.

Most important fixes and changes:

- Moved from setuptools to hatchling
- DrawHist: put tickmarks on the leftside of the bars to make them less confusing
- DrawGeo.mash: added option to draw multiple segments in one figure.
- DrawGeo.tracks: Added parameters label_id and markersize
- FigInfo: improved layout
- tol_colors: added color-set Plain
- Many minor bug fixes
- Improved annotations

1.0.0

**_This release breaks code developed with `moniplot` v0.6 and earlier._**

This is the first stable release of `moniplot`, you will need to update your code developed with older versions of moniplot. But, you will be able to reproduce the same plots as you did before.

The main advantage of the new code is that you can display the figures directly on your screen:
> import matplotlib.pyplot as plt
> from moniplot.draw_image import DrawImage
> plot = DrawImage(arr2d)
> fig, axx = plot.subplots()
> plot.draw(axx, fig_info=fig_info, title="A detector image")
> plt.show()

Or as a PDF figure:
> report = MONplot("test_monplot.pdf", "This is an example figure")
> report.set_institute("SRON")
> plot = DrawImage(arr2d)
> fig, axx = plot.subplots()
> plot.draw(axx, fig_info=fig_info, title="A detector image")
> report.add_copyright(axx["image"])
> report.close_this_page(fig)

Actually all the methods of MONplot version 0.6 are available as separate classes (except multiplot). You can mix these different classes on one page, except DrawImage.

Another major change is that xarray.Datasets are no longer accepted as input. You can still use a Dataset as follows:
> import matplotlib.pyplot as plt
> from moniplot.draw_image import DrawImage
> plot = DrawTrend()
> fig, axx = plot.subplots(len(xds.data_vars))
> axx[0].set_title(title)
> for ii, key in enumerate(xds.data_vars):
> plot.draw(axx[ii], xds[key])
> axx[-1].set_xlabel(xds[key].dims[1])
> plt.show()

We still need to update the documentation of moniplot, but the module documentation is updated and contains at least one example.

0.6.0

Changes and Fixes

- Rewrote tol_colors to use dataclasses;
- MONplot accepts as name of the Figure string or Path-like objects;
- Added new module geo_plot;
- Fixed import of Cartopy;
- Replaced LaTeX characters by Unicode in labels of image plots;
- Added parameter 'scatter' for scatter plots in trend-figures
- Fixed time axis for trend-data;
- Moved MONplot helper-functions to the lib-folder;
- Fixed depreciated setup configuration;
- Added ruff configuration to pyproject.toml:
> * Updated the module documentation to the PEP257 convention.
> * Let `ruff` reformat all python-code;
> * Fixed all issues reported by `ruff` [flake8-annotations]

0.5.9

Fixed
--------
* The dependencies in pyproject.toml are fixed. Now you should be able to install moniplot with Python version 3.8 and 3.9.

0.5.8

This is a minor release of `moniplot`. There is no need to update if v0.5.7 works for you.

Changes
-------------
* Will add test modules using `pytest`.

Fixed
--------
* Fixed annotations (with many thanks to pycharm).
* Fixed minor bugs.
* Improved documentation.

0.5.7

This is a minor release only containing small fixes and improvements.

Improvements
----------------------
* Obtain package version from importlib (release)
* Added example script for MONplot.draw_lplot
* Added keyword kwlegend to method MONplot.draw_lplot to pass keywords to matplotlib.Axis.legend

Fixes
--------
* Improved type hinting of some functions (ongoing work)
* Fixed ReStructuredText formatting of module biweight.py
* Fixed typos in documentation

Page 1 of 4

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.