Skip to content

Commit 75286fa

Browse files
authored
Merge pull request #150 from lukelbd/rename-show
Rename 'show' module to 'demos' to fix name conflict
2 parents 29bda98 + 2b23274 commit 75286fa

File tree

10 files changed

+22
-22
lines changed

10 files changed

+22
-22
lines changed

docs/api.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ Plotting wrappers
6161
Show functions
6262
==============
6363

64-
.. automodule:: proplot.show
64+
.. automodule:: proplot.demos
6565

66-
.. automodsumm:: proplot.show
66+
.. automodsumm:: proplot.demos
6767
:toctree: api
6868

6969

docs/colormaps.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
# `~proplot.colors.PerceptuallyUniformColormap` colormaps (see
4343
# :ref:`perceptually uniform colormaps <ug_perceptual>`) plus several
4444
# colormaps from other online data viz projects. Use
45-
# `~proplot.show.show_cmaps` to generate a table of registered maps. The
45+
# `~proplot.demos.show_cmaps` to generate a table of registered maps. The
4646
# figure is broken down into the following sections:
4747
#
4848
# * "User" colormaps, i.e. colormaps saved to your ``~/.proplot/cmaps``
@@ -103,9 +103,9 @@
103103
#
104104
# The colorspace used by each `~proplot.colors.PerceptuallyUniformColormap`
105105
# is set with the `space` keyword arg. To plot arbitrary cross-sections of
106-
# these colorspaces, use `~proplot.show.show_colorspaces` (the black
106+
# these colorspaces, use `~proplot.demos.show_colorspaces` (the black
107107
# regions represent impossible colors). To see how colormaps vary with
108-
# respect to each channel, use `~proplot.show.show_channels`. Some examples
108+
# respect to each channel, use `~proplot.demos.show_channels`. Some examples
109109
# are shown below.
110110
#
111111
# In theory, "uniform" colormaps should have *straight* lines in hue, chroma,

docs/colors.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
# ProPlot adds new color names from the `XKCD color survey
3232
# <https://blog.xkcd.com/2010/05/03/color-survey-results/>`__ and
3333
# the `Open Color <https://github.com/yeun/open-color>`__ UI design color
34-
# palettes. You can use `~proplot.show.show_colors` to generate a table of these
34+
# palettes. You can use `~proplot.demos.show_colors` to generate a table of these
3535
# colors. Note that the matplotlib's native `X11 named colors
3636
# <https://matplotlib.org/examples/color/named_colors.html>`__ are still
3737
# registered, but some of the X11 color names may be overwritten by the XKCD names,
@@ -43,7 +43,7 @@
4343
# ProPlot filters the available XKCD colors so that they are *sufficiently
4444
# distinct* in the :ref:`perceptually uniform colorspace <ug_perceptual>`.
4545
# This makes it a bit easier to pick out colors from the table generated with
46-
# `~proplot.show.show_colors`. Similar names were also cleaned up -- for
46+
# `~proplot.demos.show_colors`. Similar names were also cleaned up -- for
4747
# example, ``'reddish'`` and ``'reddy'`` are changed to ``'red'``.
4848

4949
# %%

docs/cycles.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
# Included color cycles
4040
# ---------------------
4141
#
42-
# Use `~proplot.show.show_cycles` to generate a table of the color cycles
42+
# Use `~proplot.demos.show_cycles` to generate a table of the color cycles
4343
# registered by default and loaded from your ``~/.proplot/cycles`` folder.
4444
# You can make your own color cycles using the `~proplot.constructor.Cycle`
4545
# constructor function.

docs/fonts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
# lists for each font family are shown in the
6464
# :ref:`default proplotrc file <ug_proplotrc>`.
6565
#
66-
# To compare different fonts, use the `~proplot.show.show_fonts` command. By
66+
# To compare different fonts, use the `~proplot.demos.show_fonts` command. By
6767
# default, this displays the *sans serif* fonts available on your system and
6868
# packaged with ProPlot. The default table on a sparse Linux server is shown
6969
# below. The "¤" symbol appears where characters for a particular font are

docs/usage.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,9 @@ ProPlot includes several useful constructor functions and subclasses.
140140
colormap classes and add several methods. The new
141141
`~proplot.colors.PerceptuallyUniformColormap` class is used to make
142142
colormaps with :ref:`perceptually uniform transitions <ug_perceptual>`.
143-
* The `~proplot.show.show_cmaps`, `~proplot.show.show_cycles`,
144-
`~proplot.show.show_colors`, `~proplot.show.show_fonts`,
145-
`~proplot.show.show_channels`, and `~~proplot.show.show_colorspaces`
143+
* The `~proplot.demos.show_cmaps`, `~proplot.demos.show_cycles`,
144+
`~proplot.demos.show_colors`, `~proplot.demos.show_fonts`,
145+
`~proplot.demos.show_channels`, and `~proplot.demos.show_colorspaces`
146146
functions are used to visualize your :ref:`color scheme <ug_colors>`
147147
and :ref:`font options <ug_fonts>` and
148148
:ref:`inspect individual colormaps <ug_perceptual>`.

