Matplotlib field for Django
Project description
Django_matplotlib is a reusable Django app for embedding matplotlib figures into Django driven websites. It can be easily integrated with Django admin app and used in templates via forms.
Documentation: http://django-matplotlib.readthedocs.org/
Requirements
Django 1.11+, <3.0; Python 3.5+, <3.8.
Quick start
Clone git repository to place where Django can find it:
pip install django-matplotlib
Add “django_matplotlib” to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [
...
'django_matplotlib',
...
]
Use MatplotlibField in your models.py, e.g.:
from django.db import models
from django_matplotlib.fields import MatplotlibFigureField
class MyModelWithFigure(models.Model):
# ... other fields
# figures.py should be in the same directory where models.py is placed.
# see ./django_matplotlib/figures.py for example.
fig = MatplotlibFigureField(figure='test_figure', verbose_name='figure',
silent=True)
# ... other fields
Generate and apply migrations.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-matplotlib-0.1.tar.gz
(10.7 kB
view details)
Built Distribution
File details
Details for the file django-matplotlib-0.1.tar.gz
.
File metadata
- Download URL: django-matplotlib-0.1.tar.gz
- Upload date:
- Size: 10.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 627e86ff5a6b3484cad94c9526c18d368088546f804fc84aad2dde322d5eb5b0 |
|
MD5 | 6ac99073f514de8b598c472cf20171f9 |
|
BLAKE2b-256 | d20c658884385b9d9d207e9ae7c4ad26a8d418776e50c4b170b06c50f51aa400 |
File details
Details for the file django_matplotlib-0.1-py3-none-any.whl
.
File metadata
- Download URL: django_matplotlib-0.1-py3-none-any.whl
- Upload date:
- Size: 12.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1b64f59a4e8ce5932f7232911a9fcd26c38ce0ed833fc49d88b0bcd8d2b1e7b |
|
MD5 | cc6b8e464dde17bac1ba0a71c3f70a7b |
|
BLAKE2b-256 | dc4d7a0c6fddcfd1d4f588942613deef43e77165bb9cc13dc98204da03318fb8 |