This may be just a general Python question, I will explain as best I can.
For the object below:
def deliver(self): # Deliver 1st Item
leadtime = 2.0 # time between deliveries
delivery = random.triangular(80,110,170) # amount in each delivery
yield put, self, stock, delivery
print('Day %6.0f, add %6.0f units of Type: %s, Inventory = %6.0f' %
(now(), delivery, name, stock.amount))
yield hold, self, lead
If I plot the 'D1amt' , I also get a line running along the X axis at the zero value, as there seemed to be two values.
So, to avoid this I created a list named D1Vals, and appended each indivdual value as it occured.
Ok, so that worked, but, its not actually correct, because it plots each value independent of the time it occured, i.e Day 1 or Day 3.
I realise that by creating D1Vals, I am removing the 'y' component of the list, but I would like my plotted as the day it occured.
Can anyone guide me on the direction to resolve this please.