Expose matplotlib figures over http
Project description
plotserver
=======
Expose your matplotlib figures over http with 1 line of code
Installation
------------
.. code-block:: shell
pip install plotserver
Example usage
-------------
plotting a pylab environment
.. code-block:: python
import plotserver as pls
import pylab
pylab.plot([1,2,3,4,1,2,3,4])
pylab.xlabel("numbers")
pylab.ylabel("values")
# display plot using webserver at http://0.0.0.0:8080/
pls.show(pylab)
plotting a matplotlib figure
.. code-block:: python
import plotserver as pls
from matplotlib import pyplot
fig = pyplot.figure()
axes = fig.gca()
axes.plot([1,2,3,4,1,2,3,4])
# display plot using webserver at http://127.0.0.1:9999/
pls.show(fig, host="127.0.0.1", port=9999)
=======
Expose your matplotlib figures over http with 1 line of code
Installation
------------
.. code-block:: shell
pip install plotserver
Example usage
-------------
plotting a pylab environment
.. code-block:: python
import plotserver as pls
import pylab
pylab.plot([1,2,3,4,1,2,3,4])
pylab.xlabel("numbers")
pylab.ylabel("values")
# display plot using webserver at http://0.0.0.0:8080/
pls.show(pylab)
plotting a matplotlib figure
.. code-block:: python
import plotserver as pls
from matplotlib import pyplot
fig = pyplot.figure()
axes = fig.gca()
axes.plot([1,2,3,4,1,2,3,4])
# display plot using webserver at http://127.0.0.1:9999/
pls.show(fig, host="127.0.0.1", port=9999)
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
plotserver-0.5.tar.gz
(1.7 kB
view details)
File details
Details for the file plotserver-0.5.tar.gz.
File metadata
- Download URL: plotserver-0.5.tar.gz
- Upload date:
- Size: 1.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
be8bb2a5d45dee6cb959262fbdd062384b0f21de301bf543b946577885a27391
|
|
| MD5 |
9e587ca33af427c25e6f4a6365bec031
|
|
| BLAKE2b-256 |
c949d6148c053b1e128866cb327c8b59577eeee8a1b489178e15fa61eaec9241
|