Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mpldxf-0.8.0.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mpldxf-0.8.0-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

Details for the file mpldxf-0.8.0.tar.gz.

File metadata

  • Download URL: mpldxf-0.8.0.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for mpldxf-0.8.0.tar.gz
Algorithm Hash digest
SHA256 26c2808714a71713aa74e247747fa3252fe8bc83e86fd71d4ee5fb807abd8f57
MD5 ff27c505ce1b0b9378e4174eec137a4c
BLAKE2b-256 0e4b69c5d5e8d2e7f6f3d15b9ea200f7f4250226876358186144e39103c07b88

See more details on using hashes here.

File details

Details for the file mpldxf-0.8.0-py3-none-any.whl.

File metadata

  • Download URL: mpldxf-0.8.0-py3-none-any.whl
  • Upload date:
  • Size: 13.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for mpldxf-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2cecf1429f13a6a2581be398225b586a66011a368413d92a7a1e1954d6824a2a
MD5 48b4d17c45e7b9067bc013d0c850713a
BLAKE2b-256 479bffe79a84583a00781f3ea87b1db1dc6f928dbca0935d22b80ed8f7fc90b6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page