From 3807a8150da333ce5e568a1adad719355ecf6cfc Mon Sep 17 00:00:00 2001 From: Guangyang Li Date: Sun, 6 Oct 2019 03:34:55 -0700 Subject: [PATCH] update doc style --- docs/_static/custom.css | 1 + docs/examples/block_color_and_background_color.md | 4 +++- docs/examples/title_label_ledend.md | 4 ++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/docs/_static/custom.css b/docs/_static/custom.css index db6cab4..3693e3c 100644 --- a/docs/_static/custom.css +++ b/docs/_static/custom.css @@ -2,4 +2,5 @@ display:block; margin-left:auto; margin-right:auto; + margin-bottom:60px; } \ No newline at end of file diff --git a/docs/examples/block_color_and_background_color.md b/docs/examples/block_color_and_background_color.md index 89bdbca..c013f98 100644 --- a/docs/examples/block_color_and_background_color.md +++ b/docs/examples/block_color_and_background_color.md @@ -15,7 +15,9 @@ fig.set_facecolor('#EEEEEE') Block Color and Background Color -[Colormap](https://matplotlib.org/gallery/color/colormap_reference.html) could also be applied to waffle chart, which sets colors automatically. Sequential colormaps do not work with PyWaffle and only Qualitative colormaps are supported, including `Pastel1`, `Pastel2`, `Paired`, `Accent`, `Dark2`, `Set1`, `Set2`, `Set3`, `tab10`, `tab20`, `tab20b`, `tab20c`. +[Colormap](https://matplotlib.org/gallery/color/colormap_reference.html) could also be applied to waffle chart through parameter `cmap_name`, which sets colors automatically. + +> **_NOTE:_** Sequential colormaps do not work with PyWaffle and only Qualitative colormaps are supported, including `Pastel1`, `Pastel2`, `Paired`, `Accent`, `Dark2`, `Set1`, `Set2`, `Set3`, `tab10`, `tab20`, `tab20b`, `tab20c`. ```python fig = plt.figure( diff --git a/docs/examples/title_label_ledend.md b/docs/examples/title_label_ledend.md index 4918e54..8a11ae5 100644 --- a/docs/examples/title_label_ledend.md +++ b/docs/examples/title_label_ledend.md @@ -6,6 +6,8 @@ Parameter `labels` accepts labels in a list. If it is not specified, key of `val Parameter `legend` accepts parameters of [matplotlib.pyplot.legend](https://matplotlib.org/api/_as_gen/matplotlib.pyplot.legend.html) in a dict. +> **_NOTE:_** Labels could also be specified in parameter `legend` under key `labels` instead. + ```python data = {'Cat1': 48, 'Cat2': 46, 'Cat3': 3} fig = plt.figure( @@ -31,5 +33,3 @@ fig = plt.figure( ``` Title, Label and Legend - -> **_NOTE:_** Labels could also be specified in parameter `legend` as an item instead.