bsc-performance-tools / wxparaver

wxParaver is a trace-based visualization and analysis tool designed to study quantitative detailed metrics and obtain qualitative knowledge of the performance of applications, libraries, processors and whole architectures.
http://tools.bsc.es/paraver
GNU Lesser General Public License v2.1
26 stars 3 forks source link

Allow setting the background color from the .cfg files #17

Open rodarima opened 7 months ago

rodarima commented 7 months ago

When generating traces for Paraver we manually set the color palette via the .cfg configuration files, so we can assign darker colors to states that are "normal" and brighter colors to states that are more important so they can be seen better. This works reasonably well under the assumption that the user will always use a timeline with the background set to black.

Now, I'm planning to add support to generate a palette that works with a white background, which is better for papers (as in physical paper) but also when working with a screen in daylight with good ambient lightning (more than 500 lux). We can generate a new set of configuration files with the new palette in window_custom_color_palette but AFAIK there is no way to set the background color from the .cfg file.

Additionally, we would need to also correct the axis (foreground) and zero color from the .cfg file, otherwise it won't work well.

Can you add support for another set of options to modify those values?

This is what I had in mind:

window_background_color { 255, 255, 255 }
window_axis_color { 0, 0, 0 }
window_zero_color { 255, 255, 255 }

I checked a bit the implementation and I think I can prepare a patch, if you are willing to merge it.