myPlot4Test.py 1.01 KB
Newer Older
Yori 'AGy' Fournier's avatar
Yori 'AGy' Fournier committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# ================= FILE HEADER ========================================
#
#   myplotlib v0.0.0,
#
#   @file      myPlot4Test.py
#   @author    Yori 'AGy' Fournier
#   @licence   CC-BY-SA
#
#   myPlot4Test module: a foo plotting script used in tests
#
#   @function somePlottingRoutine
#
#         demonstrate minimal usage of myplotlib
#
#   @section History
#
#   v 0.0.0 - myPlot4Test for the myplotlib module.
#
# ======================================================================
#
# IMPORT ---------------------------------------------------------------
25
26
from . import readStupidData, print2file, MyFig4Test
from . import INFO, SEVR
Yori 'AGy' Fournier's avatar
Yori 'AGy' Fournier committed
27
28
29
30
31
32
33
34
35
36
37
38
39
40


# DEFINE SOME STANDARD SCRIPT ------------------------------------------
def somePlottingRoutine(data):
    
    identifier = readStupidData(ipath=data)
    
    if print2file(MyFig4Test, identifier, 'myPlot.png'):
        print(INFO + 'somePlottingRoutine: DONE')
    else:
        print(SEVR + '--> EXIT')
        return False
    
    return True