For those who are interested in the solution, here it is... ;-)
It turns out that the axes object has an attribute, axesFrame (a 2D line in the shape of a rectangle), in addition to frame (a Rectangle). At the default linewidth of 1, these two are nested and appear to be a single object. Although frame is exposed as a property that can be set using setp(), I couldn't find a matching property for axesFrame, which was driving me batty. Setting frame_on=False removed
both of them which also didn't help if you just wanted to change the color. Ultimately, this did the trick: ax=gca() axesframe = ax.axesFrame setp(axesframe, 'color', frame_edgecolor) setp(axesframe, 'antialiased', True) setp(axesframe, 'linewidth', 0.5) frame = getp(ax, 'frame') frame.set_visible(False)In my case, I kept the outer axesFrame, set it to the color I wanted, and set the inner frame to be invisible.
Results are attached.* --PLB At 17:54 15.3.2007, Peter Buschman wrote:
Okay, removing the frame turns out to work like this. ax=gca() setp(ax, frame_on=False) ... but changing the complete color still stymies me... :-(Setting the axes' frame edgecolor gives me a nice halo, but the black border is still there...axis_edgecolor = 'yellow' frame = ax.get_frame() setp(frame, 'edgecolor', axis_edgecolor) Confused... --PLB At 16:58 15.3.2007, Peter Buschman wrote:This is driving me crazy.... I've tried setting the axes' frame's edgecolor but nothing I try lets me get rid of or change the color of the black border around my axes. What is the recommend way of doing this, or is it even possible?(screenshot of my current results attached.) Thanks for any enlightenment. :) --PLB ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
bpp.png
Description: PNG image
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users