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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for mpldxf-0.3.0.tar.gz
Algorithm Hash digest
SHA256 1d17af6e35dbafc9437844250a4a9a71a0ac29a450fadc8bf5569f18c69ada0a
MD5 e7a5faaeeb8feb9657e159bca6218f12
BLAKE2b-256 81ec8872b98a59fc82dcb8063718b91ea10ce492801f114c3a4104204507f982

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mpldxf-0.3.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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 85bd707fff4fa4d221e7dc45a295610ef0fdb7fe68d09ec8e9be040bd51676cb
MD5 9cf94aa73e19dabdeda3c411c78c89bf
BLAKE2b-256 05bc558d3c636f46d1f7dfa58a400a942c825c579d42d73b3434d4c0662c4e24

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