Michal Sojka
18b83daf7e
Merge dd1433a20d16e08be05625668af1936b19c5dffa into 9001d5f3853ad40149fd604e1ae98ce0bff82fae
2022-01-04 12:11:52 +01:00
Michal Sojka
67c8781f2b
Fix another hist BoundsError
...
This fixes the error with `hist([1,1,1], bs=1)`:
ERROR: BoundsError: attempt to access 0-element Vector{Int64} at index [0]
Stacktrace:
[1] getindex
@ ./array.jl:801 [inlined]
[2] hist(v::Vector{Int64}; range::Vector{Float64}, bs::Int64, nbins::Int64, pad::Bool)
@ Gnuplot ~/.julia/dev/Gnuplot/src/Gnuplot.jl:1864
[3] top-level scope
@ REPL[50]:1
2021-09-06 16:53:40 +02:00
Michal Sojka
db8dcfc433
Fix bounds error in hist recipe
...
When running hist([1,2,3], bs=2), the following error is produced:
ERROR: BoundsError: attempt to access 1-element Vector{Float64} at index [2]
Stacktrace:
[1] getindex
@ ./array.jl:801 [inlined]
[2] hist(v::Vector{Int64}; range::Vector{Float64}, bs::Int64, nbins::Int64, pad::Bool)
@ Gnuplot ~/.julia/dev/Gnuplot/src/Gnuplot.jl:1873
[3] top-level scope
@ REPL[25]:1
2021-09-06 16:53:40 +02:00
Michal Sojka
dd1433a20d
Switch to using display() to show the plots
...
This brings better compatibility with the Julia package ecosystem.
Now, if Gnuplot.jl is used in an environment capable of showing
multimedia content (IJulia, VS Code, Pluto), their internal viewer
will take precedence over using gnuplot's built-in viewer. In the
REPL, gnuplot viewer is still used by default.
In VS Code, for example, when the *Use Plot Pane* settings is enabled,
the plots show in that pane, but when it is disabled, gnuplot viewer is
automatically used.
For people who prefer to always use the gnuplot viewer, they can set
Gnuplot.options.gpviewer to true. This should result in the same
behaviour as before this commit.
2021-08-02 00:59:20 +02:00
Giorgio Calderone
2fb581b3a3
Defined and implemented the display behaviour (based on options/gpviewer)
2020-04-25 18:37:17 +02:00
Giorgio Calderone
184206946b
Fix CI
2020-04-22 19:15:03 +02:00
Giorgio Calderone
e3d9d6035e
Fix CI
2020-04-22 18:26:47 +02:00
Giorgio Calderone
e11d93d807
Fix CI
2020-04-22 18:17:23 +02:00
Giorgio Calderone
6996c98d40
Fix CI
2020-04-22 18:09:54 +02:00
Giorgio Calderone
a47705be6b
Test updated
2020-04-22 14:46:11 +02:00
Giorgio Calderone
f7bf0040fa
Fix CI
2020-04-20 18:15:47 +02:00
Giorgio Calderone
739255330b
Test coverage: 69%
2020-04-20 18:11:57 +02:00
Giorgio Calderone
e264b27119
Comments updated
2020-04-19 16:49:19 +02:00
gcalderone
3e053c440f
Fix ci ( #18 )
...
* Updated
* Updated
* Updated
* Updated
* Updated
* Fix CI
2020-04-18 00:17:08 +02:00
Giorgio Calderone
7bff6fc9a7
Added term, term_png and term_svg fields in Options
2020-04-17 16:13:57 +02:00
Giorgio Calderone
379cfdc806
Docs updated; delayed parsing of keyword
2020-04-16 20:18:42 +02:00
Giorgio Calderone
44a7ea2ecd
Refactored parsing of input arguments
2020-04-15 01:37:54 +02:00
Giorgio Calderone
f8d239d9c2
Fixed recipe interface; DatasetBin methods for images are now implemented as recipes
2020-04-14 12:21:34 +02:00
Giorgio Calderone
0e44232adc
v1.2.0 features added
2020-04-13 01:35:05 +02:00
Giorgio Calderone
2c4b8dda1e
Renamed gpexec
2020-04-01 16:18:50 +02:00
Giorgio Calderone
5fae45b03c
Consider also dry sessions
2020-04-01 11:08:39 +02:00
Giorgio Calderone
dd97b78d2a
Minor changes
2020-03-30 13:05:18 +02:00
Giorgio Calderone
d760dd287c
data2string renamed to arrays2datablock; Docstrings updated
2020-03-26 12:53:13 +01:00
Giorgio Calderone
4fa4b392c6
Added test_terminal() function; Changed name and meaning of linestyles: now returns linetypes
2020-03-25 20:22:04 +01:00
Giorgio Calderone
c37d12aaa4
Renamed CheckGnuplotVersion -> gpversion; Added key= keyword
2020-03-24 23:12:59 +01:00
Giorgio Calderone
1b8006b710
Refactored driver(); changed syntax for named datasets
2020-03-23 17:50:28 +01:00
Giorgio Calderone
9a98fbe19c
Fixed tests
2020-03-23 00:08:50 +01:00
Giorgio Calderone
546cfef009
Handle label input
2020-03-22 18:42:17 +01:00
Giorgio Calderone
a4bb94bfde
Refactored contourlines function; Dropped unused dependencies
2020-03-22 18:17:19 +01:00
Giorgio Calderone
da52fd03d2
Avoid print warning for empty datasets; Added corresponding test
2020-03-19 20:03:45 +01:00
Giorgio Calderone
4830e0c028
Fix Travis test (use "unknown" terminal)
2020-03-19 19:49:44 +01:00
Giorgio Calderone
ad1660f623
Trying to fix Travis test
2020-03-19 19:44:54 +01:00
Giorgio Calderone
c5fddd9107
Trying to fix Travis test
2020-03-19 19:35:32 +01:00
Giorgio Calderone
f8d2e4c0be
exec now tests for errors in Gnuplot process
2020-03-18 16:02:54 +01:00
Giorgio Calderone
51b4771ef3
Added tests for palette() and linestyles()
2020-03-18 15:13:07 +01:00
Giorgio Calderone
1bd7875d73
Bugfix; Added palette facilities
2020-03-17 15:00:41 +01:00
Giorgio Calderone
e7f500b5a0
Minor changes
2020-03-16 20:28:44 +01:00
Giorgio Calderone
a655e5af6c
Fixed tests
2020-03-16 19:56:54 +01:00
Giorgio Calderone
8abedcc163
Minor changes
2020-03-16 19:48:47 +01:00
Giorgio Calderone
3283f54741
First attempt
2020-03-16 19:26:14 +01:00
Giorgio Calderone
decfef901f
Added "dataset" function
2020-03-16 14:30:08 +01:00
Giorgio Calderone
e36563990a
Updated
2019-01-17 16:28:27 +01:00
Giorgio Calderone
a1f9f3e0ca
Minor changes. Added save() method
2019-01-14 15:27:55 +01:00
Giorgio Calderone
a4e2f251c2
Documentation updated
2018-10-20 20:09:05 +02:00
Giorgio Calderone
2965b9e240
Updated
2018-10-20 19:21:24 +02:00
Giorgio Calderone
e4372ef1f9
Code refactoring and API modified
2018-10-20 18:43:32 +02:00
Giorgio Calderone
905e3d226d
Updated for Julia v0.7
2018-08-15 18:52:09 +02:00
Giorgio Calderone
a536004b0d
Code re-factored. Breaking changes: thw macros are now named @gp and @gsp
2018-04-19 18:21:48 +02:00
Giorgio Calderone
106f8470ba
Added :splot as possible input to gpDriver
2018-04-18 00:01:00 +02:00
Giorgio Calderone
f1ed19c2ea
Minor bugfix. Updated documentation
2018-03-05 12:42:22 +01:00