Change color cycle to another Qualitative set

How do I switch to using one of the other colour sets like tab20 or Paired?

I don’t know if it’s the proper way, but what’ll work on the ListedColormaps (which is what the qualitative ones are) is:

from cycler import cycler
color_cycle = cycler(color=plt.get_cmap('Set1').colors)

fig, ax = plt.subplots()
for i in range(10):

That changes the colormap, but not to Set1. It gives me something else entirely; not sure what.

This works, but my linter gives me an error:

plt.rcParams["axes.prop_cycle"] = plt.cycler("color",

Then you should perhaps consider raising a bug with the linter?

@tacaswell said the following on gitter:

static code analysis may be failing because we do