Skip to content

Commit b522916

Browse files
committed
Remove extra tabs from the README.md code block
1 parent a8cdfbb commit b522916

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,16 @@ Creating visualizations with Multiplex is very easy.
5252
For example, you can create a text visualization with a simple function call, including all styling options:
5353

5454
```python
55-
import matplotlib.pyplot as plt
56-
from multiplex import drawable
57-
plt.style.use(os.path.join(sys.path[0], '..', 'styles', "multiplex.style"))
58-
viz = drawable.Drawable(plt.figure(figsize=(10, 2)))
59-
paragraph = """Anthony Lopes is a Portuguese professional footballer who plays for Olympique Lyonnais as a goalkeeper. He came through the youth ranks at Lyon, being called to the first team in 2011 and making his debut the following year."""
60-
style = { 'align': 'justify', 'fontfamily': 'serif', 'alpha': 0.9, 'lineheight': 1.25, 'lpad': 0.1, 'rpad': 0.1 }
61-
viz.draw_text_annotation(paragraph, **style)
62-
viz.set_title('Profile: Anthony Lopes', loc='left')
63-
viz.set_caption("""Wikipedia is a useful repository to get more information about anything. Below is an excerpt from the Wikipedia profile of footballer Anthony Lopes.""")
64-
plt.show()
55+
import matplotlib.pyplot as plt
56+
from multiplex import drawable
57+
plt.style.use(os.path.join(sys.path[0], '..', 'styles', "multiplex.style"))
58+
viz = drawable.Drawable(plt.figure(figsize=(10, 2)))
59+
paragraph = """Anthony Lopes is a Portuguese professional footballer who plays for Olympique Lyonnais as a goalkeeper. He came through the youth ranks at Lyon, being called to the first team in 2011 and making his debut the following year."""
60+
style = { 'align': 'justify', 'fontfamily': 'serif', 'alpha': 0.9, 'lineheight': 1.25, 'lpad': 0.1, 'rpad': 0.1 }
61+
viz.draw_text_annotation(paragraph, **style)
62+
viz.set_title('Profile: Anthony Lopes', loc='left')
63+
viz.set_caption("""Wikipedia is a useful repository to get more information about anything. Below is an excerpt from the Wikipedia profile of footballer Anthony Lopes.""")
64+
plt.show()
6565
```
6666

6767
![Example text annotation](https://raw.githubusercontent.com/NicholasMamo/multiplex-plot/master/examples/exports/2-simple-text.png)

0 commit comments

Comments
 (0)