@@ -33,7 +33,7 @@ In [3]: X = sorted(np.random.normal(size=1000))
3333** Plot:**
3434``` python
3535In [4 ]: plotille.plot?
36- Signature: plot(X, Y, width = 80 , height = 50 , X_label = ' X' , Y_label = ' Y' , linesep = ' \n ' , interp = ' linear' )
36+ Signature: plot(X, Y, width = 80 , height = 50 , X_label = ' X' , Y_label = ' Y' , linesep = os.linesep , interp = ' linear' )
3737Docstring:
3838Create plot with X , Y values and linear interpolation between points
3939
@@ -56,10 +56,13 @@ In [5]: print(plotille.plot(X, np.sin(X), height=50))
5656** Scatter:**
5757```python
5858In [6 ]: plotille.scatter?
59- Signature: plotille. scatter(X, Y, width = 80 , height = 50 , X_label = ' X' , Y_label = ' Y' , linesep = ' \n ' )
59+ Signature: scatter(X, Y, width = 80 , height = 50 , X_label = u ' X' , Y_label = u ' Y' , linesep = os.linesep )
6060Docstring:
6161Create scatter plot with X , Y values
6262
63+ Basically plotting without interpolation:
64+ `plot(X, Y, ... , interp = None )`
65+
6366Parameters:
6467 X: List[float ] X values.
6568 Y: List[float ] Y values. X and Y must have the same number of entries.
@@ -80,10 +83,13 @@ In [7]: print(plotille.scatter(X, np.sin(X), height=50))
8083Inspired by [crappyhist](http:// kevinastraight.x10host.com/ 2013 / 12 / 28 / python- histograms- from - the- console/ ).
8184```python
8285In [8 ]: plotille.hist?
83- Signature: plotille. hist(X, bins = 50 , width = 80 , log_scale = False , linesep = ' \n ' )
86+ Signature: hist(X, bins = 50 , width = 80 , log_scale = False , linesep = os.linesep )
8487Docstring:
8588Create histogram over `X`
8689
90+ The values on the left are the center of the bucket, i.e. `(bin [i] + bin [i+ 1 ]) / 2 ` .
91+ The values on the right are the total counts of this bucket.
92+
8793Parameters:
8894 X: List[float ] The items to count over.
8995 bins: int The number of bins to put X entries in (rows).
0 commit comments