Skip to content

Commit 6cd2c7e

Browse files
committed
task 4
1 parent ce79b68 commit 6cd2c7e

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

app.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
11
# scratch.py
22
from bashplotlib.scatterplot import plot_scatter
3+
from bashplotlib.histogram import plot_hist
34

4-
x_coords = [-10,20,30]
5-
y_coords = [-10,20,30]
6-
width = 10
5+
x_coords = [0,20,30, 5]
6+
y_coords = [-10,20,30, 0]
7+
width = 20
78
char = 'x'
89
color = 'default'
910
title = 'My Test Graph'
1011

11-
plot_scatter(
12+
print(plot_scatter(
1213
None,
1314
x_coords,
1415
y_coords,
1516
width,
1617
char,
1718
color,
18-
title)
19+
title))
20+
plot_hist(x_coords, 20.0, None, None, "o", "default", title, None, True, False)

bashplotlib/histogram.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ def plot_hist(f, height=20.0, bincount=None, binwidth=None, pch="o", colour="def
202202
center += 15
203203

204204
if showSummary:
205-
print()
205+
print("")
206206
print("-" * (2 + center))
207207
print("|" + "Summary".center(center) + "|")
208208
print("-" * (2 + center))

0 commit comments

Comments
 (0)