diff --git a/docs/index.md b/docs/index.md index 820367e..f79727f 100644 --- a/docs/index.md +++ b/docs/index.md @@ -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 diff --git a/docs/sankey_doc_examples.py b/docs/sankey_doc_examples.py index bb87bca..16944c5 100644 --- a/docs/sankey_doc_examples.py +++ b/docs/sankey_doc_examples.py @@ -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()