@@ -28,11 +28,11 @@ def get_scale(series, is_y=False, steps=20):
28
28
return scaled_series
29
29
30
30
31
- def _plot_scatter (xs , ys , size , pch , colour , title , cs ):
31
+ def _plot_scatter (xs , ys , size , pch , colour , title , cs , title_align ):
32
32
plotted = set ()
33
33
34
34
if title :
35
- print (box_text (title , 2 * (len (get_scale (xs , False , size )) + 1 )))
35
+ print (box_text (title , 2 * (len (get_scale (xs , False , size )) + 1 ), title_align ))
36
36
37
37
print ("-" * (2 * (len (get_scale (xs , False , size )) + 2 )))
38
38
for y in get_scale (ys , True , size ):
@@ -49,7 +49,7 @@ def _plot_scatter(xs, ys, size, pch, colour, title, cs):
49
49
print (" |" )
50
50
print ("-" * (2 * (len (get_scale (xs , False , size )) + 2 )))
51
51
52
- def plot_scatter (f , xs , ys , size , pch , colour , title ):
52
+ def plot_scatter (f , xs , ys , size , pch , colour , title , title_align ):
53
53
"""
54
54
Form a complex number.
55
55
@@ -81,7 +81,7 @@ def plot_scatter(f, xs, ys, size, pch, colour, title):
81
81
with open (ys ) as fh :
82
82
ys = [float (str (row ).strip ()) for row in fh ]
83
83
84
- _plot_scatter (xs , ys , size , pch , colour , title , cs )
84
+ _plot_scatter (xs , ys , size , pch , colour , title , cs , title_align )
85
85
86
86
87
87
0 commit comments