Skip to content

Commit

Permalink
Merge pull request matplotlib#1 from Ka1lon/master
Browse files Browse the repository at this point in the history
update requirements tinker with pig KPlot
  • Loading branch information
swfiua committed Dec 2, 2016
2 parents bf9ac85 + 28955a5 commit de09283
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
6 changes: 6 additions & 0 deletions docs/requirements.rst
Expand Up @@ -20,3 +20,9 @@ imageio

Working towards just using matplotlib.

pyqt5
=====

For the pig module (a pyqt graphical user interface) pyqt5 is required::

pip3 install pyqt5
7 changes: 6 additions & 1 deletion karmapi/pig.py
Expand Up @@ -159,7 +159,7 @@ def __init__(self, parent=None):
rows = [[Console, Console], [Console, Console]]
rows = [[Image, Image]]
rows = [[Table, Table]]
rows = [[Image, Video]]
rows = [[KPlot, Video]]

# FIXME create the widget
vlayout = qtw.QVBoxLayout(parent)
Expand Down Expand Up @@ -224,7 +224,12 @@ def plot(self):
"""
self.axes.imshow(self.data)

class KPlot(Image):

def compute_data(self):

self.data = [list(range(100)) for x in range(100)]


class Video(Image):
""" a video widget
Expand Down

0 comments on commit de09283

Please sign in to comment.