Skip to content

Commit 8f32ed2

Browse files
committed
Showcase
1 parent d781056 commit 8f32ed2

3 files changed

Lines changed: 8 additions & 9 deletions

File tree

docs/showcase.rst

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1595,12 +1595,11 @@ On-the-fly colormaps
15951595
--------------------
15961596

15971597
You can make a new colormap with ProPlot’s on-the-fly colormap
1598-
generator! Every ``cmap`` argument for the commands in the
1599-
`~proplot.axes.cmap_methods` list (like
1600-
`~matplotlib.axes.Axes.contourf` and
1601-
`~matplotlib.axes.Axes.pcolormesh`) is passed to the
1602-
`~proplot.colortools.Colormap` constructor, as are keyword args
1603-
specified with ``cmap_kw``. See `~proplot.colortools.Colormap` and
1598+
generator! Every command that accepts a ``cmap`` argument (see
1599+
`~proplot.axes.cmap_methods`) is passed to the
1600+
`~proplot.colortools.Colormap` constructor.
1601+
`~proplot.colortools.Colormap` keyword arguments can be specified with
1602+
``cmap_kw``. See `~proplot.colortools.Colormap` and
16041603
`~proplot.axes.wrapper_cmap` for details.
16051604

16061605
Since all of the SciVisColor colormaps from the “ColorMoves” GUI are
@@ -1662,8 +1661,8 @@ string with ``+N`` or ``-N`` to offset the channel value by the number
16621661
levels=plot.arange(0.1,0.9,0.1), extend='both',
16631662
)
16641663
ax.bpanel.colorbar(m, label='colormap')
1665-
ax.format(xlabel='x axis', ylabel='y axis', title='Warm colors',
1666-
suptitle='On-the-fly "PerceptuallyUniformColormap"s')
1664+
ax.format(xlabel='x axis', ylabel='y axis', title='Reminiscent of "Matter"',
1665+
suptitle='On-the-fly "PerceptuallyUniformColormap"')
16671666
ax = axs[1]
16681667
m = ax.contourf(np.random.rand(10,10),
16691668
cmap={'h':['red', 'red-720'], 'c':[80,20], 'l':[20, 100], 'space':'hpl'},
@@ -1750,7 +1749,7 @@ details.
17501749
ax = axs[i]
17511750
m1 = ax.pcolormesh(data, cmap=cmap, cmap_kw={'gamma':gamma}, levels=10, extend='both')
17521751
ax.rightpanel.colorbar(m1, clocator='none')
1753-
ax.format(title=f'gamma = {gamma}', xlabel='x axis', ylabel='y axis', suptitle='Varying the gamma of "PerceptuallyUniformColormap" maps')
1752+
ax.format(title=f'gamma = {gamma}', xlabel='x axis', ylabel='y axis', suptitle='Varying the "PerceptuallyUniformColormap" gamma')
17541753
i += 1
17551754
17561755

docs/showcase/showcase_108_0.png

-2.12 KB
Loading

docs/showcase/showcase_114_0.png

-8.41 KB
Loading

0 commit comments

Comments
 (0)