different patch.linewidth for bars and lenged

Hello,

How to set linewidth for bars and legend rectangle separately? I need
thick edge of bars but the rectangle line in legend could have the
linewidth set to 0.5. In matplotlibrc file I have:
patch.linewidth : 2.0

Another question concerns the numbers of x-axis and y-axis. I the left
bottom corner the numbers of both axes overlap. I would like to have the
numbers of y-axis placed a little bit to the left. How to do it?

Regards,
SK