Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
YannBouyeron authored Jul 19, 2019
1 parent 1ca4923 commit d4ea1a5
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,17 @@ Pandas pour les SVT
4 4 16

>>> lin = kf.lin("abs", "ord")
>>>



<p align="center">
<img src="Images/ma_matrice.png">
</p>



>>> lin
AttrDict({'a': 1.9999999999999998, 'b': 8.000000000000002, 'r': 1.0, 'equation': 'y = 2.0x + 8.0', 'graph': <module 'matplotlib.pyplot' from '/usr/local/lib/python3.6/site-packages/matplotlib/pyplot.py'>})
AttrDict({'a': 1.9999999999999998, 'b': 8.000000000000002, 'r': 1.0, 'equation': 'y = 2.0x + 8.0', 'graph': <module 'matplotlib.pyplot' from '/usr/local/lib/python3.6/site-packages/matplotlib/pyplot.py'>})
>>>
>>> lin.a
1.9999999999999998
Expand All @@ -52,10 +60,21 @@ Pandas pour les SVT
'y = 2.0x + 8.0'

>>> plt = lin.graph

>>> plt.text(7.5, 15, lin.equation, fontsize=8)
Text(7.5,15,'y = 2.0x + 8.0')

>>> plt.text(7.5, 10, "R = " + str(lin.r), fontsize=8)
Text(7.5,10,'R = 1.0')

>>> plt.show()


<p align="center">
<img src="Images/ma_matrice.png">
</p>



>>> plt.savefig("linplot.png")

0 comments on commit d4ea1a5

Please sign in to comment.