old_contents: import pylab as plt
  
  def pylab_style():
      params = {
          'boxplot.boxprops.linewidth': 10.0,
          "figure.figsize": [8, 5],
          "axes.labelsize": 15,
          "axes.labelweight": "medium",
          "axes.titleweight": "medium",
          'legend.fontsize': 15,
          "xtick.labelsize": 15,
          "ytick.labelsize": 15,
          "font.weight": "medium",
          "lines.linewidth": 1,
          "axes.titlesize": 15,
          "ytick.minor.visible": True,
          "xtick.minor.visible": True,
          "ytick.right": True,
          "xtick.top": True,
          "ytick.direction": "in",
          "xtick.direction": "in",
          "ytick.major.size": 5,
          "ytick.major.width": 1,
          "ytick.minor.size": 3,
          "ytick.minor.width": 0.6,
          "xtick.major.size": 5,
          "xtick.major.width": 1,
          "xtick.minor.size": 3,
          "xtick.minor.width": 0.6,
      }
  
      plt.rcParams.update(params)
  
new_contents: import pylab as plt
  
  def pylab_style(paper=False):
      params = {
          'boxplot.boxprops.linewidth': 10.0,
          "figure.figsize": [8, 5],
          "axes.labelsize": 15,
          "axes.labelweight": "medium",
          "axes.titleweight": "medium",
          "legend.fontsize": 15,
          "xtick.labelsize": 15,
          "ytick.labelsize": 15,
          "font.weight": "medium",
          "lines.linewidth": 1,
          "axes.titlesize": 15,
          "ytick.minor.visible": True,
          "xtick.minor.visible": True,
          "ytick.right": True,
          "xtick.top": True,
          "ytick.direction": "in",
          "xtick.direction": "in",
          "ytick.major.size": 5,
          "ytick.major.width": 1,
          "ytick.minor.size": 3,
          "ytick.minor.width": 0.6,
          "xtick.major.size": 5,
          "xtick.major.width": 1,
          "xtick.minor.size": 3,
          "xtick.minor.width": 0.6,
      }
      if paper:
          params["text.usetex"] = True
          params["font.family"] = "serif"
          # params["font.serif"] = "Computer Modern Roman"
          params["axes.labelsize"] = 20
          params["xtick.labelsize"] = 20
          params["ytick.labelsize"] = 20
      plt.rcParams.update(params)
  
subject: add plotting style for paper