Skip to content

Commit

Permalink
title_loc doc
Browse files Browse the repository at this point in the history
  • Loading branch information
wspr committed Mar 17, 2024
1 parent 174c49e commit b9b7b21
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,15 @@ sky.sankey(data,
```
![Image with options](fruits_titles_bottom.png)

Titles can also be placed “outside” the plot area, with default spacing intending to be placed outside the frame:
```
sky.sankey(data,
titles = ["Summer","Winter"],
frame_side = "both",
title_loc = "outer",
)
```
![Image with options](fruits_titles_outer.png)

## Vertical Alignment

Expand Down
9 changes: 9 additions & 0 deletions docs/sankey_doc_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,15 @@
plt.show()
plt.savefig("fruits_titles_bottom.png")

plt.figure()
sky.sankey(data,
titles = ["Summer","Winter"],
frame_side = "both",
title_loc = "outer",
)
plt.show()
plt.savefig("fruits_titles_outer.png")

plt.figure()
sky.sankey(data, valign="center")
plt.show()
Expand Down

0 comments on commit b9b7b21

Please sign in to comment.