Skip to content
This repository was archived by the owner on Nov 6, 2025. It is now read-only.
This repository was archived by the owner on Nov 6, 2025. It is now read-only.

Limited number of plot colors #66

@bernhardlang

Description

@bernhardlang

When developing a plugin for a device with up to eight input channels (activation on demand), the PyMoDAQ machinery got stuck on an IndexError exception when the number of channels exceeded seven. The solution was to add another color in config_pymodaq_utils.toml ... after an interesting journey through the internals :-)

Wouldn't it be better to introduce a fallback mechanism on color indices which wrap around when the end of the list of configured plotting colors is reached?

BTW, shouldn't the definition of the PlotColors class reside in pymodaq_gui rather than in pymodaq_utils?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions