Skip to content

Commit b6d55d6

Browse files
committed
added axes and origin in graph
1 parent 6418e7f commit b6d55d6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

bashplotlib/scatterplot.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,14 @@ def _plot_scatter(xs, ys, size, pch, colour, title, cs, x_title, y_title):
4949
plotted.add((xp, yp))
5050
if cs:
5151
colour = cs[i]
52+
# print axes
53+
if point != pch:
54+
if x == 0.0 and y == 0.0:
55+
point = "o"
56+
elif x == 0.0:
57+
point = "|"
58+
elif y == 0.0:
59+
point = "-"
5260
printcolour(point + " ", True, colour)
5361
print(" |")
5462
print(" +" + "-" * (2 * (len(get_scale(xs, False, size)) + 2) - 2) + "+")

0 commit comments

Comments
 (0)