24 #ifndef COM_DAFER45_TBTK_VISUALIZATION_MAT_PLOT_LIB_CONTOURF_PARAMETERS
25 #define COM_DAFER45_TBTK_VISUALIZATION_MAT_PLOT_LIB_CONTOURF_PARAMETERS
27 #include "TBTK/Visualization/MatPlotLib/matplotlibcpp.h"
33 namespace Visualization{
42 void setTitle(
const std::string &title,
bool overwrite =
true);
45 void setLabelX(
const std::string &labelX,
bool overwrite =
true);
48 void setLabelY(
const std::string &labelY,
bool overwrite =
true);
51 void setBoundsX(
double minX,
double maxX,
bool overwrite =
true);
54 void setBoundsY(
double minY,
double maxY,
bool overwrite =
true);
62 std::pair<bool, std::string> title;
63 std::pair<bool, std::string> labelX;
64 std::pair<bool, std::string> labelY;
65 std::pair<bool, double> minX;
66 std::pair<bool, double> maxX;
67 std::pair<bool, double> minY;
68 std::pair<bool, double> maxY;
84 const std::string &title,
87 if(overwrite || !this->title.first)
88 this->title = {
true, title};
92 const std::string &labelX,
95 if(overwrite || !this->labelX.first)
96 this->labelX = {
true, labelX};
100 const std::string &labelY,
103 if(overwrite || !this->labelY.first)
104 this->labelY = {
true, labelY};
112 if(overwrite || !this->minX.first)
113 this->minX = {
true, minX};
114 if(overwrite || !this->maxX.first)
115 this->maxX = {
true, maxX};
123 if(overwrite || !this->minY.first)
124 this->minY = {
true, minY};
125 if(overwrite || !this->maxY.first)
126 this->maxY = {
true, maxY};
131 matplotlibcpp::title(title.second);
133 matplotlibcpp::xlabel(labelX.second);
135 matplotlibcpp::ylabel(labelY.second);
137 matplotlibcpp::xlim(minX.second, maxX.second);
139 matplotlibcpp::ylim(minY.second, maxY.second);
144 labelX = {
false,
""};
145 labelY = {
false,
""};