A fork of mpldxf - a matplotlib backend to write DXF drawings. Modified by NGI to handle geotechnical plots
Project description
Matplotlib Backend for DXF
Overview
This is a Matplotlib backend that enables Matplotlib to save figures as DXF drawings. DXF is a drawing format commonly used by Computer-Aided Design (CAD) tools.
This package builds on the ezdxf package by Manfred Moitzi:
ezdxf on Bitbucket
Installation
The package can be cloned and installed using poetry:
Usage
To use this backend, you first need to register it with Matplotlib:
import matplotlib
from mpldxf import FigureCanvasDxf
matplotlib.backend_bases.register_backend('dxf', FigureCanvasDxf)
Then, you can save a figure as a DXF file:
from matplotlib import pyplot as plt
plt.plot(range(10))
plt.savefig('myplot.dxf')
Warning
This package is a work in progress. Not all Matplotlib plot types will render correctly, and text alignment and sizing in particular may require adjustments.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mpldxf-1.0.4.tar.gz.
File metadata
- Download URL: mpldxf-1.0.4.tar.gz
- Upload date:
- Size: 13.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
04f59abcc4da0ce85fd3baa91096460484d7726d96be63f11da396fc47f302e0
|
|
| MD5 |
196955e7bae4728d09a0b2c59b9936a8
|
|
| BLAKE2b-256 |
41c5838603510d06c80c4d469786f6b3d11ed4b31218465addfd7a7c99bb6469
|
File details
Details for the file mpldxf-1.0.4-py3-none-any.whl.
File metadata
- Download URL: mpldxf-1.0.4-py3-none-any.whl
- Upload date:
- Size: 14.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f017deaa8fab8934e595fd4f9bd03f193820a5209fbdb55af4685d88f834f458
|
|
| MD5 |
0322f3aca0b84d7e1758524be96ada1c
|
|
| BLAKE2b-256 |
1db633c73977e59a0a67af74dcd0cbd357e3bb6421a984f289dbdeb6ed6d5921
|