简体   繁体   中英

When writing long lines of commands in gnuplot using the mouse to jump to sections does not work. Any advice please?

when writing long command lines in gnuplot 5.4 - eg, 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.

Welcome to StackOverflow. 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, eg 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 type load 'myScript.gp'

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM