Skip to content

Commit fee5557

Browse files
committed
update readme
1 parent 7830009 commit fee5557

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
Ask yourself the following:
88
* Are you using `matplotlib.pyplot` to plot pytorch tensors?
9-
* Do you forget to call `.cpu().detach().numpy()` everytime you want to plot a tensor
9+
* Do you forget to call `.cpu().detach().numpy()` everytime you want to plot a tensor?
1010

1111
Then `torchplot` may be something for you. `torchplot` is a simple drop-in replacement
1212
for plotting pytorch tensors. We simply override every `matplotlib.pyplot` function such
@@ -16,25 +16,25 @@ Simply just change your default `matplotlib` import statement:
1616

1717

1818
Instead of
19-
```
19+
``` python
2020
from matplotlib.pyplot import *
2121
```
2222
use
23-
```
23+
``` python
2424
from torchplot import *
2525
```
2626
and instead of
27-
```
27+
``` python
2828
import matplotlib.pyplot as plt
2929
```
3030
use
31-
```
31+
``` python
3232
import torchplot as plt
3333
```
3434
Herafter, then you can remove every `.cpu().detach().numpy()` (or variations heroff) from
3535
your code and everything should just work. If you do not want to mix implementations,
3636
we recommend importing `torchplot` as seperaly package:
37-
```
37+
``` python
3838
import torchplot as tp
3939
```
4040

0 commit comments

Comments
 (0)