Thanks Ben, that works nicely. Good work :) (except that inkscape is not nearly as good as matplotlib itself at optimising the resulting vector-based pdf to keep the file size down - not mpl's fault though). I just remembered, while trying this out, that there are two of every object forming the axis parts - two of every patch, grid line, tick line and label. It was this way before the latest changes also, but is there a reason, or is it a bug? It doesn't impact visually though.
thanks for the great work on this, Gary On Wed, Jul 20, 2011 at 12:41 PM, Benjamin Root <ben.r...@ou.edu> wrote: > On Tue, Jul 19, 2011 at 9:25 PM, gary ruben <gru...@bigpond.net.au> wrote: >> >> I haven't had a chance to look properly at the new mplot3d >> improvements that Ben Root has been working on, but I wonder whether >> it is easy now to set the axis properties so that the patches that >> form the axes no longer have an alpha value of 0.5? I really want them >> to be solid. The use case is that I often save images in a vector >> format for editing within inkscape, do some fiddling, then re-export >> as eps or pdf. If there are any semi-transparent objects, inkscape >> will rasterize the whole image, so it becomes necessary to first go >> through and manually set the alphas of all these patches to 1.0 before >> saving. >> A cursory look at the new code makes me hopeful that this is now >> possible since the setting from _AXINFO has been moved to the Axis >> constructor. Does that mean I'll be able to do something like >> ax._axinfo['x']['color']=(0.3,0.3,0.3,1) with the new version? >> >> Gary >> > > Gary, > > Glad to hear that you are kicking the tires. To make it clear, the _axinfo > dictionary is in the Axis3D object (of which there are 3 in a Axes3D > object). So, it would be something like: > > ax.xaxis._axinfo['color'] = (0.3, 0.3, 0.3, 1) > > At least, in theory. Part of the reason why I did not want to make this > dictionary official is because the above would not actually work as > expected. Although something similar for tick line colors might, for > example. Because of the inconsistencies and because I did not want to paint > myself into a corner, I have made this dictionary explicitly "users beware". > > However, there is hope for your problem! Use ax.xaxis.set_pane_color((0.3, > 0.3, 0.3, 1)) instead! > > Let me know if you encounter any other problems. > Ben Root > > ------------------------------------------------------------------------------ 10 Tips for Better Web Security Learn 10 ways to better secure your business today. Topics covered include: Web security, SSL, hacker attacks & Denial of Service (DoS), private keys, security Microsoft Exchange, secure Instant Messaging, and much more. http://www.accelacomm.com/jaw/sfnl/114/51426210/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users