The popular open-source contract for web professionals by Stuff & Nonsense
- Originally published: 23rd December 2008
- Revised date: March 15th 2016
- Original post
* { | |
padding: 0; | |
margin: 0; | |
} | |
html, | |
body { | |
font-family: Helvetica; | |
background-color: #F4F2E9; | |
} |
def set_foregroundcolor(ax, color): | |
'''For the specified axes, sets the color of the frame, major ticks, | |
tick labels, axis labels, title and legend | |
''' | |
for tl in ax.get_xticklines() + ax.get_yticklines(): | |
tl.set_color(color) | |
for spine in ax.spines: | |
ax.spines[spine].set_edgecolor(color) | |
for tick in ax.xaxis.get_major_ticks(): | |
tick.label1.set_color(color) |