When I test Gaston.jl, I’m told that Gnuplots is not available on the system. How do I add this?
┌ Warning: Gnuplot is not available on this system. Gaston will be unable to produce any plots.
└ @ Gaston C:\Users\Brett\.julia\packages\Gaston\ctAQy\src\Gaston.jl:88
Test Summary: | Pass Total
Figure and set commands | 14 14
Test Summary: | Pass Broken Total
2-D plots | 45 3 48
Test Summary: | Pass Total
Histograms | 2 2
Test Summary: | Pass Total
Images | 3 3
Test Summary: | Pass Total
3-D plots | 12 12
Test Summary: | Pass Total
Multiplot | 1 1
Test Summary: | Pass Total
Saving plots | 6 6
Test Summary: | Pass Total
Tests that should fail | 14 14
Testing Gaston tests passed
Hi Brett. I will check on my Windows laptop.
I advise using the Chocolatey package manager. Install Chocolatey and the new GUI.
Then use this to install Gnuplot
Then, Gaston must be modified to use the JLL package instead of looking for gnuplot in the regular places. That part is easy. A pull request to Gaston can be done using the general instructions here.
It is far, far easier to just install gnuplot using Chocolatey, or your OS usual binary installer.
I had it in the path. I used chocolaty and I can get it to load up and make scatter plots, but it won’t make line plots, and I get an error if I try to add linewidth, color, titles, etc.
using Gaston
plot(1:10,title="A simple plot")
plot(1:10,title="A simple plot")
┌ Warning: Gnuplot returned an error message:
│
│ gnuplot> plot 'C:\Users\Brett\AppData\Local\Temp\jl_hzA37AN2qn' i 0 title A simple plot
│ ^
│ line 0: expecting "title" for plot
│
└ @ Gaston C:\Users\Brett\.julia\packages\Gaston\ctAQy\src\gaston_llplot.jl:182
You will need to read the documentation. Gnuplot has its own way to create plots. In your case, “title” is a property of the entire plot, as opposed to a specific curve; as such, it must be wrapped in Axes():
plot(1:10, Axes(title = "'A simple plot'"))
Anything inside Axes() is translated to gnuplot set commands; in this case, set title 'A simple plot'.