Skip to content

Commit e8fbf82

Browse files
committed
comment
1 parent d32cd9f commit e8fbf82

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

python/paddle/utils/plot.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ def reset(self):
3030

3131

3232
class Ploter(object):
33-
'''
33+
"""
3434
Plot input data in a 2D graph
3535
3636
Args:
3737
title: assign the title of input data.
3838
step: x_axis of the data.
3939
value: y_axis of the data
40-
'''
40+
"""
4141

4242
def __init__(self, *args):
4343
self.__args__ = args
@@ -59,7 +59,7 @@ def __plot_is_disabled__(self):
5959
return self.__disable_plot__ == "True"
6060

6161
def append(self, title, step, value):
62-
'''
62+
"""
6363
Feed data
6464
6565
Args:
@@ -71,15 +71,15 @@ def append(self, title, step, value):
7171
.. code-block:: python
7272
plot_curve = Ploter("Curve 1","Curve 2")
7373
plot_curve.append(title="Curve 1",step=1,value=1)
74-
'''
74+
"""
7575
assert isinstance(title, basestring)
7676
assert self.__plot_data__.has_key(title)
7777
data = self.__plot_data__[title]
7878
assert isinstance(data, PlotData)
7979
data.append(step, value)
8080

8181
def plot(self, path=None):
82-
'''
82+
"""
8383
Plot data in a 2D graph
8484
8585
Args:
@@ -89,7 +89,7 @@ def plot(self, path=None):
8989
.. code-block:: python
9090
plot_curve = Ploter()
9191
plot_cure.plot()
92-
'''
92+
"""
9393
if self.__plot_is_disabled__():
9494
return
9595

0 commit comments

Comments
 (0)