Skip to content

Minor issue // plot.show_cycles() throws AttributeError #90

Closed

Description

@Thomas-Moore-Creative
import proplot as plot
f = plot.show_cycles()

Thanks for this great package!
I'm running 0.3.1 and just working my way through your docs. I noted above from your docs throws the following error:

AttributeError: 'LinearSegmentedColormap' object has no attribute 'colors'

Activity

  1. lukelbd commented on Jan 3, 2020

    @lukelbd
    Collaborator

    No problem :). I figured this out: The current show_cycles command is fragile; it just tracks cycle names, and evidently you have overwritten a cycle by that name with a colormap.

    The next version includes changes to show_cycles that will solve this issue: plot.show_cycles will be identical to plot.show_cmaps, the only difference being that plot.show_cmaps displays LinearSegmentedColormaps (continuous color gradations) while plot.show_cycles displays ListedColormaps (discrete color sets).

  2. lukelbd commented on Jan 7, 2020

    @lukelbd
    Collaborator

    This should be fixed by #98. It is published in the latest (0.4.0) release; use pip install --upgrade proplot to upgrade.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions