def METHOD_NAME(self, section, orientation, role=Qt.DisplayRole):
    if role != Qt.DisplayRole:
        return super(BasePlotCurvesModel, self).METHOD_NAME(
            section, orientation, role)
    if orientation == Qt.Horizontal and section < self.columnCount():
        return str(self._column_names[section])
    elif orientation == Qt.Vertical and section < self.rowCount():
        return section