123456789101112131415161718192021222324252627282930313233343536 |
-
-
- import matplotlib
- from matplotlib import rc
-
-
-
-
-
-
-
-
-
-
-
- def pc2in(pc):
- return pc*12/72.27
-
- import numpy as np
- light_grey = np.array([float(248)/float(255)]*3)
-
- def fixLeg(legend):
- rect = legend.get_frame()
-
- rect.set_facecolor(light_grey)
- rect.set_linewidth(0.0)
- rect.set_alpha(0.5)
-
- def deSpine(ax1):
- spines_to_remove = ['top', 'right']
- for spine in spines_to_remove:
- ax1.spines[spine].set_visible(False)
-
-
- ax1.get_xaxis().tick_bottom()
- ax1.get_yaxis().tick_left()
|