Return the line graphics object that gives the plot of the step function defined by the list of pairs . Here if is in , then . The user does not have to worry about sorting the input list .
INPUT:
EXAMPLES:
We plot the prime counting function:
sage: plot_step_function([(i,prime_pi(i)) for i in range(20)])
sage: plot_step_function([(i,sin(i)) for i in range(5,20)])
We pass in many options and get something that looks like “Space Invaders”:
sage: v = [(i,sin(i)) for i in range(5,20)]
sage: plot_step_function(v, vertical_lines=False, thickness=30, rgbcolor='purple', axes=False)