Skip to content

Commit ebe04df

Browse files
authored
Fix typos (#65)
1 parent 6289b61 commit ebe04df

9 files changed

Lines changed: 31 additions & 31 deletions

File tree

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
[![Downloads](https://pepy.tech/badge/plotille/month)](https://pepy.tech/project/plotille)
1111
[![PyPi license](https://img.shields.io/pypi/l/plotille.svg)](https://pypi.python.org/pypi/plotille)
1212

13-
Plots, scatter plots, histograms and heatmaps in the terminal using braille dots, and foreground and background colors - with no dependancies. Make complex figures using the Figure class or make fast and simple plots using graphing function - similar to a very small sibling to matplotlib. Or use the canvas to plot dots, lines and images yourself.
13+
Plots, scatter plots, histograms and heatmaps in the terminal using braille dots, and foreground and background colors - with no dependencies. Make complex figures using the Figure class or make fast and simple plots using graphing function - similar to a very small sibling to matplotlib. Or use the canvas to plot dots, lines and images yourself.
1414

1515
Install:
1616

@@ -41,7 +41,7 @@ In [3]: X = np.sort(np.random.normal(size=1000))
4141

4242
### Figure
4343

44-
To construct plots the recomended way is to use a `Figure`:
44+
To construct plots the recommended way is to use a `Figure`:
4545

4646
```python
4747
In [12]: plotille.Figure?
@@ -155,10 +155,10 @@ Parameters:
155155
X: List[float] X values.
156156
Y: List[float] Y values. X and Y must have the same number of entries.
157157
width: int The number of characters for the width (columns) of the canvas.
158-
hight: int The number of characters for the hight (rows) of the canvas.
158+
height: int The number of characters for the height (rows) of the canvas.
159159
X_label: str Label for X-axis.
160160
Y_label: str Label for Y-axis. max 8 characters.
161-
linesep: str The requested line seperator. default: os.linesep
161+
linesep: str The requested line separator. default: os.linesep
162162
interp: Optional[str] Specify interpolation; values None, 'linear'
163163
x_min, x_max: float Limits for the displayed X values.
164164
y_min, y_max: float Limits for the displayed Y values.
@@ -210,10 +210,10 @@ Parameters:
210210
X: List[float] X values.
211211
Y: List[float] Y values. X and Y must have the same number of entries.
212212
width: int The number of characters for the width (columns) of the canvas.
213-
hight: int The number of characters for the hight (rows) of the canvas.
213+
height: int The number of characters for the height (rows) of the canvas.
214214
X_label: str Label for X-axis.
215215
Y_label: str Label for Y-axis. max 8 characters.
216-
linesep: str The requested line seperator. default: os.linesep
216+
linesep: str The requested line separator. default: os.linesep
217217
x_min, x_max: float Limits for the displayed X values.
218218
y_min, y_max: float Limits for the displayed Y values.
219219
lc: multiple Give the line color.
@@ -259,7 +259,7 @@ Parameters:
259259
bins: int The number of bins to put X entries in (rows).
260260
width: int The number of characters for the width (columns).
261261
log_scale: bool Scale the histogram with `log` function.
262-
linesep: str The requested line seperator. default: os.linesep
262+
linesep: str The requested line separator. default: os.linesep
263263
lc: multiple Give the line color.
264264
bg: multiple Give the background color.
265265
color_mode: str Specify color input mode; 'names' (default), 'byte' or 'rgb'
@@ -304,7 +304,7 @@ Parameters:
304304
Hence, `len(bins) == len(counts) + 1`.
305305
width: int The number of characters for the width (columns).
306306
log_scale: bool Scale the histogram with `log` function.
307-
linesep: str The requested line seperator. default: os.linesep
307+
linesep: str The requested line separator. default: os.linesep
308308
lc: multiple Give the line color.
309309
bg: multiple Give the background color.
310310
color_mode: str Specify color input mode; 'names' (default), 'byte' or 'rgb'
@@ -359,7 +359,7 @@ Parameters:
359359
height: int The number of characters for the height (rows).
360360
X_label: str Label for X-axis.
361361
Y_label: str Label for Y-axis. max 8 characters.
362-
linesep: str The requested line seperator. default: os.linesep
362+
linesep: str The requested line separator. default: os.linesep
363363
x_min, x_max: float Limits for the displayed X values.
364364
y_min, y_max: float Limits for the displayed Y values.
365365
lc: multiple Give the line color.
@@ -411,7 +411,7 @@ Initiate a Canvas object
411411
412412
Parameters:
413413
width: int The number of characters for the width (columns) of the canvas.
414-
hight: int The number of characters for the hight (rows) of the canvas.
414+
height: int The number of characters for the height (rows) of the canvas.
415415
xmin, ymin: float Lower left corner of reference system.
416416
xmax, ymax: float Upper right corner of reference system.
417417
background: multiple Background color of the canvas.
@@ -559,7 +559,7 @@ Docstring:
559559
Transform canvas into `print`-able string
560560
561561
Parameters:
562-
linesep: str The requested line seperator. default: os.linesep
562+
linesep: str The requested line separator. default: os.linesep
563563
564564
Returns:
565565
unicode: The canvas as a string.

examples/color_example.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,21 +34,21 @@ def main():
3434
print(color('and a background.', bg='red'))
3535
print(color('Or both.', fg='black', bg='cyan'))
3636

37-
print(color('Asside from 4-bit / name colors', fg='green', mode='names'))
37+
print(color('Aside from 4-bit / name colors', fg='green', mode='names'))
3838
print(color('you can also set 8-bit colors / 256-color lookup tables', fg=126, bg=87, mode='byte'))
3939
print(color('or go with full 24-bit rgb colors', fg=(50, 50, 50), bg=(166, 237, 240), mode='rgb'))
4040

4141
no_color = os.environ.get('NO_COLOR')
4242
os.environ['NO_COLOR'] = '1'
43-
print(color('The Environmnet variable `NO_COLOR` will always strip colors.', fg='red'))
43+
print(color('The Environment variable `NO_COLOR` will always strip colors.', fg='red'))
4444
if no_color:
4545
os.environ['NO_COLOR'] = no_color
4646
else:
4747
os.environ.pop('NO_COLOR')
4848

4949
force_color = os.environ.get('FORCE_COLOR')
5050
os.environ['FORCE_COLOR'] = '1'
51-
print(color('The Environmnet variable `FORCE_COLOR` allows to toggle colors,', fg='blue'))
51+
print(color('The Environment variable `FORCE_COLOR` allows to toggle colors,', fg='blue'))
5252
os.environ['FORCE_COLOR'] = '0'
5353
print(color('setting it to 0, none or false, strips color codes', fg='magenta'))
5454
os.environ['FORCE_COLOR'] = '1'

examples/custom_ticks_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
# Custom X and Y ticks
3131
#
32-
# You can customize the displayed tick valus on the corresponding axis
32+
# You can customize the displayed tick values on the corresponding axis
3333
# by providing callback functions for each.
3434

3535

examples/wetterdienst_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def main():
122122
fig.plot([1970, 2021], [start, end], label='{} - regression'.format(station))
123123

124124
print('\033[2J') # clear screen
125-
print(' ' * 50 + 'Temperatur of two stations in Germany at 1. Januar')
125+
print(' ' * 50 + 'Temperature of two stations in Germany at 1. January')
126126
print(fig.show(legend=True))
127127

128128

plotille/_canvas.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def __init__(self, width, height, xmin=0, ymin=0, xmax=1, ymax=1, background=Non
5050
5151
Parameters:
5252
width: int The number of characters for the width (columns) of the canvas.
53-
hight: int The number of characters for the hight (rows) of the canvas.
53+
height: int The number of characters for the height (rows) of the canvas.
5454
xmin, ymin: float Lower left corner of reference system.
5555
xmax, ymax: float Upper right corner of reference system.
5656
background: multiple Background color of the canvas.
@@ -366,7 +366,7 @@ def plot(self, linesep=os.linesep):
366366
"""Transform canvas into `print`-able string
367367
368368
Parameters:
369-
linesep: str The requested line seperator. default: os.linesep
369+
linesep: str The requested line separator. default: os.linesep
370370
371371
Returns:
372372
unicode: The canvas as a string.

plotille/_colors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def color(text, fg=None, bg=None, mode='names', no_color=False, full_reset=True)
4949
`ValueErrors`.
5050
5151
If you do not want a foreground or background color, leave the corresponding
52-
paramter `None`. If both are `None`, you get `text` directly.
52+
parameter `None`. If both are `None`, you get `text` directly.
5353
5454
When you stick to mode `names` and only use the none `bright_` versions,
5555
the color control characters conform to ISO 6429 and the ANSI Escape sequences

plotille/_dots.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class Dots(object):
3939
4040
Dot ordering: \u2800 '⠀' - \u28FF '⣿'' Coding according to ISO/TR 11548-1
4141
42-
Hence, each dot on or off is 8bit, i.e. 256 posibilities. With dot number
42+
Hence, each dot on or off is 8bit, i.e. 256 possibilities. With dot number
4343
one being the lsb and 8 is msb:
4444
4545
idx: 8 7 6 5 4 3 2 1

plotille/_figure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ def scatter(self, X, Y, lc=None, label=None, marker=None):
338338
def histogram(self, X, bins=160, lc=None):
339339
"""Compute and plot the histogram over X.
340340
341-
Paramaters:
341+
Parameters:
342342
X: List[float] X values.
343343
bins: int The number of bins to put X entries in (columns).
344344
lc: multiple The line color.

plotille/_graphs.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def hist_aggregated(counts, bins, width=80, log_scale=False, linesep=os.linesep,
4444
Hence, `len(bins) == len(counts) + 1`.
4545
width: int The number of characters for the width (columns).
4646
log_scale: bool Scale the histogram with `log` function.
47-
linesep: str The requested line seperator. default: os.linesep
47+
linesep: str The requested line separator. default: os.linesep
4848
lc: multiple Give the line color.
4949
bg: multiple Give the background color.
5050
color_mode: str Specify color input mode; 'names' (default), 'byte' or 'rgb'
@@ -69,12 +69,12 @@ def _scale(a):
6969
canvas = [' bucket | {} {}'.format('_' * width, 'Total Counts')]
7070
lasts = ['', '⠂', '⠆', '⠇', '⡇', '⡗', '⡷', '⡿']
7171
for i in range(bins_count):
72-
hight = int(width * 8 * _scale(h[i]) / h_max)
72+
height = int(width * 8 * _scale(h[i]) / h_max)
7373
canvas += ['[{}, {}) | {} {}'.format(
7474
ipf.fmt(b[i], delta=delta, chars=8, left=True),
7575
ipf.fmt(b[i + 1], delta=delta, chars=8, left=False),
76-
color('⣿' * (hight // 8) + lasts[hight % 8], fg=lc, bg=bg, mode=color_mode)
77-
+ color('\u2800' * (width - (hight // 8) + int(hight % 8 == 0)), bg=bg, mode=color_mode),
76+
color('⣿' * (height // 8) + lasts[height % 8], fg=lc, bg=bg, mode=color_mode)
77+
+ color('\u2800' * (width - (height // 8) + int(height % 8 == 0)), bg=bg, mode=color_mode),
7878
h[i])]
7979
canvas += ['‾' * (2 * 8 + 2 + 3 + width + 12)]
8080
return linesep.join(canvas)
@@ -92,7 +92,7 @@ def hist(X, bins=40, width=80, log_scale=False, linesep=os.linesep,
9292
bins: int The number of bins to put X entries in (rows).
9393
width: int The number of characters for the width (columns).
9494
log_scale: bool Scale the histogram with `log` function.
95-
linesep: str The requested line seperator. default: os.linesep
95+
linesep: str The requested line separator. default: os.linesep
9696
lc: multiple Give the line color.
9797
bg: multiple Give the background color.
9898
color_mode: str Specify color input mode; 'names' (default), 'byte' or 'rgb'
@@ -121,7 +121,7 @@ def histogram(X, bins=160, width=80, height=40, X_label='X', Y_label='Counts', l
121121
height: int The number of characters for the height (rows).
122122
X_label: str Label for X-axis.
123123
Y_label: str Label for Y-axis. max 8 characters.
124-
linesep: str The requested line seperator. default: os.linesep
124+
linesep: str The requested line separator. default: os.linesep
125125
x_min, x_max: float Limits for the displayed X values.
126126
y_min, y_max: float Limits for the displayed Y values.
127127
lc: multiple Give the line color.
@@ -170,10 +170,10 @@ def scatter(X, Y, width=80, height=40, X_label='X', Y_label='Y', linesep=os.line
170170
X: List[float] X values.
171171
Y: List[float] Y values. X and Y must have the same number of entries.
172172
width: int The number of characters for the width (columns) of the canvas.
173-
hight: int The number of characters for the hight (rows) of the canvas.
173+
height: int The number of characters for the height (rows) of the canvas.
174174
X_label: str Label for X-axis.
175175
Y_label: str Label for Y-axis. max 8 characters.
176-
linesep: str The requested line seperator. default: os.linesep
176+
linesep: str The requested line separator. default: os.linesep
177177
x_min, x_max: float Limits for the displayed X values.
178178
y_min, y_max: float Limits for the displayed Y values.
179179
lc: multiple Give the line color.
@@ -200,10 +200,10 @@ def plot(X, Y, width=80, height=40, X_label='X', Y_label='Y', linesep=os.linesep
200200
X: List[float] X values.
201201
Y: List[float] Y values. X and Y must have the same number of entries.
202202
width: int The number of characters for the width (columns) of the canvas.
203-
hight: int The number of characters for the hight (rows) of the canvas.
203+
height: int The number of characters for the height (rows) of the canvas.
204204
X_label: str Label for X-axis.
205205
Y_label: str Label for Y-axis. max 8 characters.
206-
linesep: str The requested line seperator. default: os.linesep
206+
linesep: str The requested line separator. default: os.linesep
207207
interp: Optional[str] Specify interpolation; values None, 'linear'
208208
x_min, x_max: float Limits for the displayed X values.
209209
y_min, y_max: float Limits for the displayed Y values.

0 commit comments

Comments
 (0)