Browse Source

Libraries

pull/9/head
Jure Šorn 6 years ago
parent
commit
510fc4f2cf
1 changed files with 2 additions and 8 deletions
  1. 10
      README.md

10
README.md

@ -1211,9 +1211,6 @@ Plot
```python ```python
# $ pip3 install matplotlib # $ pip3 install matplotlib
from matplotlib import pyplot from matplotlib import pyplot
```
```python
pyplot.plot(<data_1> [, <data_2>, ...]) pyplot.plot(<data_1> [, <data_2>, ...])
pyplot.show() pyplot.show()
pyplot.savefig(<filename>, transparent=True) pyplot.savefig(<filename>, transparent=True)
@ -1226,9 +1223,6 @@ Progress Bar
# $ pip3 install tqdm # $ pip3 install tqdm
from tqdm import tqdm from tqdm import tqdm
from time import sleep from time import sleep
```
```python
for i in tqdm(range(100)): for i in tqdm(range(100)):
sleep(0.02) sleep(0.02)
for i in tqdm([1, 2, 3]): for i in tqdm([1, 2, 3]):
@ -1238,13 +1232,13 @@ for i in tqdm([1, 2, 3]):
Table Table
----- -----
#### Prints CSV file as ASCII table:
```python ```python
# $ pip3 install tabulate # $ pip3 install tabulate
from csv import reader from csv import reader
from tabulate import tabulate from tabulate import tabulate
``` ```
#### Prints CSV file as ASCII table:
```python ```python
with open(<filename>, newline='') as csv_file: with open(<filename>, newline='') as csv_file:
reader = reader(csv_file, delimiter=';') reader = reader(csv_file, delimiter=';')
@ -1435,7 +1429,7 @@ timeit('"-".join(str(a) for a in range(100))',
``` ```
### Call Graph ### Call Graph
#### Generates a PNG image of call graph with highlighted the bottlenecks.
#### Generates a PNG image of call graph with highlighted bottlenecks.
```python ```python
# $ pip3 install pycallgraph # $ pip3 install pycallgraph
from pycallgraph import output, PyCallGraph from pycallgraph import output, PyCallGraph

Loading…
Cancel
Save