Skip to main content

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.



Django 1.11+, <3.0; Python 3.5+, <3.8.

Quick start

  1. Clone git repository to place where Django can find it:

pip install django-matplotlib
  1. Add “django_matplotlib” to your INSTALLED_APPS setting like this:

  1. Use MatplotlibField in your, e.g.:

from django.db import models
from django_matplotlib.fields import MatplotlibFigureField

class MyModelWithFigure(models.Model):
    # ... other fields
    # should be in the same directory where is placed.
    # see  ./django_matplotlib/ for example.
    fig = MatplotlibFigureField(figure='test_figure', verbose_name='figure',
    # ... other fields
  1. Generate and apply migrations.


Dmitry E. Kislov


Project details

Release history Release notifications | RSS feed

This version


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)

Uploaded source

Built Distribution

django_matplotlib-0.1-py3-none-any.whl (12.5 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page