Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision
  • main
1 result

Target

Select target project
  • aaslan/dip2-cheatsheet
  • tnellius/dip2-cheatsheet
2 results
Select Git revision
  • main
1 result
Show changes
Commits on Source (2)
......@@ -31,8 +31,8 @@ ones_array = np.ones((rows, cols), dtype = np.uint64)
- Other usefull stuff
```python
np.arange(10,25,step=5) # evenly spaced values
np.linspace(0,2,num=9, dtype) # evenly spaced values
np.arange(10,25,step=5) # evenly spaced values. Specify the stepsize
np.linspace(0,2,num=9, dtype) # evenly spaced values. Specify the number of values
np.eye(2, dtype) # 2x2 identity matrix
np.random.random((2,2)) # 2x2 array with random [0..1) values
np.random.randint(low, high, (2, 2)) # 2x2 array with random integers from [low, high[ (w/o high!)
......@@ -131,13 +131,13 @@ def log_transformation(img):
```
## Plotting
Importing
### Setup
```python
from matplotlib import pyplot as plt
# set up plot
...
plt.title=("Title")
plt.xlabel=("X-axis")
plt.xlabel=("x_label")
plt.ylabel=("y_label")
plt.show()
```
......