在 gnuplot 中编写长行命令时,使用鼠标跳转到部分不起作用。请问有什么建议吗?

发布于 2025-01-14 16:55:40 字数 132 浏览 4 评论 0原文

当在 gnuplot 5.4 中编写长命令行时 - 例如,在一张图中绘制多组数据 - 如果我可以跳转到命令行的特定部分以使用鼠标进行编辑,那么这将很有用,目前我只能使用方向键,这需要相当长的时间。 有人对是否可以使用鼠标执行此操作有任何建议吗?干杯。

when writing long command lines in gnuplot 5.4 - e.g., plotting several sets of data in one graph - it would be useful if I could jump to specific sections of the command line to edit using my mouse, at the moment I can only do that using the arrow keys, which takes quite a while.
Does anyone have any advice on whether its possible to do that using the mouse? Cheers.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

左岸枫 2025-01-21 16:55:41

我了解您正在使用 gnuplot 控制台输入 gnuplot 命令来创建图表
并且您有很长的命令最终可能需要编辑。

为什么不:

  • 使用您选择的文本编辑器
  • 在其中输入命令(最好从重置会话开始以具有默认设置)
  • 将其保存为文件,例如myScript.gp
  • 在 gnuplot 控制台中,输入 load 'myScript.gp' 如果您需要编辑任何内容,您的脚本将启动
  • ,转到文本编辑器并使用鼠标、箭头和滚动按钮灵活导航,如下所示你喜欢并再次保存。
  • 在 gnuplot 控制台中,使用向上箭头键返回到命令 load 'myScript.gp' 并按。如果您同时使用了许多其他命令,您也可以输入 hist,您将获得命令的历史记录。如果197 是您要重新执行的命令的编号,请键入例如hist!197。检查帮助历史记录
  • 重复编辑脚本,直到您对情节结果感到满意为止。

我想说这比在 gnuplot 控制台中调用和编辑长行更方便。

I understand that you are using the gnuplot console to type your gnuplot commands to create your graph
and you have lengthy commands which you might eventually need to edit.

Why don't you:

  • use the text editor of your choice
  • type your commands there (ideally start with reset session to have default settings)
  • save it as file, e.g. as myScript.gp
  • in gnuplot console, type load 'myScript.gp' and your script will start
  • if you need to edit anything, go to the text editor and flexibly navigate with the mouse, arrows, and scroll buttons as you like and save it again.
  • in gnuplot console use the arrow-up key to get back to the command load 'myScript.gp' and press <Enter>. In case you have used many other commands in the meantime, you could also type hist and you will get the history of commands. Type, e.g. hist!197 if 197 is the number of the command you want to re-execute. Check help history.
  • repeat editing your script until you are satisfied with the plot result.

I would say that this is more convenient than recalling and editing long lines in the gnuplot console.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文