Skip to content

Commit 6adedad

Browse files
authored
Merge 250f3f2 into 6ddf049
2 parents 6ddf049 + 250f3f2 commit 6adedad

File tree

5 files changed

+27
-14
lines changed

5 files changed

+27
-14
lines changed

docs/api_overview.rst

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ API Overview
88

99
Top Level Functions
1010
--------------------
11-
1211
The main function here is the :py:func:`subplots` function, but there is also a style
1312
function available (see the :ref:`styles` page).
1413

@@ -50,7 +49,6 @@ These methods control various annotations, like the legend, tick marks, and axes
5049

5150
.. autosummary::
5251
Axes_bpl.legend
53-
Axes_bpl.data_ticks
5452
Axes_bpl.axhline
5553
Axes_bpl.axvline
5654
Axes_bpl.add_text
@@ -66,6 +64,7 @@ These methods control various annotations, like the legend, tick marks, and axes
6664
Axes_bpl.twin_axis_simple
6765
Axes_bpl.twin_axis
6866
Axes_bpl.make_ax_dark
67+
Axes_bpl.data_ticks
6968

7069

7170
Non Object-Oriented Interface
@@ -75,6 +74,13 @@ In addition to the interface described above, all the Axes objects are accessibl
7574
without directly creating them. This works just like the `plt.whatever()` syntax in
7675
default matplotlib, just with `bpl.whatever()`.
7776

78-
79-
77+
Colors
78+
------
79+
The `bpl.color_cycle` attribute is a list of colors that I set as the default color
80+
cycle for plots. There are also a few other colors mentioned in the :ref:`styles`
81+
page. There are also few functions that can be used to handle colors and colormaps.
8082

83+
.. autosummary::
84+
create_mappable
85+
fade_color
86+
unfade_color

docs/full_api.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
Full API
44
============
55

6+
.. autofunction:: subplots
7+
.. autofunction:: set_style
8+
.. autofunction:: create_mappable
9+
.. autofunction:: fade_color
10+
.. autofunction:: unfade_color
11+
612
.. autoclass:: Axes_bpl
713
:members:
814
:exclude-members: set

docs/index.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,17 @@ The package is available in PyPI, so you can install with `pip install betterplo
2828
Documentation
2929
-------------
3030

31-
The full documentation of the API is available through these pages:
31+
Full documentation of all the available functions, as well as example plots
32+
for each function, are available in the following pages. The Overview page has a
33+
summary list of all the available functions, while the examples and full documentation
34+
are in the Full API page.
3235

3336
.. toctree::
3437
:maxdepth: 1
3538

36-
style
3739
api_overview
3840
full_api
41+
style
3942

4043

4144
.. Indices and tables

docs/style.rst

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,12 @@ are visible against a dark background in a presentation, and `bpl.set_style("lat
1212
uses LateX for font rendering.
1313

1414
The general best practice is to call the style once at the beginning of the
15-
file or notebook, right after the imports.
15+
file or notebook, right after the imports.
1616

17-
.. autofunction:: set_style
17+
See the full documentation linked below for some examples.
18+
19+
.. autosummary::
20+
set_style
1821

1922

2023
Colors
@@ -30,8 +33,3 @@ make them slightly easier on the eyes. Here are all those defined colors.
3033

3134
.. image:: images/colors.png
3235

33-
There are also some functions to help out with managing colors and colorbars.
34-
35-
.. autofunction:: create_mappable
36-
.. autofunction:: fade_color
37-
.. autofunction:: unfade_color

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ packages = ["betterplotlib"]
77

88
[project]
99
name = "betterplotlib"
10-
version = "1.12.3"
10+
version = "1.12.4"
1111
description = "Some wrappers for matplotlib to make plotting easier and nicer."
1212
readme = "README.md"
1313
license = {file = "LICENSE"}

0 commit comments

Comments
 (0)