   with the right edge.
   """
   def title(s, kwargs \\ []) do
-    code = Codebuilder.build_code(funcname: "plt.title", nonnamed: [s], named: kwargs)
-    Server.Commapi.add_code code
+    Codebuilder.build_code(funcname: "plt.title", nonnamed: [s], named: kwargs) |> Server.Commapi.add_code
   end
 
   @doc """
   Set the x axis label of the current axis.
   """
   def xlabel(s, kwargs \\ []) do
-    code = Codebuilder.build_code(funcname: "plt.xlabel", nonnamed: [s], named: kwargs)
-    Server.Commapi.add_code code
+    Codebuilder.build_code(funcname: "plt.xlabel", nonnamed: [s], named: kwargs) |> Server.Commapi.add_code
   end
 
   @doc """
   Set the y axis label of the current axis.
   """
   def ylabel(s, kwargs \\ []) do
-    code = Codebuilder.build_code(funcname: "plt.ylabel", nonnamed: [s], named: kwargs)
-    Server.Commapi.add_code code
+    Codebuilder.build_code(funcname: "plt.ylabel", nonnamed: [s], named: kwargs) |> Server.Commapi.add_code
   end
 
   def show do
-    code = Codebuilder.build_code(funcname: "plt.show", nonnamed: [], named: [])
-    Server.Commapi.add_code code
+    Codebuilder.build_code(funcname: "plt.show", nonnamed: [], named: []) |> Server.Commapi.add_code
   end
 end

  Convenience method to get or set axis properties.
  """
  def axis_get(kwargs \\ []) do
    code = Codebuilder.build_code(funcname: "plt.axis", nonnamed: [], named: kwargs)
    Server.Commapi.add_code code
  end

  @doc """

  Draws arrow on specified axis from (x, y) to (x + dx, y + dy). Uses FancyArrow patch to construct the arrow.
  """
  def arrow(x, y, dx, dy, opts \\ [hold: nil], kwargs \\ []) do
    Codebuilder.build_code(funcname: "plt.arrow", nonnamed: [x, y, dx, dy], named: opts ++ kwargs) |> Server.Commapi.add_code
  end

  @doc """
