Simultaneously set opacity for multiple traces (of different colors)
Fri, 07/12/2019 - 12:44 pm
I've often got a plot overlaying traces in various colors, and then I want to change the opacity of multiple traces (without altering their unique rgb values). When I highlight these traces in the "Modify Trace Appearance" window and go to change the opacity in the Color drop down, it does set the opacity of all of them. However, it also sets them all to the same rgb (that of the top-most trace, it appears).
I think it would be better behavior if the opacity could be set independently from within the GUI window -- in the same way that changing (for example) trace mode (line, dots, etc) does not change trace color.
I am not asking that the modifygraph command itself be changed (though programming also would also be easier if there was a separate ModifyGraph a(traceName)=opacity command). I am instead asking that the GUI handle it and run/produce commands that maintain the rgb of the selected traces, modifying only the opacity, (Unless, of course, a new color is also selected).
Very helpfully, this GUI window already does this in other situations. For example, when multiple traces with different error bar settings are highlighted and one setting (e.g., cap thickness) is changed, the GUI runs/produces commands that preserve the other unique error bar settings of each selected trace.