On Mon, May 25, 2009 at 9:02 AM, collern2 <noel.colle...@gmail.com> wrote:
>
> I'm trying to have the points start from the x-axis (similar to a histogram)
> and draw lines upwards. I've attached an image of the program output, as you
> can see - there are no red lines from 0-200 on the y-axis. Any ideas how to
> start them from zero?
>
> http://www.nabble.com/file/p23707480/image.png
>
> Sample value from list entry for time[]
> 693596.000003
> Sample value from list entry for latency[]
> 1043
>
> #########
> Sample Code
> #########
>
>
> def plot_graph():
>
> # Plotting the graph
>    plt.plot(time[5300:],latency[5300:], 'r-', linewidth=0.15)

It sounds like you want vlines

  http://matplotlib.sourceforge.net/search.html?q=codex+vlines
  
http://matplotlib.sourceforge.net/api/axes_api.html#matplotlib.axes.Axes.vlines

Eg,

  plt.vlines(time[5300:], 0, latenc[5300:], color='red', lw=0.15)

JDH

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to