Jerzy et al, Check out the axvline method (of pyplot or an axes object). You'll only have to specify the x-value, and it'll won't rescale your y-axis. -paul
On Thu, Mar 8, 2012 at 4:50 AM, Jerzy Karczmarczuk <jerzy.karczmarc...@unicaen.fr> wrote: > Nicolas Rougier, (to Mic, who can't see a histogram and a line > simultaneously): > >> You need to specify the ylim because your height may be larger than your >> histogram and then you cannot see it. > I suspect something similar. The height of matplot_hist.png is 0.040. > The line goes from 0 to 300. The histogram reduces to the bottom line. > There is no immediate relation between max(hist_data) and the height of > a *normed* histogram. > > And, please, if you want to point out the difficulties in making your > programs fulfil your aims, show the REAL, COMPLETE programs, perhaps > with fake, random data, but without useless : "hist_data=[]" > > And don't call a mean: "median" or vice-versa... > > Scaling the axes is easy. "ylim" should be changed, use also the > "extent" parameter (see doc). Drawing axes shifted, as in hist.png is a > bit more involved, and I don't know if you really want that as well. > > Jerzy K. > > > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users