First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
| 1 | initial version |
There is! To colour branches, buses, etc based on nominal voltage, you can use psspy.setdiagresvrcs. Some example code is below:
# Set voltage limits and colours
voltage_lims = [21,65,109,219,274,329,499]
reds = [128,0,128,255,0,128,255,255]
blues = [128,255,64,0,255,255,64,0]
greens = [128,255,64,0,0,0,128,255]
# Colours are [grey, light blue, brown, red, blue, purple, orange, yellow]
psspy.setdiagresvrcs_2(setscope = 1, usevolt = 1, vltval = voltage_lims, vlnclrr = reds, vlnclrb = blues, vlnclrg = greens, usevoltlay = 1)
| 2 | No.2 Revision |
There is! To colour branches, buses, etc based on nominal voltage, you can use psspy.setdiagresvrcs. Some example code is below:below (code was written for PSSE 34, it's possible this may need tweaking in the latest version of PSSE):
# Set voltage limits and colours
voltage_lims = [21,65,109,219,274,329,499]
reds = [128,0,128,255,0,128,255,255]
blues = [128,255,64,0,255,255,64,0]
greens = [128,255,64,0,0,0,128,255]
# Colours are [grey, light blue, brown, red, blue, purple, orange, yellow]
psspy.setdiagresvrcs_2(setscope = 1, usevolt = 1, vltval = voltage_lims, vlnclrr = reds, vlnclrb = blues, vlnclrg = greens, usevoltlay = 1)
Note that the setscope argument determines whether the colours apply to the active SLD only, or whether they apply to all new SLDs.
whit loves you. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.