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-1.0.1.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

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

mpldxf-1.0.1-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for mpldxf-1.0.1.tar.gz
Algorithm Hash digest
SHA256 d136028d7ae562e2241a73915b9f4abf3bfff57914ae3d26d516ae8ffe408447
MD5 02b04a4a16036729230f89ccde4fdbc1
BLAKE2b-256 81b5d3e29726d82e2cfd628104b1183f0d9a536a61ce05548e8ad1ddfc40325f

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for mpldxf-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c5b3d67c8323c256b52d44d3445ee42c9bca99511ab436a77f7c3a690d4c39d2
MD5 6f8940f9d22827edc94c21a9bb27dc1d
BLAKE2b-256 8b4e180a19323fd9072ecd2e1e8371ee6c2eb76fa50bf690f6954486ba46738b

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