plot_settings.py 492 B

1234567891011121314
  1. from matplotlib import cm
  2. import matplotlib.pyplot as plt
  3. from itertools import cycle
  4. # all the common imports and settings for plotting
  5. plt.rcParams['text.usetex'] = True
  6. plt.rcParams["font.family"] = "Times New Roman"
  7. COLOR_LIST = [cm.cividis(0.15), cm.autumn(0.5), cm.summer(0),
  8. cm.gist_heat(0.5), cm.cool(0.65), cm.gray(0.5), cm.winter(0.2)]
  9. plt.rcParams['axes.prop_cycle'] = plt.cycler(color=COLOR_LIST)
  10. COLORS = cycle(plt.rcParams['axes.prop_cycle'].by_key()['color'])