gnuplot中的2Dcountour

时间:2019-02-24 09:17:28

标签: gnuplot

如何在gnuplot中进行计数? 我要绘图:

@Override
public void onClick(View v) {
    switch (v.getId()) {
        case R.id.btn_yes:
            if ((!TextUtils.isEmpty(newpass.getText().toString())) && oldpass.getText().toString().equals(Login_Activity.e.getPassword())) {
                Login_Activity.e.password=newpass.getText().toString();
                user.child(Login_Activity.e.getId()).setValue(Login_Activity.e);
                dismiss();
            } else {
                yes.setBackgroundResource(R.color.red);
            }
            break; // add this
        case R.id.btn_no:
            dismiss();
            break;
    }
}

我尝试了

5.300000e+04 1.300000e+02 5.436518e+06
5.300000e+04 1.325000e+02 5.126855e+06
5.300000e+04 1.350000e+02 4.803566e+06
5.300000e+04 1.375000e+02 4.457970e+06
5.300000e+04 1.400000e+02 4.103957e+06
5.300000e+04 1.425000e+02 3.734172e+06
5.300000e+04 1.450000e+02 3.352012e+06
.....
.....

有结果 docs

如何编辑右侧以完全查看数字,以及如何调用比例来更改字体?

1 个答案:

答案 0 :(得分:1)

您可以使用以下方法调整右边距的宽度:

set rmargin at screen XXX

其中XXX是从0到1的数字。上边距(tmargin),下边距(bmargin)和左边距(lmargin)完全相同。

色标在gnuplot中称为色箱。

这或多或少是您想要的:

set view map
set dgrid3d
set ytics font "Times New Roman,12"
set xtics font "Times New Roman,12"
unset key

#Adjust the width of left and right margins so that the numbers fit
set lmargin at screen 0.1
set rmargin at screen 0.85

set palette rgbformulae 30,31,32
set decimalsign ','
set format y "%5.1f"
set format x "%5.1f"

# Change font of color scale
set cbtics font "Times New Roman,12"

splot "mapa.txt" using 1:2:3 with pm3d