text: # scatter plot of input vs result for a 1d objective function
  from numpy import arange
  from matplotlib import pyplot
  
  # objective function
  def objective(x):
  	return x**2.0
  
  # define range for input
  r_min, r_max = -5.0, 5.0
  # sample input range uniformly at 0.1 increments
  inputs = arange(r_min, r_max, 0.1)
  # compute targets
  results = objective(inputs)
  # create a scatter plot of input vs result
  pyplot.scatter(inputs, results)
  # show the plot
  pyplot.show()
  