Add optional parameter plot_xy to .plot() and .multiplot()
This way, it is possible with both methods to specify values for the "x" coordinate. By default, `plot_xy` is False and the "x" coordinate is the index of the packet in the list. Examples: >>> ans.plot(lambda x: x[1].id) >>> ans.plot(lambda x: (x[1].time, x[1].id), plot_xy=True) >>> ans.multiplot(lambda x: (x[1][IP].src, x[1].id)) >>> ans.multiplot(lambda x: (x[1][IP].src, (x[1].time, x[1].id)), plot_xy=True)
Please register or sign in to comment