Browse Source

Libraries

pull/3/head
Jure Šorn 7 years ago
parent
commit
5565093103
1 changed files with 5 additions and 5 deletions
  1. 10
      README.md

10
README.md

@ -776,7 +776,7 @@ Libraries
Plot Plot
---- ----
```python ```python
# pip3 install matplotlib
# $ pip3 install matplotlib
from matplotlib import pyplot from matplotlib import pyplot
pyplot.plot(<data> [, <data>]) pyplot.plot(<data> [, <data>])
pyplot.show() pyplot.show()
@ -786,7 +786,7 @@ pyplot.savefig(filename)
Web Web
--- ---
```python ```python
# pip3 install bottle
# $ pip3 install bottle
import bottle import bottle
import urllib import urllib
``` ```
@ -833,7 +833,7 @@ def p_handler(sport):
Curses Curses
------ ------
```python ```python
# pip3 install curses
# $ pip3 install curses
import curses import curses
def main(): def main():
@ -875,7 +875,7 @@ timeit('"-".join(str(n) for n in range(100))', number=1000000)
#### Generates a PNG image of call graph and highlights the bottlenecks: #### Generates a PNG image of call graph and highlights the bottlenecks:
```python ```python
# pip3 install pycallgraph
# $ pip3 install pycallgraph
import pycallgraph import pycallgraph
graph = pycallgraph.output.GraphvizOutput() graph = pycallgraph.output.GraphvizOutput()
graph.output_file = get_filename() graph.output_file = get_filename()
@ -949,7 +949,7 @@ for i in Bar.range(100):
#### Progress: #### Progress:
```python ```python
# pip3 install progress
# $ pip3 install progress
from progress.bar import Bar from progress.bar import Bar
from time import sleep from time import sleep
STEPS = 100 STEPS = 100

Loading…
Cancel
Save