Skip to content

Commit 9a44aa2

Browse files
authored
zlabel (#168)
1 parent ac9193c commit 9a44aa2

5 files changed

Lines changed: 5 additions & 0 deletions

File tree

Tests/ArrayCoreTest.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ TEST(ArrayCore, configurator) {
126126
auto config = dv::Config();
127127
config.heatmap.xLabel = "Столбцы";
128128
config.heatmap.yLabel = "Строки";
129+
config.heatmap.zLabel = "Z";
129130
config.heatmap.title = "Тестовая матрица";
130131
config.heatmap.colorSc = dv::COLORSCALE_YlGnBu;
131132
bool result1 = dv::show(values, "HeatMap", config);

array_core/configurator.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ struct commonSettings {
3636
std::string title;
3737
std::string xLabel;
3838
std::string yLabel;
39+
std::string zLabel;
3940
double aspectRatioWidth; // use it for user scale if isFitPlotToWindow = false
4041
double aspectRatioHeight;// use it for user scale if isFitPlotToWindow = false
4142
bool isFitPlotToWindow; //true - plot fits to browser window, false - square plot

davis_one/davis.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1335,6 +1335,7 @@ bool createHtmlPageHeatmap(const std::vector<std::vector<double>>& values,
13351335
args[ARG_TITLE] = configuration.heatmap.title;
13361336
args[ARG_TITLE_X] = configuration.heatmap.xLabel;
13371337
args[ARG_TITLE_Y] = configuration.heatmap.yLabel;
1338+
args[ARG_TITLE_Z] = configuration.heatmap.zLabel;
13381339
args[ARG_ASPECT_RATIO_WIDTH] = dvs::toStringDotSeparator(configuration.heatmap.aspectRatioWidth);
13391340
args[ARG_ASPECT_RATIO_HEIGHT] = dvs::toStringDotSeparator(configuration.heatmap.aspectRatioHeight);
13401341
string paramWH;

davis_one/davis.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ struct commonSettings {
6767
std::string title;
6868
std::string xLabel;
6969
std::string yLabel;
70+
std::string zLabel;
7071
double aspectRatioWidth; // use it for user scale if isFitPlotToWindow = false
7172
double aspectRatioHeight;// use it for user scale if isFitPlotToWindow = false
7273
bool isFitPlotToWindow; //true - plot fits to browser window, false - square plot

plotly_maker/plotly_maker.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ bool createHtmlPageHeatmap(const std::vector<std::vector<double>>& values,
119119
args[ARG_TITLE] = configuration.heatmap.title;
120120
args[ARG_TITLE_X] = configuration.heatmap.xLabel;
121121
args[ARG_TITLE_Y] = configuration.heatmap.yLabel;
122+
args[ARG_TITLE_Z] = configuration.heatmap.zLabel;
122123
args[ARG_ASPECT_RATIO_WIDTH] = dvs::toStringDotSeparator(configuration.heatmap.aspectRatioWidth);
123124
args[ARG_ASPECT_RATIO_HEIGHT] = dvs::toStringDotSeparator(configuration.heatmap.aspectRatioHeight);
124125
string paramWH;

0 commit comments

Comments
 (0)