X-Received: by 2002:a0c:c783:: with SMTP id k3mr7556498qvj.241.1584022823384; Thu, 12 Mar 2020 07:20:23 -0700 (PDT) X-Received: by 2002:a05:6830:1d69:: with SMTP id l9mr6578345oti.192.1584022822920; Thu, 12 Mar 2020 07:20:22 -0700 (PDT) Path: csiph.com!xmission!news.snarked.org!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.graphics.apps.gnuplot Date: Thu, 12 Mar 2020 07:20:22 -0700 (PDT) In-Reply-To: <9dc9ab30-c3b7-41f1-be86-b2b5332b8aea@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: google-groups.googlegroups.com; posting-host=2800:484:6b85:6850:f451:427e:eb0f:6663; posting-account=aUOAeAoAAABphperwpN1apxi3urOHe_l NNTP-Posting-Host: 2800:484:6b85:6850:f451:427e:eb0f:6663 References: <55ca12d9-6c65-449c-beb6-a3aa84db7a1f@googlegroups.com> <155725b0-abde-496c-9f65-bcee053d47c5@googlegroups.com> <9dc9ab30-c3b7-41f1-be86-b2b5332b8aea@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <5db55f4c-1ad7-4382-bc47-e201e1269382@googlegroups.com> Subject: Re: Preview your gnuplot figures in VS Code From: Cristian Camilo Mejia Injection-Date: Thu, 12 Mar 2020 14:20:23 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Lines: 79 Xref: csiph.com comp.graphics.apps.gnuplot:4307 On Thursday, March 12, 2020 at 3:25:20 AM UTC-5, hiii...@gmail.com wrote: > =E5=9C=A8 2020=E5=B9=B43=E6=9C=8811=E6=97=A5=E6=98=9F=E6=9C=9F=E4=B8=89 U= TC+8=E4=B8=8B=E5=8D=8810:34:38=EF=BC=8CCristian Camilo Mejia=E5=86=99=E9=81= =93=EF=BC=9A > > Hi fizzy! It works!. It seems that my problem came from gnuplot/vscode:= =E2=80=9CCannot find or open file=E2=80=9D. In the script I have a line wi= th set loadpath '../=E2=80=98, which works well directly in gnuplot.=20 > >=20 > > Thank you so much for your reply.=20 > > Best, > > Crist. > >=20 > >=20 > > On Wednesday, March 11, 2020 at 5:55:34 AM UTC-5, hiii...@gmail.com wro= te: > > > =E5=9C=A8 2020=E5=B9=B43=E6=9C=8810=E6=97=A5=E6=98=9F=E6=9C=9F=E4=BA= =8C UTC+8=E4=B8=8A=E5=8D=8810:41:41=EF=BC=8CCristian Camilo Mejia=E5=86=99= =E9=81=93=EF=BC=9A > > > > Hi man!=20 > > > > This sounds great for me. But, to be honest, I do not have idea of = VS Code. I have installed VS Code on mac then I have installed the extensio= n. However, still I can=E2=80=99t realize what do you mean with "Make sure = you have added the directory containing gnuplot binary to PATH environment = variable and restart VS Code before using this extension.=E2=80=9D How can = I do that...? There exist an ini file for VS Code? Where is it? > > > > Thanks in advance, > > > > Crist. > > > >=20 > > > > On Monday, March 9, 2020 at 1:10:21 AM UTC-5, fizzybreezy wrote: > > > > > Hello, > > > > >=20 > > > > > I developed a VS Code extension to preview gnuplot figures when e= diting it and I want to share it with you to boost your work. > > > > >=20 > > > > > Here is the link : https://marketplace.visualstudio.com/items?ite= mName=3Dfizzybreezy.gnuplot > > > > >=20 > > > > > And here is the source code : https://github.com/fizzybreezy/vsco= de-gnuplot > > > > >=20 > > > > > To active preview, just use command `gnuplot.view` or hotkey `ctr= l(cmd) + alt +v` when editing gnuplot scripts ( *.gnuplot, *.gnu, *.plot, *= .plt, *.gp ).The preview panel will auto refresh when you change your scrip= t and switch editor windows between scripts. > > > > >=20 > > > > > Enjoy this extension and welcome to help me improve it by post is= sues and pull request. > > > > >=20 > > > > > fizzybreezy > > >=20 > > > hi crist, > > >=20 > > > well, I didn't test this extension on mac and I am not familiar with = mac. I'll try to give some advice. > > >=20 > > > 1. just open a gnuplot script in VS Code and open the preview panel b= y pressing `cmd + alt +v` ,change and save your script(do not `set terminal= ` and `set output`),see if the extension is worked. > > >=20 > > > 2. if not, reinstall gnuplot with brew and restart vscode(maybe also = your computer). here is tutorial, https://gist.github.com/scuxiayiqian/c8ea= 9452f86dc1918de92b136e772c80. > > >=20 > > > Hopefully this will work for you, if you still have troubles, fell fr= ee to ask me and i'll try to help. > > >=20 > > > fizzy >=20 > hi crist, >=20 > I have published a patched version and now you can use lines like `loadpa= th '../'` . >=20 > cheers, > fizzy Dear fizzy,=20 Great! I will try it soon. Thanks a lot, Crist.