proplot/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from .axes import * # noqa: F401 F403
2020
from .figure import * # noqa: F401 F403
2121
from .ui import * # noqa: F401 F403
22-
from .show import * # noqa: F401 F403
22+
from .demos import * # noqa: F401 F403
2323

2424
# SCM versioning
2525
name = 'proplot'

proplot/config.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1202,7 +1202,7 @@ def register_cmaps(user=True, default=False):
12021202
12031203
%(register.ext_table)s
12041204
1205-
To visualize the registered colormaps, use `~proplot.show.show_cmaps`.
1205+
To visualize the registered colormaps, use `~proplot.demos.show_cmaps`.
12061206
12071207
Parameters
12081208
----------
@@ -1230,7 +1230,7 @@ def register_cycles(user=True, default=False):
12301230
12311231
%(register.ext_table)s
12321232
1233-
To visualize the registered color cycles, use `~proplot.show.show_cycles`.
1233+
To visualize the registered color cycles, use `~proplot.demos.show_cycles`.
12341234
12351235
Parameters
12361236
----------
@@ -1255,7 +1255,7 @@ def register_colors(user=True, default=False, space='hcl', margin=0.10):
12551255
``.txt`` files saved in ``~/.proplot/colors``. Each file should contain
12561256
one line per color in the format ``name : hex``. Whitespace is ignored.
12571257
1258-
To visualize the registered colors, use `~proplot.show.show_colors`.
1258+
To visualize the registered colors, use `~proplot.demos.show_colors`.
12591259
12601260
Parameters
12611261
----------
@@ -1370,7 +1370,7 @@ def register_fonts():
13701370
for a guide on converting various other font file types to ``.ttf`` and
13711371
``.otf`` for use with matplotlib.
13721372
1373-
To visualize the registered fonts, use `~proplot.show.show_fonts`.
1373+
To visualize the registered fonts, use `~proplot.demos.show_fonts`.
13741374
"""
13751375
# Find proplot fonts
13761376
# WARNING: If you include a font file with an unrecognized style,
File renamed without changes.

proplot/wrappers.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1910,7 +1910,7 @@ def _build_discrete_norm(
19101910
minlength=2,
19111911
):
19121912
"""
1913-
Build a `~proplot.pcolors.DiscreteNorm` or `~proplot.pcolors.BoundaryNorm`
1913+
Build a `~proplot.colors.DiscreteNorm` or `~proplot.colors.BoundaryNorm`
19141914
from the input arguments. This automatically calculates "nice" level
19151915
boundaries if they were not provided.
19161916
@@ -2122,7 +2122,7 @@ def cmap_changer(
21222122
):
21232123
"""
21242124
Adds several new keyword args and features for specifying the colormap,
2125-
levels, and normalizers. Uses the `~proplot.pcolors.DiscreteNorm`
2125+
levels, and normalizers. Uses the `~proplot.colors.DiscreteNorm`
21262126
normalizer to bin data into discrete color levels (see notes).
21272127
21282128
Note
@@ -2139,7 +2139,7 @@ def cmap_changer(
21392139
Passed to `~proplot.constructor.Colormap`.
21402140
norm : normalizer spec, optional
21412141
The colormap normalizer, used to warp data before passing it
2142-
to `~proplot.pcolors.DiscreteNorm`. This is passed to the
2142+
to `~proplot.colors.DiscreteNorm`. This is passed to the
21432143
`~proplot.constructor.Norm` constructor.
21442144
norm_kw : dict-like, optional
21452145
Passed to `~proplot.constructor.Norm`.
@@ -2240,11 +2240,11 @@ def cmap_changer(
22402240
standardize_2d
22412241
proplot.constructor.Colormap
22422242
proplot.constructor.Norm
2243-
proplot.pcolors.DiscreteNorm
2243+
proplot.colors.DiscreteNorm
22442244
22452245
Note
22462246
----
2247-
The `~proplot.pcolors.DiscreteNorm` normalizer, used with all colormap
2247+
The `~proplot.colors.DiscreteNorm` normalizer, used with all colormap
22482248
plots, makes sure that your levels always span the full range of colors
22492249
in the colormap, whether `extend` is set to ``'min'``, ``'max'``,
22502250
``'neither'``, or ``'both'``. By default, when `extend` is not ``'both'``,

0 commit comments

Comments
 (0)