gcalderone/Gnuplot.jl

3D plot using direct call to splot no longer works since commit 6a4e95f377e3da76026731a99f2c6a918cd87fe8

Closed this issue · 4 comments

t37w commented

Hello,
I'm using the package Gnuplot.jl to plot RGB data in 3D.
The command used looks like '@gp(splot=true,redv[1:50:end], ...)'.
This worked perfect using the version of Gnuplot.jl covered by commit 1665b78 or by commit 56b64fc.
Using the next version splot is supported when plotting from file via using ...
Maybe something got lost during the second refractoring. Or is this the intention?

Regards,
Thomas

Hi,
yes, I had to re-factor a few part of the code to allow using all combinations of 2D/3D data with both the plot and splot commands, but this leads to breaking changes.

Starting from version 0.2.0 there are two fundamental changes:

  • The @gp macro send the plot command, while the @gsp macro send the splot command;
  • The @gpi macro is no longer necessary since the :- symbol allows to split a single statement into multiple ones.

Hence, you should change all the @gp calls to @gsp and get rid of the splot=true option (no longer accepted.

Let me know if the new version works for you.

Cheers,
Giorgio.

t37w commented

Hi
great news.
I will switch to you new version 0.2.0 and let you know.

Cheers,
Thomas

t37w commented

Hi,
after upgrading, I just replaced '@gp(splot=true' with '@gsp(' and my 3D plot shows up as expected.
==> Usecase test pass. Great.
Just for your info: I have gnuplot-5.2.0 installed on Windows using Cygwin. My real Linux box is currently broken.

Cheers,
Thomas

Good to know that it works flawlessly under windows, thank you!