hi, first, with backends agg and cairo, increasing the dpi increases the width of any edge that is drawn, is there a way to set this edge width constant?
second, when using backend_agg, if i draw a patch with an edge at x=0 and the xlim(xmin=0) there's still a 1 pixel gap. this does not occur at the y-axis. and the gap does not occur with backend_cairo. should i report this at the tracker? a script to reproduce the error is below. thanks, -brent from matplotlib.patches import Rectangle, Arrow from matplotlib.figure import Figure from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas #from matplotlib.backends.backend_cairo import FigureCanvasCairo as FigureCanvas alpha = 0 # NOTE: increasing the dpi increases the with of the edge. dpi = 256 f = Figure(dpi=dpi) c = FigureCanvas(f) f.figurePatch.set_alpha(alpha) f.ax = f.add_axes((0,0,1,1), alpha=alpha, frameon=False, xticks=() , yticks=()) px_width, px_height = 512, 512 f.set_size_inches(px_width/dpi, px_height/dpi) f.ax.set_ylim(0, 10) f.ax.set_xlim(0, 10) f.ax.set_autoscale_on(False) # NOTE: missing 1 pixel at x == 0 r = Rectangle((0, 0), 8, 8, fc='#ff0000') f.ax.add_patch(r) f.canvas.print_figure('k.png', dpi=dpi) ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users