Code Monkey home page Code Monkey logo

vscode-gnuplot's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

vscode-gnuplot's Issues

Error message :"Running the contributed command: 'gnuplot.view' failed."

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.

gnuplot binary PATH environment variable

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.

using custom file extension

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

Plotting style is not consistent in VScode and Gnuplot.

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

Can't preview in live share

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

Screen.Recording.2023-10-23.at.4.28.00.PM.mov

无法preview

你好,我是在vscode里运行wsl,我在wsl里安装了gnuplot,路径是/usr/bin,我已经将路径加到.bashrc中,然后安装gnuplot preview插件,在编辑器窗口打开了gnu的脚本,但是在命令窗口输入gnuplot.view提示 command not found

Make path to program configurable

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.

preview and pdf export

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.