Dear All, I am concerned there could be a bug in errorplot for pylab. I am running Debian testing (the amd64 release) on my box. Some time ago I posted about a possible bug in pylab and the workaround I found (since I prefer to use Debian repositories rather than matplotlib CVS version) was to add a clf() command at the end of the figure.
Consider the following plot (taken directly from my code): p.plot(time[ini_conf:fin_conf],my_fractal_dim,"k^") p.xlabel('Dimensionless Time',fontsize=20) labels = p.getp(p.gca(), 'xticklabels') p.setp(labels, color='k', fontsize=15) p.ylabel('Fractal Dimension',fontsize=20) labels2 = p.getp(p.gca(), 'yticklabels') p.setp(labels2, color='k', fontsize=15) #p.legend(('from power-law fitting','from linear fitting on log-log')) #p.title('Evolution Fractal Dimension') p.grid(False) #cluster_name="number_cluster_vs_time2%05d"%my_config cluster_name="Evolution_fractal_dimension-no-mean.pdf" p.savefig(cluster_name) p.hold(False) p.clf() print 'delta_df is,', delta_df print 'my_fractal_dim is,', my_fractal_dim #p.errorbar(time[ini_conf:fin_conf],my_fractal_dim,yerr=delta_df,marker='s',mfc='red', mec='green', ms=20, mew=4 ) p.errorbar(time[ini_conf:fin_conf],my_fractal_dim,yerr=delta_df ) p.xlabel('Time') p.ylabel('Fractal dimension') #p.legend(('from power-law fitting','from linear fitting on log-log')) #p.title('Evolution Fractal Dimension from R_g') #p.grid(True) #cluster_name="number_cluster_vs_time2%05d"%my_config #cluster_name="std_err_D_f.pdf" p.savefig("time_evolution_D_f_with_error_bars.pdf") p.hold(False) p.clf() I am basically plotting two figures, but errorbar is not returning any vertical bar giving uncertainties. Instead, if I swap the two plots (i.e. first the errorbar and then the normal plot) I see a nice plot with error bars. This can be quite annoying (it is already tough enough to carry out computations without thinking about when I should plot what). Has anyone else experienced anything similar? Suggestions are really welcome. Cheers Lorenzo ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users