code: def make_error_boxes(
      ax,
      xdata,
      ydata,
      xerror,
      yerror,
      facecolor="r",
      edgecolor="none",
      alpha=0.5,
  ):
      # Loop over data points; create box from errors at each point
      errorboxes = [
          Rectangle((x - xe[0], y - ye[0]), xe.sum(), ye.sum())
          for x, y, xe, ye in zip(xdata, ydata, xerror.T, yerror.T)
      ]
  
      # Create patch collection with specified colour/alpha
      pc = PatchCollection(
          errorboxes,
          facecolor=facecolor,
          alpha=alpha,
          edgecolor=edgecolor,
      )
  
      # Add collection to Axes
      ax.add_collection(pc)
  
      # Plot errorbars
      artists = ax.errorbar(
          xdata, ydata, xerr=xerror, yerr=yerror, fmt="none", ecolor="k"
      )
  
      return artists
  
imports: import matplotlib.pyplot
  import numpy
  from matplotlib.collections import PatchCollection
  from matplotlib.patches import Rectangle
label_desc: Use image node_id 1 for calling a global function with example usage: make_error_boxes(ax, xdata, ydata, xerror, yerror, facecolor, edgecolor, alpha) and returns: artists