Default Plots for zones, help!

I’ve been trying to edit the default plot, so far I have this code in an IronPython script, but it wont run. Is there an issue with my syntax? Since I would typically run this script on a zone, would I be better off creating a version of this for each zone (of which there are 8) and then will iron python spit out all 8 zone plots in one execution?

nplot(
‘@.PFGEN;r147g120b96;stack;legend=Thermal Generation’,
‘@.PXGEN;r140g140b140;stack;legend=Other Generation’,
‘@.PPV;r221g132b82;stack;legend=Solar Generation’,
‘@.PSTR;r129g114b179;stack;legend=Net Electric Storage Operation’,
‘@.PNSPV;r255g224b139;stack;legend=Solar Curtailment’,
‘@.PNSDEM;r255g0b0;stack;legend=Energy Not Served’,
‘@.PD;r0g0b0;line;legend=Demand’,
‘Title=Generation Dispatch Plot;’,
start,
end
)

Hi @smeloney,

Outside of a small error with the title, the code you’ve posted would work just fine to edit the default plots via the settings. However, as an IronPython, the ‘@’ is not going to work. As you’ve suspected, you’re best off creating a version for each zone where you call out the EZN.x directly. You can have as many distinct nplots in the script as you like, and IronPython will generate them all when you executed.

The small error is that the title should be declared with an object within the quotes. Try the following in the ENET39 to confirm the syntax, and then just duplicate the code for each zone you have.

nplot(
‘EZN.IEEE39.PFGEN;r147g120b96;stack;legend=Thermal Generation’,
‘EZN.IEEE39.PXGEN;r140g140b140;stack;legend=Other Generation’,
‘EZN.IEEE39.PPV;r221g132b82;stack;legend=Solar Generation’,
‘EZN.IEEE39.PSTR;r129g114b179;stack;legend=Net Electric Storage Operation’,
‘EZN.IEEE39.PNSPV;r255g224b139;stack;legend=Solar Curtailment’,
‘EZN.IEEE39.PNSDEM;r255g0b0;stack;legend=Energy Not Served’,
‘EZN.IEEE39.PD;r0g0b0;line;legend=Demand;Title=Generation Dispatch Plot’
)

Happy Modeling!

  • Wallace