simulator plot window duplicate colors

Bug #1851372 reported by Jonatan Liljedahl on 2019-11-05
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KiCad
Fix Committed
Undecided
Jonatan Liljedahl

Bug Description

In the built in simulator plot window, after removing some signals and adding new ones, sometimes it reuses one of the colors already present. This makes it impossible to know which curve is which. It seems the algorithm for selecting colors are flawed and does not take into account which colors are already used. (Maybe it's currently just a simple round-robin, that also gets reset at the wrong times)

Application: Eeschema
Version: (5.1.5-rc1-4-g47deb8dea), debug build
Libraries:
    wxWidgets 3.0.4
    libcurl/7.54.0 LibreSSL/2.6.5 zlib/1.2.11 nghttp2/1.24.1
Platform: Mac OS X (Darwin 18.5.0 x86_64), 64 bit, Little endian, wxMac
Build Info:
    wxWidgets: 3.0.4 (wchar_t,STL containers,compatible with 2.8)
    Boost: 1.69.0
    OpenCASCADE Community Edition: 6.9.1
    Curl: 7.54.0
    Compiler: Clang 9.0.0 with C++ ABI 1002

Build settings:
    USE_WX_GRAPHICS_CONTEXT=ON
    USE_WX_OVERLAY=ON
    KICAD_SCRIPTING=ON
    KICAD_SCRIPTING_MODULES=ON
    KICAD_SCRIPTING_PYTHON3=OFF
    KICAD_SCRIPTING_WXPYTHON=ON
    KICAD_SCRIPTING_WXPYTHON_PHOENIX=OFF
    KICAD_SCRIPTING_ACTION_MENU=ON
    BUILD_GITHUB_PLUGIN=ON
    KICAD_USE_OCE=ON
    KICAD_USE_OCC=OFF
    KICAD_SPICE=ON

Jonatan Liljedahl (kymatica) wrote :
Changed in kicad:
status: New → In Progress
assignee: nobody → Jonatan Liljedahl (kymatica)
tags: added: eeschema
Changed in kicad:
milestone: none → 6.0.0-rc1
KiCad Janitor (kicad-janitor) wrote :

Fixed in revision fa14d5b9fa80dd493f65b8661aa238d64e698384
https://git.launchpad.net/kicad/patch/?id=fa14d5b9fa80dd493f65b8661aa238d64e698384

Changed in kicad:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers