mpldxf


Namempldxf JSON
Version 0.6.0 PyPI version JSON
download
home_pagehttps://github.com/norwegian-geotechnical-institute/mpldxf-NGI
SummaryA fork of mpldxf - a matplotlib backend to write DXF drawings. Modified by NGI to handle geotechnical plots
upload_time2024-12-12 12:51:53
maintainerNone
docs_urlNone
authorDavid Kent
requires_python<4.0,>=3.12
licenseMIT
keywords matplotlib dxf cad
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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](http://bitbucket.org/mozman/ezdxf)

## Installation

The package can be cloned and installed using poetry:


## Usage

To use this backend, you first need to register it with Matplotlib:

```python
import matplotlib
from mpldxf import FigureCanvasDxf
matplotlib.backend_bases.register_backend('dxf', FigureCanvasDxf)
```

Then, you can save a figure as a DXF file:
```python
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.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/norwegian-geotechnical-institute/mpldxf-NGI",
    "name": "mpldxf",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.12",
    "maintainer_email": null,
    "keywords": "matplotlib, DXF, CAD",
    "author": "David Kent",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/ff/57/7be9964c579c9c19505edc3f0672c07bf576911d041fd5a7073db8d19588/mpldxf-0.6.0.tar.gz",
    "platform": null,
    "description": "# Matplotlib Backend for DXF\n\n## Overview\n\nThis 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.\n\nThis package builds on the `ezdxf` package by Manfred Moitzi:\n[ezdxf on Bitbucket](http://bitbucket.org/mozman/ezdxf)\n\n## Installation\n\nThe package can be cloned and installed using poetry:\n\n\n## Usage\n\nTo use this backend, you first need to register it with Matplotlib:\n\n```python\nimport matplotlib\nfrom mpldxf import FigureCanvasDxf\nmatplotlib.backend_bases.register_backend('dxf', FigureCanvasDxf)\n```\n\nThen, you can save a figure as a DXF file:\n```python\nfrom matplotlib import pyplot as plt\nplt.plot(range(10))\nplt.savefig('myplot.dxf')\n```\n\n\n## Warning\n\nThis package is a work in progress. Not all Matplotlib plot types will render correctly, and text alignment and sizing in particular may require adjustments.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A fork of mpldxf - a matplotlib backend to write DXF drawings. Modified by NGI to handle geotechnical plots",
    "version": "0.6.0",
    "project_urls": {
        "Homepage": "https://github.com/norwegian-geotechnical-institute/mpldxf-NGI",
        "Repository": "https://github.com/norwegian-geotechnical-institute/mpldxf-NGI"
    },
    "split_keywords": [
        "matplotlib",
        " dxf",
        " cad"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8c3e61443429e385485f2b19c3e21a862b7ae6b92f84743c9d0f1203dd02cd17",
                "md5": "788ef52578bb80df8c0df7094e38f2fe",
                "sha256": "fb4833e73d27d9031739b1179dfb4b46bb215e144955c60e9330b77cc38bdb52"
            },
            "downloads": -1,
            "filename": "mpldxf-0.6.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "788ef52578bb80df8c0df7094e38f2fe",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.12",
            "size": 11215,
            "upload_time": "2024-12-12T12:43:41",
            "upload_time_iso_8601": "2024-12-12T12:43:41.072349Z",
            "url": "https://files.pythonhosted.org/packages/8c/3e/61443429e385485f2b19c3e21a862b7ae6b92f84743c9d0f1203dd02cd17/mpldxf-0.6.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ff577be9964c579c9c19505edc3f0672c07bf576911d041fd5a7073db8d19588",
                "md5": "664043342ad23afb6075d0f9edf98fa8",
                "sha256": "9a52156a44b510b8e0bc8dd93524be6c594675a01aa92c62dffc46ecaefca05e"
            },
            "downloads": -1,
            "filename": "mpldxf-0.6.0.tar.gz",
            "has_sig": false,
            "md5_digest": "664043342ad23afb6075d0f9edf98fa8",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.12",
            "size": 8436,
            "upload_time": "2024-12-12T12:51:53",
            "upload_time_iso_8601": "2024-12-12T12:51:53.386991Z",
            "url": "https://files.pythonhosted.org/packages/ff/57/7be9964c579c9c19505edc3f0672c07bf576911d041fd5a7073db8d19588/mpldxf-0.6.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-12 12:51:53",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "norwegian-geotechnical-institute",
    "github_project": "mpldxf-NGI",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "mpldxf"
}
        
Elapsed time: 0.38768s