Skip to content

Commit bf55cbc

Browse files
committed
first task
1 parent cded03a commit bf55cbc

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

app.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# scratch.py
2+
from bashplotlib.scatterplot import plot_scatter
3+
4+
x_coords = [-10,20,30]
5+
y_coords = [-10,20,30]
6+
width = 10
7+
char = 'x'
8+
color = 'default'
9+
title = 'My Test Graph'
10+
11+
plot_scatter(
12+
None,
13+
x_coords,
14+
y_coords,
15+
width,
16+
char,
17+
color,
18+
title)

bashplotlib/utils/helpers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def box_text(text, width, offset=0):
8080
"""
8181
Return text inside an ascii textbox
8282
"""
83-
box = " " * offset + "-" * (width+2) + "\n"
83+
box = " " * offset + "+" + "-" * (width) + "+" + "\n"
8484
box += " " * offset + "|" + text.center(width) + "|" + "\n"
85-
box += " " * offset + "-" * (width+2)
85+
box += " " * offset + "+" + "-" * (width) + "+"
8686
return box

0 commit comments

Comments
 (0)