@@ -28,11 +28,11 @@ def get_scale(series, is_y=False, steps=20):
2828 return scaled_series
2929
3030
31- def _plot_scatter (xs , ys , size , pch , colour , title , cs ):
31+ def _plot_scatter (xs , ys , size , pch , colour , title , cs , title_align ):
3232 plotted = set ()
3333
3434 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 ))
3636
3737 print ("-" * (2 * (len (get_scale (xs , False , size )) + 2 )))
3838 for y in get_scale (ys , True , size ):
@@ -49,7 +49,7 @@ def _plot_scatter(xs, ys, size, pch, colour, title, cs):
4949 print (" |" )
5050 print ("-" * (2 * (len (get_scale (xs , False , size )) + 2 )))
5151
52- def plot_scatter (f , xs , ys , size , pch , colour , title ):
52+ def plot_scatter (f , xs , ys , size , pch , colour , title , title_align ):
5353 """
5454 Form a complex number.
5555
@@ -81,7 +81,7 @@ def plot_scatter(f, xs, ys, size, pch, colour, title):
8181 with open (ys ) as fh :
8282 ys = [float (str (row ).strip ()) for row in fh ]
8383
84- _plot_scatter (xs , ys , size , pch , colour , title , cs )
84+ _plot_scatter (xs , ys , size , pch , colour , title , cs , title_align )
8585
8686
8787
0 commit comments