Skip to content

Commit

Permalink
STY: More PEP8 fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
zssherman committed Aug 21, 2024
1 parent 124b8fd commit 52228e3
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions examples/plot_cvd_colorbars.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ def plot_color_gradients(cmap_category, cmap_list):

for ax, cmap_name in zip(axs, cmap_list):
ax.imshow(gradient, aspect='auto', cmap=f"{cmap_name}")

if cmap_name == 'plasmidis':
if cmap_name == 'plasmidis':
ax.text(
-0.01,
0.5,
Expand Down Expand Up @@ -83,8 +82,6 @@ def plot_color_gradients(cmap_category, cmap_list):
['LangRainbow12', 'HomeyerRainbow', 'ChaseSpectral', 'SpectralExtended'],
)

plot_color_gradients(
'CVD-Friendly Velocity Colormaps', ['balance', 'twilight_shifted'])
plot_color_gradients('CVD-Friendly Velocity Colormaps', ['balance', 'twilight_shifted'])

plot_color_gradients(
'CVD-Friendly Polarization Colormaps', ['CM_depol', 'plasmidis'])
plot_color_gradients('CVD-Friendly Polarization Colormaps', ['CM_depol', 'plasmidis'])

0 comments on commit 52228e3

Please sign in to comment.