Visitar URL original
Development by majarall · Pull Request #64 · glamp/bashplotlib · GitHub
Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
title layout
  • Loading branch information
majarall committed Jun 23, 2024
commit a12fbb565725f49969ba7ef2cc353f4ff5c4a9f0
6 changes: 3 additions & 3 deletions bashplotlib/scatterplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def _plot_scatter(xs, ys, size, pch, colour, title, cs):
if title:
print(box_text(title, 2 * len(get_scale(xs, False, size)) + 1))

print("-" * (2 * len(get_scale(xs, False, size)) + 2))
print("+" + "-" * (2 * len(get_scale(xs, False, size)) + 3) + "+")
for y in get_scale(ys, True, size):
print("|", end=' ')
for x in get_scale(xs, False, size):
Expand All @@ -46,8 +46,8 @@ def _plot_scatter(xs, ys, size, pch, colour, title, cs):
if cs:
colour = cs[i]
printcolour(point, True, colour)
print(" |")
print("-" * (2 * len(get_scale(xs, False, size)) + 2))
print(" "*(size+4) + "|")
print("+" + "-" * (2 * len(get_scale(xs, False, size)) + 3) + "+")

def plot_scatter(f, xs, ys, size, pch, colour, title):
"""
Expand Down