From: Benjamin R. <ben...@ou...> - 2012-06-06 16:15:16
|
On Tue, Jun 5, 2012 at 11:53 AM, Ulrich vor dem Esche < ulr...@go...> wrote: > Hey! :o) > This should be simple, but i cant manage: I need to plot many dots with > the same x, like > > plt.plot([3,3,3,3],[60,80,120,180],'+',markersize=8,mec='k') > > The array for x values is silly, especially since the number of y values > may be rather large. Is there a way to enter a constant there? > > Cheers to you all! > Ulli > > No, but you can do this: plt.plot([3] * 4, [60, 80, 120, 180], ...) Does that help? Ben Root |