Windows下的gnuplot:启动时如何指定窗口的大小/位置? [英] gnuplot under windows: how to specify window size/position when it startup?

查看:99
本文介绍了Windows下的gnuplot:启动时如何指定窗口的大小/位置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Windows 10下,如何通过命令行参数指定gnuplot的窗口位置(X,Y)和窗口大小(宽度,高度)?

Under windows 10, how can I specify window postion (X,Y) and window size (width,height) of gnuplot, via command line arguments?

应用程序的路径为

D:\gnuplot\bin\wgnuplot.exe

如何用它指定窗口位置和大小?像Cygwin薄荷糖一样:

how can specify window postion and size with it? like with cygwin mintty:

D:\cygwin\bin\mintty.exe -i /Cygwin-Terminal.ico 
   -p 372,12 -s 135,50 -o Font=Consolas -o FontHeight=13 -

显示版本长输出

    Version 5.2 patchlevel 0    last modified 2017-09-01
Compile options:
    +READLINE  -LIBREADLINE  +HISTORY  
    -BACKWARDS_COMPATIBILITY  +UNICODE  +OBJECTS  +STATS +EXTERNAL_FUNCTIONS 
    +LIBCERF  +GD_PNG  +GD_JPEG  +GD_TTF  +GD_GIF  +ANIMATION  
    -USE_CWDRC  +USE_MOUSE  +HIDDEN3D_QUADTREE  
    MAX_PARALLEL_AXES=13

P.S.
我的意思是gnuplot的窗口,而不是它绘制的图形.

P.S.
I mean the window of gnuplot, not the graph it plots.

推荐答案

Windows 10下的Gnuplot可以使用位于%AppData%(C:\ Users \ maij的初始化文件 wgnuplot.ini \ AppData \ Roaming).

Gnuplot under Windows 10 can use an init file wgnuplot.ini which is located at %AppData% (C:\Users\maij\AppData\Roaming in my case).

您可以通过单击gnuplot窗口的左上角图标,然后单击选项->更新wgnuplot.ini"来生成和更新文件(请参见下图).请试一下窗口的位置和大小,并更新ini文件以了解其工作原理.

You can generate and update the file by clicking the upper left icon of the gnuplot window and following "Options -> Update wgnuplot.ini" (see the following picture). Please play a bit with window positions and sizes and updating the ini file to see how it works.

我的建议是在启动gnuplot之前使用适当的条目生成 wgnuplot.ini .

My suggestion would be to generate wgnuplot.ini with the appropriate entries before launching gnuplot.

当前,我的wgnuplot.ini如下所示:

Currently my wgnuplot.ini looks as follows:

[WGNUPLOT]
TextOrigin=290 50
TextSize=785 489
TextMinimized=0
TextMaximized=0
TextFont=Consolas,9
TextWrap=1
TextLines=400
SysColors=0
DockVerticalTextFrac=350
DockHorizontalTextFrac=400

TextOrigin TextSize 是您感兴趣的选项.

TextOrigin and TextSize are the options you are interested in.

这篇关于Windows下的gnuplot:启动时如何指定窗口的大小/位置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