new_contents: #!/usr/bin/env python
  # -*- coding: utf-8 -*-
  
  import numpy as np
  import matplotlib.pyplot as plt
  
  x = np.arange(1000)
  y = x * x
  
  plt.plot(x, y)
  plt.yscale('log')
  
  plt.title('x^2')
  
  plt.show()
  
subject: Add log_scale snippet for matplotlib.