From 503d917911401654c0a1cacfa404a9acbe26925e Mon Sep 17 00:00:00 2001 From: soblin Date: Sat, 12 Feb 2022 21:14:35 +0900 Subject: [PATCH] renamed hist's return type --- include/matplotlibcpp17/axes.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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(),