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 hashes)
Built Distribution
Close
Hashes for django_matplotlib-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1b64f59a4e8ce5932f7232911a9fcd26c38ce0ed833fc49d88b0bcd8d2b1e7b |
|
MD5 | cc6b8e464dde17bac1ba0a71c3f70a7b |
|
BLAKE2b-256 | dc4d7a0c6fddcfd1d4f588942613deef43e77165bb9cc13dc98204da03318fb8 |