@@ -30,14 +30,14 @@ def reset(self):
30
30
31
31
32
32
class Ploter (object ):
33
- '''
33
+ """
34
34
Plot input data in a 2D graph
35
35
36
36
Args:
37
37
title: assign the title of input data.
38
38
step: x_axis of the data.
39
39
value: y_axis of the data
40
- '''
40
+ """
41
41
42
42
def __init__ (self , * args ):
43
43
self .__args__ = args
@@ -59,7 +59,7 @@ def __plot_is_disabled__(self):
59
59
return self .__disable_plot__ == "True"
60
60
61
61
def append (self , title , step , value ):
62
- '''
62
+ """
63
63
Feed data
64
64
65
65
Args:
@@ -71,15 +71,15 @@ def append(self, title, step, value):
71
71
.. code-block:: python
72
72
plot_curve = Ploter("Curve 1","Curve 2")
73
73
plot_curve.append(title="Curve 1",step=1,value=1)
74
- '''
74
+ """
75
75
assert isinstance (title , basestring )
76
76
assert self .__plot_data__ .has_key (title )
77
77
data = self .__plot_data__ [title ]
78
78
assert isinstance (data , PlotData )
79
79
data .append (step , value )
80
80
81
81
def plot (self , path = None ):
82
- '''
82
+ """
83
83
Plot data in a 2D graph
84
84
85
85
Args:
@@ -89,7 +89,7 @@ def plot(self, path=None):
89
89
.. code-block:: python
90
90
plot_curve = Ploter()
91
91
plot_cure.plot()
92
- '''
92
+ """
93
93
if self .__plot_is_disabled__ ():
94
94
return
95
95
0 commit comments