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.5.0.tar.gz (8.7 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.5.0-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mpldxf-0.5.0.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.10.12 Linux/6.8.0-49-generic

File hashes

Hashes for mpldxf-0.5.0.tar.gz
Algorithm Hash digest
SHA256 4c39e5467bd0541b38fc7aedbb3149e6a3ee2717f97c31e27fd50d3c3970bb91
MD5 e1d066f78405455d491b4beadbfc016d
BLAKE2b-256 4a9b0da1668527a36480e16786621a04e228dc09d030236d73817e97c27adaca

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mpldxf-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 11.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.10.12 Linux/6.8.0-49-generic

File hashes

Hashes for mpldxf-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fb3cdfc589927dc3a95d39436e4d0f4881e1065e8fc04e32b6723d1815ddd9f4
MD5 73f875e7708bc23635891f2f6a86508b
BLAKE2b-256 da451ac98abc3b2a4dce139bec403858ba82439e4bc37c1d7bdaae831f52b2a5

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