Can you please provide a complete, minimal and self-contained script that reproduces the error? The example below has many undefined variables etc.
Cheers, Mike On 04/16/2013 07:09 PM, Christophe Pettus wrote: > # preamble code collecting data > > ind = np.arange(len(table_name)) > > width = 0.35 > > fig = plot.figure(figsize=DEFAULT_FIGURE_SIZE) > ax = fig.add_subplot(111, axisbg='#fafafa', alpha=0.9) > > ax.set_title('Largest Tables') > > ax.set_xlabel('Size (log scale)') > > ax.set_xscale('log') > ax.grid(True) > > ax.xaxis.set_major_formatter(FuncFormatter(magnitude_ticks)) > > dbar = ax.barh(ind, data_size, width, linewidth=0, color='blue', > label='Main Data') # exception here > ibar = ax.barh(ind, index_toast_size, width, left=data_size, > linewidth=0, color='red', label='Toast/Indexes') > ax.set_yticks(ind + width/2) > ax.set_yticklabels(table_name, fontproperties=xx_small_font) > > ax.legend(loc='lower right', prop=x_small_font) > > plot.tight_layout() > > plot.savefig(REPORT_DIR_PATH + '/table_sizes.pdf') > > plot.close() ------------------------------------------------------------------------------ Precog is a next-generation analytics platform capable of advanced analytics on semi-structured data. The platform includes APIs for building apps and a phenomenal toolset for data science. Developers can use our toolset for easy data analysis & visualization. Get a free account! http://www2.precog.com/precogplatform/slashdotnewsletter _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users