Skip to content

Commit b1352c1

Browse files
committed
added python colors
1 parent afc85b9 commit b1352c1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ pip install pygame-matplotlib
1515
## Usage
1616

1717
First you will need to specify that you want to use pygame backend.
18-
```
18+
```python
1919
# Select pygame backend
2020
import matplotlib
2121
matplotlib.use('module://pygame_matplotlib.backend_pygame')
2222
```
2323

2424
Then you can use matplotlib as you usually do.
25-
```
25+
```python
2626
# Standard matplotlib syntax
2727
import matplotlib.pyplot as plt
2828
fig, ax = plt.subplots() # Create a figure containing a single axes.
@@ -32,7 +32,7 @@ plt.show()
3232

3333
Or you can include the plot in your game using the fact that a ```Figure``` is
3434
also a ```pygame.Surface``` with this backend.
35-
```
35+
```python
3636
import pygame
3737
import pygame.display
3838

0 commit comments

Comments
 (0)