diff --git a/include/matplotlibcpp17/axes.h b/include/matplotlibcpp17/axes.h index e30956b..c0ce047 100644 --- a/include/matplotlibcpp17/axes.h +++ b/include/matplotlibcpp17/axes.h @@ -20,6 +20,9 @@ namespace matplotlibcpp17::axes { +using HistType = std::tuple, std::vector, + container::BarContainer>; + /** * @brief A wrapper class for matplotlib.axes.Axes **/ @@ -99,9 +102,8 @@ struct DECL_STRUCT_ATTR Axes { const pybind11::dict &kwargs = pybind11::dict()); // hist - std::tuple, std::vector, container::BarContainer> - hist(const pybind11::tuple &args = pybind11::tuple(), - const pybind11::dict &kwargs = pybind11::dict()); + HistType hist(const pybind11::tuple &args = pybind11::tuple(), + const pybind11::dict &kwargs = pybind11::dict()); // hist2d pybind11::object hist2d(const pybind11::tuple &args = pybind11::tuple(),