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.2.0.tar.gz (8.5 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.2.0-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mpldxf-0.2.0.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.0

File hashes

Hashes for mpldxf-0.2.0.tar.gz
Algorithm Hash digest
SHA256 648e8a92b9591e9f50f52d574ddc49e84c8c494764d36a30d2730b264a674627
MD5 873f176f88c0b2d3fdca613d9382399f
BLAKE2b-256 92831b1732e6368fc8be033e37a8df91fc9c6f3bbe2f0ddb5c8dab1416811ef2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mpldxf-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 11.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.0

File hashes

Hashes for mpldxf-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fee00c8f5bad5f1fbbb0e6d1274678bdd4ae2438b821ab47278397e1d27e5825
MD5 fa9dd06cc24d84e9976f9a72edc46b35
BLAKE2b-256 947bd6452f147bf7af187300a16fc7a6432f3c1104a6ad41cd6c7b93b58ac09b

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