# classfig
Comfortable figure handling in Python3 / Matplotlib
written by Fabian Stutzki, fast@fast-apps.de
licensed under MIT
## Usage
The package has to be imported:
```python
from classfig import classfig
```
A very simple example is:
```python
fig = classfig()
fig.plot()
fig.show()
```
classfig allows for more complex behavior with multiple subplots, legend, grid and saving to multiple files at once.
```python
fig = classfig('PPT',nrows=2) # create figure
fig.plot([1,2,3,1,2,3,4,1,1]) # plot first data set
fig.title('First data set') # set title for subplot
fig.subplot() # set focus to next subplot/axis
fig.plot([0,1,2,3,4],[0,1,1,2,3],label="random") # plot second data set
fig.legend() # generate legend
fig.grid() # show translucent grid to highlight major ticks
fig.xlabel('Data') # create xlabel for second axis
fig.save('test_fig1.png','pdf') # save figure to png and pdf
```
Raw data
{
"_id": null,
"home_page": "https://pypi.org/project/classfig/",
"name": "classfig",
"maintainer": "",
"docs_url": "https://pythonhosted.org/classfig/",
"requires_python": ">=3.8,<4.0",
"maintainer_email": "",
"keywords": "matplotlib,figure",
"author": "Fabian Stutzki",
"author_email": "fast@fast-apps.de",
"download_url": "https://files.pythonhosted.org/packages/c2/b6/3865c22527b289f04925b4d8ebdf56a70134bd3808b0c87a88a63616bd48/classfig-0.2.6.tar.gz",
"platform": null,
"description": "# classfig\nComfortable figure handling in Python3 / Matplotlib\n\nwritten by Fabian Stutzki, fast@fast-apps.de\n\nlicensed under MIT\n\n## Usage\nThe package has to be imported:\n\n```python\nfrom classfig import classfig\n```\n\nA very simple example is:\n\n```python\nfig = classfig()\nfig.plot()\nfig.show()\n```\n\nclassfig allows for more complex behavior with multiple subplots, legend, grid and saving to multiple files at once.\n\n```python\nfig = classfig('PPT',nrows=2) # create figure\nfig.plot([1,2,3,1,2,3,4,1,1]) # plot first data set\nfig.title('First data set') # set title for subplot\nfig.subplot() # set focus to next subplot/axis\nfig.plot([0,1,2,3,4],[0,1,1,2,3],label=\"random\") # plot second data set\nfig.legend() # generate legend\nfig.grid() # show translucent grid to highlight major ticks\nfig.xlabel('Data') # create xlabel for second axis\nfig.save('test_fig1.png','pdf') # save figure to png and pdf\n```\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Matplotlib wrapper for comfortable figure handling",
"version": "0.2.6",
"project_urls": {
"Homepage": "https://pypi.org/project/classfig/"
},
"split_keywords": [
"matplotlib",
"figure"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "626678ae1be34303babc61060e53ff6ffafa690e30680a8ba815469608871343",
"md5": "3e1530315a7e49ea36d1c4ac50c09347",
"sha256": "6c81d6bb79227125fc4285a1c1d31c29f31a549c2d571918506a32c31e7f984a"
},
"downloads": -1,
"filename": "classfig-0.2.6-py3-none-any.whl",
"has_sig": false,
"md5_digest": "3e1530315a7e49ea36d1c4ac50c09347",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8,<4.0",
"size": 9299,
"upload_time": "2023-11-26T06:58:18",
"upload_time_iso_8601": "2023-11-26T06:58:18.912494Z",
"url": "https://files.pythonhosted.org/packages/62/66/78ae1be34303babc61060e53ff6ffafa690e30680a8ba815469608871343/classfig-0.2.6-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "c2b63865c22527b289f04925b4d8ebdf56a70134bd3808b0c87a88a63616bd48",
"md5": "e2086cebc869d6416a4537764efaa09c",
"sha256": "61571967f50ed590ee7f9a4476b2c5d292c31f9625aa11fb76edd52e544320d0"
},
"downloads": -1,
"filename": "classfig-0.2.6.tar.gz",
"has_sig": false,
"md5_digest": "e2086cebc869d6416a4537764efaa09c",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8,<4.0",
"size": 9121,
"upload_time": "2023-11-26T06:58:20",
"upload_time_iso_8601": "2023-11-26T06:58:20.583624Z",
"url": "https://files.pythonhosted.org/packages/c2/b6/3865c22527b289f04925b4d8ebdf56a70134bd3808b0c87a88a63616bd48/classfig-0.2.6.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-11-26 06:58:20",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "classfig"
}