<filename>venv/lib/python2.7/site-packages/SimpleGUICS2Pygame/test/test_simpleplot_lines.py
#!/usr/bin/env python
# -*- coding: latin-1 -*-

"""
Test simpleplot lines. (September 2, 2014)

Piece of SimpleGUICS2Pygame.
https://bitbucket.org/OPiMedia/simpleguics2pygame

GPLv3 --- Copyright (C) 2013, 2014 <NAME>
http://www.opimedia.be/
"""

try:
    import simplegui  # to avoid other simpleplot available in Python
    import simpleplot

    SIMPLEGUICS2PYGAME = False
except ImportError:
    import SimpleGUICS2Pygame.simpleplot as simpleplot

    SIMPLEGUICS2PYGAME = True


if SIMPLEGUICS2PYGAME:
    from sys import version as python_version
    from matplotlib import __version__ as matplotlib_version

    PYTHON_VERSION = 'Python ' + python_version.split()[0]
    MATPLOTLIB_VERSION = 'matplotlib ' + matplotlib_version
else:
    PYTHON_VERSION = 'CodeSkulptor'  # http://www.codeskulptor.org/
    MATPLOTLIB_VERSION = ''

datalist = [(1, 2), (2, 3), (5, 4), (8, 3), (9, 2)]
dataset = {1: 3, 2: 4, 5: 5, 8: 4, 9: 3}

filename = None

if SIMPLEGUICS2PYGAME:
    from sys import argv

    if len(argv) == 2:
        filename = argv[1]

simpleplot.plot_lines('Test plot_lines 1', 400, 400, 'x', 'y',
                      (datalist, dataset))

if filename is None:
    simpleplot.plot_lines('Test plot_lines 2', 400, 400, 'x', 'y',
                          (datalist, dataset),
                          True, ('datalist', 'dataset'))
else:
    simpleplot.plot_lines('Test plot_lines 2', 400, 400, 'x', 'y',
                          (datalist, dataset),
                          True, ('datalist', 'dataset'),
                          _filename=filename)

if SIMPLEGUICS2PYGAME and (len(argv) != 2):
    simpleplot._block()

<filename>venv/lib/python2.7/site-packages/SimpleGUICS2Pygame/test/test_simpleplot_lines.py
#!/usr/bin/env python
# -*- coding: latin-1 -*-

"""
Test simpleplot lines. (September 2, 2014)

Piece of SimpleGUICS2Pygame.
https://bitbucket.org/OPiMedia/simpleguics2pygame

GPLv3 --- Copyright (C) 2013, 2014 <NAME>
http://www.opimedia.be/
"""

try:
    import simplegui  # to avoid other simpleplot available in Python
    import simpleplot

    SIMPLEGUICS2PYGAME = False
except ImportError:
    import SimpleGUICS2Pygame.simpleplot as simpleplot

    SIMPLEGUICS2PYGAME = True


if SIMPLEGUICS2PYGAME:
    from sys import version as python_version
    from matplotlib import __version__ as matplotlib_version

    PYTHON_VERSION = 'Python ' + python_version.split()[0]
    MATPLOTLIB_VERSION = 'matplotlib ' + matplotlib_version
else:
    PYTHON_VERSION = 'CodeSkulptor'  # http://www.codeskulptor.org/
    MATPLOTLIB_VERSION = ''

datalist = [(1, 2), (2, 3), (5, 4), (8, 3), (9, 2)]
dataset = {1: 3, 2: 4, 5: 5, 8: 4, 9: 3}

filename = None

if SIMPLEGUICS2PYGAME:
    from sys import argv

    if len(argv) == 2:
        filename = argv[1]

simpleplot.plot_lines('Test plot_lines 1', 400, 400, 'x', 'y',
                      (datalist, dataset))

if filename is None:
    simpleplot.plot_lines('Test plot_lines 2', 400, 400, 'x', 'y',
                          (datalist, dataset),
                          True, ('datalist', 'dataset'))
else:
    simpleplot.plot_lines('Test plot_lines 2', 400, 400, 'x', 'y',
                          (datalist, dataset),
                          True, ('datalist', 'dataset'),
                          _filename=filename)

if SIMPLEGUICS2PYGAME and (len(argv) != 2):
    simpleplot._block()

#!/usr/bin/env python # -*- coding: latin-1 -*- Test simpleplot lines. (September 2, 2014)  Piece of SimpleGUICS2Pygame. https://bitbucket.org/OPiMedia/simpleguics2pygame  GPLv3 --- Copyright (C) 2013, 2014 <NAME> http://www.opimedia.be/ # to avoid other simpleplot available in Python # http://www.codeskulptor.org/