Skip to content

Commit

Permalink
final file restructuring
Browse files Browse the repository at this point in the history
  • Loading branch information
juliangaal committed Mar 10, 2017
1 parent 6d08f3c commit 90c7feb
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 15 deletions.
27 changes: 27 additions & 0 deletions Matplotlib/Matplotlib.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# THIS GUIDE IS IN ITS VERY EARLY STAGES AND STILL IN DEVELOPMENT. not much thats helpful here right now

# Matplotlib

## Index
Classic example: gdp per capita and life expectancy
```python
# gdp_cap on the x-axis, life_exp on the y-axis
plt.plot(gdp_cap, life_exp)

# Display the plot
plt.show()
```
result:

### Customization
label
xticks
title

.text
.grid (True/False)

*common arguments for matplotlib diagrams*
size
color
alpha (opacity)
6 changes: 6 additions & 0 deletions NumPy.md → NumPy/NumPy.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ This cheat sheet acts as a intro to Python for data science. ***Contact me [here
4. [Slicing and Subsetting](#ss)
- [Examples](#exp)
5. [Tricks](#tricks)
6. [Credits](#creds)

</br>

Expand Down Expand Up @@ -275,3 +276,8 @@ print(x[x < 5])

```

</br>

## Credits <a name="creds"></a>
[Datacamp](https://www.datacamp.com/home),
[Quandl](https://s3.amazonaws.com/quandl-static-content/Documents/Quandl+-+Pandas,+SciPy,+NumPy+Cheat+Sheet.pdf) & [Official docs](https://docs.scipy.org/doc/numpy/)
3 changes: 2 additions & 1 deletion code/boolean-indexing.py → NumPy/numpy-examples.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Just a short test file for playing around
# THIS IS AN UNSTRUCTURED TEST FILE
import numpy as np

# Index trick when working with two np-arrays
Expand All @@ -10,6 +10,7 @@
# Saves every spot in a except at index where b != 1
other_other_a = a[b != 1]

# BOOLEAN INDEXING
x = np.array([4, 6, 8, 1, 2, 6, 9])
y = x > 5
print(x[y])
Expand Down
14 changes: 0 additions & 14 deletions roadmap.md

This file was deleted.

0 comments on commit 90c7feb

Please sign in to comment.