+++++++++++++++++++++++++++++++
Matplotlib backend for dxf
+++++++++++++++++++++++++++++++
Overview
+++++++++++++++++++++++++++++++
This is a matplotlib backend that enables matplotlib to save figures as
DXF drawings. DXF is a drawing format that is used by computer aided
design (CAD) tools.
This package builds on the ezdxf package by Manfred Moitzi:
http://bitbucket.org/mozman/ezdxf
Usage
+++++++++++++++++++++++++++++++
First you need to register the backend with matplotlib::
import matplotlib
from mpldxf import FigureCanvasDxf
matplotlib.backend_bases.register_backend('dxf', FigureCanvasDxf)
You can then save your figure::
from matplotlib import pyplot as plt
plt.plot(range(10))
plt.savefig('myplot.dxf')
Warning
++++++++++++++++++++
This is very much a work in progress. Not all matplotlib plot types will
render correctly. Text alignment and sizing in particular need work.
Raw data
{
"_id": null,
"home_page": "https://github.com/dmkent/mpldxf",
"name": "mpldxf-NGI",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "matplotlib, DXF, CAD",
"author": "Jon-Michael Josefsen",
"author_email": "jmj@ngi.no",
"download_url": "https://files.pythonhosted.org/packages/4c/8a/400ba3854b21b4b7722f607d642a4f9f54abb626d0dfcd07fead5e62b2c8/mpldxf_ngi-0.1.0.tar.gz",
"platform": "OS Independent",
"description": "+++++++++++++++++++++++++++++++\r\nMatplotlib backend for dxf\r\n+++++++++++++++++++++++++++++++\r\n\r\nOverview\r\n+++++++++++++++++++++++++++++++\r\n\r\nThis is a matplotlib backend that enables matplotlib to save figures as \r\nDXF drawings. DXF is a drawing format that is used by computer aided\r\ndesign (CAD) tools.\r\n\r\nThis package builds on the ezdxf package by Manfred Moitzi:\r\n\r\n http://bitbucket.org/mozman/ezdxf\r\n\r\nUsage\r\n+++++++++++++++++++++++++++++++\r\n\r\nFirst you need to register the backend with matplotlib::\r\n\r\n import matplotlib\r\n from mpldxf import FigureCanvasDxf\r\n matplotlib.backend_bases.register_backend('dxf', FigureCanvasDxf)\r\n\r\nYou can then save your figure::\r\n\r\n from matplotlib import pyplot as plt\r\n plt.plot(range(10))\r\n plt.savefig('myplot.dxf')\r\n\r\nWarning\r\n++++++++++++++++++++\r\n\r\nThis is very much a work in progress. Not all matplotlib plot types will\r\nrender correctly. Text alignment and sizing in particular need work.\r\n",
"bugtrack_url": null,
"license": "MIT License",
"summary": "A fork of mpldxf - a matplotlib backend to write DXF drawings. Modified by NGI to handle geotechnical plots",
"version": "0.1.0",
"project_urls": {
"Download": "https://github.com/dmkent/mpldxf",
"Homepage": "https://github.com/dmkent/mpldxf"
},
"split_keywords": [
"matplotlib",
" dxf",
" cad"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "8f569ac7b14053bc3104ed9960ade17215c1bf1c42f09b101782e046df291771",
"md5": "f9479412ab537a204d7e7295bcf2d80e",
"sha256": "42c3dcea36faa83af5253aa33a9987e04683a67550bd7b81f54a7e17118f51db"
},
"downloads": -1,
"filename": "mpldxf_NGI-0.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "f9479412ab537a204d7e7295bcf2d80e",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 12985,
"upload_time": "2024-10-31T21:38:09",
"upload_time_iso_8601": "2024-10-31T21:38:09.854225Z",
"url": "https://files.pythonhosted.org/packages/8f/56/9ac7b14053bc3104ed9960ade17215c1bf1c42f09b101782e046df291771/mpldxf_NGI-0.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "4c8a400ba3854b21b4b7722f607d642a4f9f54abb626d0dfcd07fead5e62b2c8",
"md5": "7f8f71946df9fe293d5b20cf62deb037",
"sha256": "d97cc67410359f5d04af7662367ef4f9415d9a0638125ced4785cb3da2d3768f"
},
"downloads": -1,
"filename": "mpldxf_ngi-0.1.0.tar.gz",
"has_sig": false,
"md5_digest": "7f8f71946df9fe293d5b20cf62deb037",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 24993,
"upload_time": "2024-10-31T21:38:11",
"upload_time_iso_8601": "2024-10-31T21:38:11.187466Z",
"url": "https://files.pythonhosted.org/packages/4c/8a/400ba3854b21b4b7722f607d642a4f9f54abb626d0dfcd07fead5e62b2c8/mpldxf_ngi-0.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-31 21:38:11",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "dmkent",
"github_project": "mpldxf",
"travis_ci": true,
"coveralls": false,
"github_actions": false,
"lcname": "mpldxf-ngi"
}