Re: [Matplotlib-users] Graph ticks label missing !
Le Lun 26 août 2013 18:21, Goyo a écrit : > 2013/7/19 Nicolas Mailhot : >> Le Mer 17 juillet 2013 14:56, Michael Droettboom a écrit : >>> Can you please provide a completely standalone example? The following >>> code has undefined variables etc. >> >> Here it is, I'm afraid this testcase intent is less clear than what I >> pasted previously (I replaced variables with precomputed values) >> >> As shown in the attached png, the bottom tick labels (month names) are >> missing. It worked in matplotlib ≤ 1.2.0 > > I can confirm the issue with 1.2.1 but it works with a recent > development version (output attached) so it must have been fixed at > some point. Thank you very much for the data point, I'll try to get 1.3.0 built on RHEL 6 Regards, -- Nicolas Mailhot -- Introducing Performance Central, a new site from SourceForge and AppDynamics. Performance Central is your source for news, insights, analysis and resources for efficient Application Performance Management. Visit us today! http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Graph ticks label missing !
2013/7/19 Nicolas Mailhot : > Le Mer 17 juillet 2013 14:56, Michael Droettboom a écrit : >> Can you please provide a completely standalone example? The following >> code has undefined variables etc. > > Here it is, I'm afraid this testcase intent is less clear than what I > pasted previously (I replaced variables with precomputed values) > > As shown in the attached png, the bottom tick labels (month names) are > missing. It worked in matplotlib ≤ 1.2.0 I can confirm the issue with 1.2.1 but it works with a recent development version (output attached) so it must have been fixed at some point. Goyo <>-- Introducing Performance Central, a new site from SourceForge and AppDynamics. Performance Central is your source for news, insights, analysis and resources for efficient Application Performance Management. Visit us today! http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Graph ticks label missing !
Le Ven 19 juillet 2013 17:47, Nicolas Mailhot a écrit : > Le Mer 17 juillet 2013 14:56, Michael Droettboom a écrit : Hi, >> Can you please provide a completely standalone example? The following >> code has undefined variables etc. > > Here it is, I'm afraid this testcase intent is less clear than what I > pasted previously (I replaced variables with precomputed values) > > As shown in the attached png, the bottom tick labels (month names) are > missing. It worked in matplotlib ≤ 1.2.0 Can you confirm the example was good enough for identifying the problem or did I forget something again? Regards, -- Nicolas Mailhot -- Introducing Performance Central, a new site from SourceForge and AppDynamics. Performance Central is your source for news, insights, analysis and resources for efficient Application Performance Management. Visit us today! http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Graph ticks label missing !
Le Mer 17 juillet 2013 14:56, Michael Droettboom a écrit : > Can you please provide a completely standalone example? The following > code has undefined variables etc. Here it is, I'm afraid this testcase intent is less clear than what I pasted previously (I replaced variables with precomputed values) As shown in the attached png, the bottom tick labels (month names) are missing. It worked in matplotlib ≤ 1.2.0 -- Nicolas Mailhot testcase.py Description: Binary data <>-- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Graph ticks label missing !
Can you please provide a completely standalone example? The following code has undefined variables etc. Mike On 07/08/2013 10:49 AM, Nicolas Mailhot wrote: >subplot.set_xticks([dd.monthstart(m) for m in months]) >subplot.set_xticks([w.gmticks() for w in weeks], minor=True) >subplot.set_xticklabels([]) >plt.xlim(dd.monthstart(min(months)),dd.monthend(max(months))) > >subplot1 = subplot.twiny() >mmonths = [m for i,m in enumerate(months) > if operator.mod(i,1+(len(months)-1)/12) == 0] >subplot1.set_xticks([dd.monthmiddle(m) for m in mmonths]) >subplot1.set_xticklabels(mmonths) >subplot1.tick_params(labelsize='6.5',labelbottom=True, labeltop=False) >plt.xlim(dd.monthstart(min(months)),dd.monthend(max(months))) > >subplot2 = subplot.twiny() >mweeks = [w for i,w in enumerate(weeks) > if operator.mod(i,1+(len(weeks)-1)/53) == 0] >subplot2.set_xticks([dd.weekmiddle(w) for w in mweeks]) >subplot2.set_xticklabels([w.iso_week[1] for w in mweeks]) >subplot2.tick_params(labelsize='5',labelbottom=False, labeltop=True,pad=3) >plt.xlim(dd.monthstart(min(months)),dd.monthend(max(months))) > >subplot2.xaxis.set_ticks_position('none') >subplot1.xaxis.set_ticks_position('none') >subplot.xaxis.set_ticks_position('both') -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users