henze-research-group / MODRLC

The Advanced Controls Test Bed (ACTB) is a virtual buildings test bed that interfaces external controllers to high-fidelity Spawn of EnergyPlus models.
26 stars 9 forks source link

fix lengths of ticks/labels #23

Closed nllong closed 2 years ago

ThibaultMarzullo commented 2 years ago

I suggest changing lines 94 and 95 to:

xticks = range(0, int(mp.length) + 6 * 3600, int(6 * 3600))
xlabels = range(0, int(mp.length/3600) + 6, 6)

Now, the ticks have the correct length (which strangely did not raise an error on my end) and the 24-hour tick also appears. It stopped at 18 before.

nllong commented 2 years ago

This comment proposes a solution for getting rid of the error and also showing the correct ticks.

good point, look better @ThibaultMarzullo ?