def METHOD_NAME(self, df, encoding, output):
    if encoding.x is None or encoding.y is None:
        with output:
            print("\n\n\nPlease select an X and Y axis.")
            return
    try:
        data = self._get_data(df, encoding)
    except InvalidEncodingError as err:
        with output:
            print("\n\n\n{}".format(err))
            return
    type_x_axis = self._get_type_axis(encoding.logarithmic_x_axis)
    type_y_axis = self._get_type_axis(encoding.logarithmic_y_axis)
    layout = Layout(
        xaxis=dict(type=type_x_axis, rangemode="tozero", title=encoding.x),
        yaxis=dict(type=type_y_axis, rangemode="tozero", title=encoding.y),
    )
    with output:
        try:
            fig = Figure(data=data, layout=layout)
            iplot(fig, show_link=False)
        except TypeError:
            print(
                "\n\n\nPlease select another set of X and Y axis, because the type of the current axis do\n"
                "not support aggregation over it."
            )