Is there an easy way to make graph colors match pi...
# xschem
l
Is there an easy way to make graph colors match pin highlight colors?
s
the only way is to click close to the inner border a graph to select it, then click a net, press Alt-g. The selected net will be colored and the same color will displayed in the graph. I will work on a way to align nets <--> waveforms colors on user request, should not be very difficult.
👍 1
l
I wonder how that would work. Maybe an "auto highlight all graphed pins" menu button?
s
@Luke Harold Miles Try to think what the best function could be, then you tell me. User feedback driven development 😀
👍 1
l
Ok best possible thing would probably be both: • if a lab_pin is plotted, then pressing 'k' on it will highlight it the same color as in the graph (this requires reserving that color so other pins dont take it if you press k on them first), and • menu button 'highlight all plotted pins' which highlights each pin the same color it is plotted. Although just the menu button is 80% of value and I'm guessing much easier to implement
s
@Luke Harold Miles I have added a function
Simulation->Graphs->Auto Highlight plotted nets
. If enabled nets in schematic are colored the same way as they are displayed in graphs. For this to work you must type signal names in graphs in the same case as they are in the schematic, so if net in schematic is
CLK
type
CLK
in graphs and not
clk
. (ngspice saves all names as lowercase, while Xyce saves all as uppercase so there is no one fit for all solution, Just be consistent yourself). I am sure there are some missing cases to be handled, just let me know if you find some.
🙌 5