Skip to content

Commit

Permalink
added version 5.2.7: solved issue 130 about python3.7 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
piccolomo committed Sep 24, 2022
1 parent 001d71e commit b3d5a2a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion plotext/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""\nplotext plots directly on terminal"""

__name__ = "plotext"
__version__ = "5.2.6"
__version__ = "5.2.7"

from ._core import *
from .plotext_cli import build_parser
4 changes: 2 additions & 2 deletions plotext/_utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ def get_lines(x, y, *other): # it returns the lines between all couples of data
xl = xl + [x[-1]] if x != [] else xl
yl = yl + [y[-1]] if x != [] else yl
ol = ol + [o[-1]] if x != [] else ol
return xl, yl, *transpose(ol, len(other))
return [xl, yl] + transpose(ol, len(other))

def get_line(x, y): # it returns a line of points from x[0],y[0] to x[1],y[1] distanced between each other in x and y by at least 1.
if not all_numerical(join([x, y])):
Expand Down Expand Up @@ -617,7 +617,7 @@ def fill_data(x, y, y0, *other): # it fills x, y with y data points reaching y0;
xf += xn
yf += yn
of += [o[i]] * len(xn)
return [xf, yf, *transpose(of, len(other))]
return [xf, yf] + transpose(of, len(other))

def remove_outsiders(x, y, width, height, *other):
I = [i for i in range(len(x)) if x[i] in range(width) and y[i] in range(height)]
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
author = "Savino Piccolomo",
author_email = "[email protected]",
name = 'plotext',
version='5.2.6',
version='5.2.7',
description = 'plotext plots directly on terminal',
long_description = README,
long_description_content_type = "text/markdown",
Expand Down

0 comments on commit b3d5a2a

Please sign in to comment.