regarding the function plot

##### Title

##### Question

how is it possible that a plot function works properly with a single argument and also using double arguments.

For example p=linspace(1,100,100)

plot (p,cos(p))

other way of using plot

x =linspace(-pi,pi,50)

plot(sin(x)*sin(x))/x

Python Plotting-the-data 01-02 min 0-10 sec

__Answers:__

For plot(y) you get plot y using x as index array 0..N-1

Please type

**plot?**in your ipython interpreter for details on how the plot function works
Login to add comment