我有一个m列的矩阵。我想使用所选行(在每列中)的值来绘制列n与列1的关系,以选择颜色。
这样的事情:
boolean VariableBoolea;
if(EditText1 == null || EditText2 == null || EditText3 == null ){// you can use a foreach too
VariableBoolean = false; //or you can initialize it false and do anything here
}
else{
VariableBoolean = true;
}
if(someVariableBoolean == true){
yourButton.setVisibility(View.VISIBLE);
yourButton.setEnabled(true);
}
答案 0 :(得分:2)
您可以使用调色板选项选择颜色:
# using column k+1 to select color
plot for [k=2:20] 'test.txt' u 1:k:(column(k+1)) palette
# using the value k+1 to select color
plot for [k=2:20] 'test.txt' u 1:k:(k+1) palette
由于您需要第k列第10行指定的颜色,我会尝试类似:
colors = system("sed -ne '10p' test.txt")
plot for [k=2:20] 'test.txt' u 1:k:(word(colors,k)+0) palette