0xfizzy / vscode-gnuplot Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Hi,
I am using the "gnuplot preview" extension.
First of all, I would like to thank you for your good extension program.
When I use this extension locally, it works perfectly without any problem.
And also with "Remote-ssh" at first run, it works well. (I also installed on ssh.)
However, after several times running or move the tabs to another place, suddenly it does not work at all.
The error message is "Running the contributed command: 'gnuplot.view' failed."
And it works again only if when I restart the vscode.
Please shed light on this problem. ;(
Thanks.
This is not really an issue, but something for people who are new to coding and are having this problem.
First, you need to install gnuplot on your computer. here: http://www.gnuplot.info/download.html
To add a directory to the PATH environment variable, you need to modify the system's PATH variable rather than directly changing anything within VS Code. Here's how you can do it:
1.- Open the Start menu in Windows and search for "environment variables" or "edit the system environment variables." Click on the option that allows you to edit the system environment variables. This will open the System Properties window.
2.- In the System Properties window, click on the "Environment Variables" button. This will open the Environment Variables window.
3.- In the Environment Variables window, you'll see two sections: User variables and System variables. To add a directory to the PATH variable for all users, select the "Path" variable under the System variables section and click the "Edit" button. If you want to add the directory only for your user account, select the "Path" variable under the User variables section and click the "Edit" button.
4.- In the Edit Environment Variable window, click the "New" button to add a new entry.
5.- Here is where you add the bin path from gnuplot. In my case I would add 'C:\Program Files\gnuplot\bin'
6.- Click "OK" to save the changes.
7.- Restart your computer to apply the changes to the PATH variable.
Once you've added the directory to the PATH variable, it will be accessible from within VS Code.
Hi,
In past I have seen other users using file extensions .g, .gp, .plt to save gnuplot scripts. Would it be possible to add a setting that defines the extension used by user's scripts to enable using them in vscode?
Thanks!
Rajarshi
call command test
in gnuplot 5.4 patchlevel8
and in VScode (Gnuplot preview)
, I get two different results. The plotting style showed in the two pictures is very different. What causes the differences?
my code :
unset key
plot "statdata.csv" u 1:2 ps 2 pt 7 ,\
"" u 1:3 ps 2 pt 9,\
"" u 1:4 ps 2 pt 11
data file can be downloaded from statdata.csv
the results of command test
is at test results
Not able to preview in a live share project.
Got the following error:
Command 'Gnuplot: Gnuplot: Preview Figure' resulted in an error: Illegal argument: line must be non-negative
Working on Macos Sonoma:
VSCode :
Version: 1.83.1 (Universal)
Commit: f1b07bd25dfad64b0167beb15359ae573aecd2cc
Date: 2023-10-10T23:46:55.789Z
Electron: 25.8.4
ElectronBuildId: 24154031
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: 11.4.183.29-electron.0
OS: Darwin arm64 23.0.0
你好,我是在vscode里运行wsl,我在wsl里安装了gnuplot,路径是/usr/bin,我已经将路径加到.bashrc中,然后安装gnuplot preview插件,在编辑器窗口打开了gnu的脚本,但是在命令窗口输入gnuplot.view提示 command not found
You say:
"Make sure you have added the directory containing gnuplot binary to PATH environment variable..."
I work on a PC where I do not have administrator rights. This means that I cannot easily change the PATH environment variable.
Therefore it would be helpful if I could set the path to GNUPLOT in the settings of the extension.
Thank you so much for this piece of software…incredibly useful!
One question though: at the end I need to save my plot as pdf. For now I comment the line set terminal pdf
until I am happy, and then uncomment it. Is that the recommended workflow?
Also, is it possible, when the set terminal
command is uncommented, to run gnuplot on save?
It would be nice to have the plugin in the VSCodium repository (https://open-vsx.org/). Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.