Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- traces = []
- for i in range(armormax):
- traces.append([])
- for t in types:
- traces[-1].append(go.Bar(
- x=["A", "B"], # weaponnames,
- y=[i, armormax - i], # [damage[0][x][t] for x in weaponnames],
- name=t[-3]
- ))
- layout = dict(xaxis=dict(zeroline=False, autorange=True),
- yaxis=dict(autorange=True, zeroline=False),
- title='Compare', hovermode='closest',
- updatemenus=[{'type': 'buttons',
- 'buttons': [{'label': 'Play',
- 'method': 'animate',
- 'args': [None]}]}])
- frames = []
- for i in range(0, armormax):
- frames.append(Frame(name=str(i), data=traces[i]))
- data = traces[0]
- figure1 = dict(data=data, layout=layout, frames=tuple(frames))
- offline.plot(figure1, image_filename="weapontypes")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement