Skip to main content

mondrian-maker

Python package that produces randomly-generated Mondrian-style plots.

This python library allows the user to create Mondrian De Stijl-style images via numpy and matplotlib. Piet Mondrian was one of the most influential artists of the 20th century. The package mondrian-maker seeks to recreate his style via randomly-generated (or user-defined) sets of numbers.

Output Samples

The samples below show a sample Mondrian painting as well as an example of the output of the mondrian module. The output is generally formatted as a pdf file, which can be converted into other extensions.

Composition with Red, Blue, and Yellow, Piet Mondrian, 1930

mondrian.py-generated plot

Installation

Dependencies for this project are listed in requirements.txt. This library is compatible with python3 >= 3.7.6 and requires both git and pip to be installed locally. This repository can be installed via the following steps:

git clone https://github.com/andrewbowen19/mondrian-maker.git

From the command-line:

cd mondrian-maker

Then, you can install via pip.

pip install .

Alternative Installation as of v0.0.2

This package is also installable via pip and PyPi. The project page can be found for distribution here. You can also install the library via the following command:

pip install mondrian-maker

Usage

If pip installed locally, the mondrian class can be imported into a python script as shown below:

from mondrian_maker.mondrian import mondrian

m = mondrian()
m.make_mondrian(<args>)

The mondrian class in the mondrian_maker.mondrian module contained the method make_mondrian which actually creates the plot. In addition, the mondrian.py module can be run directly with python command-line args

python mondrian.py --n_plots <int> --savefig <boolean> --array_size <int> --title <str>

TODO

Metadata

Release files for mondrian-maker 0.0.2

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

Built distribution (wheel)

Table of built distributions (wheels) for mondrian-maker 0.0.2
File Interpreter ABI Platform
mondrian_maker-0.0.2-py3-none-any.whl Python 3 none any Details

Release files / mondrian_maker-0.0.2-py3-none-any.whl

Download URL mondrian_maker-0.0.2-py3-none-any.whl
Size 12.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bf85dd91a62e04cea3a04b87de02504d9d6ab0b62444d0a4c31e5de845f7c3a1
BLAKE2b-256 checksum
How to use checksums
b2c9f581cdd42cc2badbd4f207c831d611daf0b5631e732391fa0d330221696d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.6

Security for mondrian-maker 0.0.2

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.

Release history Release notifications | RSS feed

This release

0.0.2 This release

1 release file No provenance

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