Esempio n. 1
0
    def axes(self):
        """Returns the axes subplot matplotlib object.

        Returns
        -------
        Axes
            The matplotlib axes object.

        Notes
        -----
        For more info, see the documentation of the Axes class ([1]_) and the
        axis and tick API ([2]_).

        References
        ----------
        .. [1] https://matplotlib.org/api/axes_api.html
        .. [2] https://matplotlib.org/api/axis_api.html

        """
        if self._axes is None:
            self._axes = create_axes_xy(figsize=self.figure_size,
                                        dpi=self.figure_dpi,
                                        xlabel=self.axes_xlabel,
                                        ylabel=self.axes_ylabel)

        return self._axes
Esempio n. 2
0
    def axes(self):
        """Returns the axes subplot matplotlib object.

        Returns
        -------
        object
            The matplotlib axes object.

        """
        if self._axes is None:
            # customise the use of this function
            # using attributes of the plotter class
            self._axes = create_axes_xy(figsize=self.figure_size,
                                        dpi=self.figure_dpi,
                                        xlabel=self.axes_xlabel,
                                        ylabel=self.axes_ylabel)

        return self._axes