code: def get_canvas_xy(self, data_x, data_y, center=None):
          
          if center is not None:
              self.logger.warning("`center` keyword is ignored and will be deprecated")
  
          arr_pts = np.asarray((data_x, data_y)).T
          return self.tform['data_to_native'].to_(arr_pts).T[:2]
docs: Reverse of :meth:`get_data_xy`.