Poor colour choices with multiple traces

Questions specific to Megalogviewer

Moderator: LT401Vette

Post Reply
jsmcortina
Site Admin
Posts: 39615
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Poor colour choices with multiple traces

Post by jsmcortina »

Hi,
I've got MLV 4.2.06 with 4 graphs and 6 traces per graph. I'm not sure where the colour choices come from, but they are working out really badly.

Graph 1: white, red, green, yellow, white again, red again.
Graph 2: green, yellow, white, red, green again, yellow again
Graph 3: magenta, yellow, green, red, cyan, dark cyan
Graph 4: white, magenta, dark green, green, dark red, red

Why so many similar colours? Why not repeat the same colour list for each graph and use contrasting colours?
e.g. white, red, blue, green, cyan, magenta ?

James
I can repair or upgrade Megasquirts in UK. http://www.jamesmurrayengineering.co.uk

My Success story: http://www.msextra.com/forums/viewtopic ... 04&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
New users, please read the "Forum Help Page".
LT401Vette
Super MS/Extra'er
Posts: 12731
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: Poor colour choices with multiple traces

Post by LT401Vette »

The default colors are set in the MegaLogViewer.properties files.

They currently repeat the same colors 4 times:

Code: Select all

# You can set to any of the colors defined above
graphForeColor0=white
graphForeColor1=red
graphForeColor2=green
graphForeColor3=yellow
graphForeColor4=white
graphForeColor5=red
graphForeColor6=green
graphForeColor7=yellow
graphForeColor8=white
graphForeColor9=red
graphForeColor10=green
graphForeColor11=yellow
graphForeColor12=white
graphForeColor13=red
graphForeColor14=green
graphForeColor15=yellow

In history, years back they did just rotate through like 16 different colors. Is this a long running install? Then the colors could have been changed for those graphs at some point in the past or it may be holding remnants from the past?

if you delete mlvUser.poperties (and mlvUser.properties.bak) from the dir:
~/.efiAnalytics

The colors (and everything else) will go to the default. Otherwise you can set the colors from the menu:
Options --> Graph Trace Colors --> Graph Color n


The key problem you are seeing is the way the colors are selected. The are pulled from a stack of colors over all based on the number of total traces, not from a list per graph. So by changing to 6 traces per graph, it gets messed up.
With the way MLV let's change the number of traces and number of graphs these days, it should pull the colors per graph.
I'm sure if I change that though, it will mess up someone else's color pattern :-P
None the less it should be.

If I change it, anyone want to start a poll on how long before it gets reported as a bug? :D
Phil Tobin
EFI Analytics, helping to simplify EFI
Next Generation tuning software.
Supporting all MegaSquirt versions and firmwares.
http://www.TunerStudio.com
http://www.efiAnalytics.com/MegaLogViewer/
Support the firmware running your engine:
http://www.msextra.com/doc/donations.html
BigBlockMopar
Experienced MS/Extra'er
Posts: 372
Joined: Sat Dec 31, 2011 6:10 am
Location: Netherlands
Contact:

Re: Poor colour choices with multiple traces

Post by BigBlockMopar »

I’ve fighting a bit with the coloring too at first.
My workaround was to limit each graph to 3 traces and usually only keep 2 or maybe 3 traces active.
But I still have it easy because I’m using timing only on my setup.

How does the competition do this? (If there is competition being considered ofcourse :) )
Daily driver: 1973 Dodge Dart - 360ci engine - 11.3:1cr - MS3x - ignition only. 42RH/A500 OD+LU transmission / 3.23 gears
--------------
Website: https://www.bigblockmopar.nl/
YouTube Channel: https://www.youtube.com/c/BigBlockMopar
Marek
Master MS/Extra'er
Posts: 576
Joined: Sun May 10, 2009 1:20 am
Location: Guildford UK

Re: Poor colour choices with multiple traces

Post by Marek »

You can just change them and then save down a copy of the changes by exporting the properties to a named properties file. Should you wish to have different screen setups, then simply (re)import the properties file of your choice.

kind regards
Marek
Post Reply