Skip to content

Make a post request to the API and get back a png of the graph.

Notifications You must be signed in to change notification settings

apanesar11/matplotlib-flask-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Matplotlib Flask API

Make a post request to the API and get back a png of the graph. Currently only line graphs are supported. Make sure to include x_values and y_values in your post request. The rest of the params (which are optional) can include any of the kwargs found here.

Example:

Request Body (JSON):
{
    "title": "Linear Graph",
    "x_values": [1, 2, 3, 4, 5, 6, 7],
    "y_values": [1, 2, 3, 4, 5, 6, 7],
    "xlabel": "x values",
    "ylabel": "y values"
}
API Response:

'Line Graph'

About

Make a post request to the API and get back a png of the graph.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published