Updated for v1.2.0
This commit is contained in:
parent
96874bcdae
commit
703f0bf618
13
README.md
13
README.md
@ -3,8 +3,7 @@
|
|||||||
|
|
||||||
[](https://travis-ci.org/gcalderone/Gnuplot.jl)
|
[](https://travis-ci.org/gcalderone/Gnuplot.jl)
|
||||||
[](LICENSE.md)
|
[](LICENSE.md)
|
||||||
[](https://gcalderone.github.io/Gnuplot.jl/v1.1.0/)
|
[](https://gcalderone.github.io/Gnuplot.jl/v1.2.0/)
|
||||||
[](https://gcalderone.github.io/Gnuplot.jl/v1.2.0/)
|
|
||||||
|
|
||||||
|
|
||||||
**Gnuplot.jl** is a simple package able to send both data and commands from Julia to an underlying [gnuplot](http://gnuplot.sourceforge.net/) process. Its main purpose it to provide a fast and powerful data visualization framework, using an extremely concise Julia syntax.
|
**Gnuplot.jl** is a simple package able to send both data and commands from Julia to an underlying [gnuplot](http://gnuplot.sourceforge.net/) process. Its main purpose it to provide a fast and powerful data visualization framework, using an extremely concise Julia syntax.
|
||||||
@ -22,9 +21,9 @@ You may check the installed **Gnuplot.jl** version with:
|
|||||||
```julia
|
```julia
|
||||||
]st Gnuplot
|
]st Gnuplot
|
||||||
```
|
```
|
||||||
If the displayed version is not v1.1.0 you are probably having a dependency conflict. In this case try forcing installation of the latest version with:
|
If the displayed version is not v1.2.0 you are probably having a dependency conflict. In this case try forcing installation of the latest version with:
|
||||||
```julia
|
```julia
|
||||||
]add Gnuplot@1.1.0
|
]add Gnuplot@1.2.0
|
||||||
```
|
```
|
||||||
and check which package is causing the conflict.
|
and check which package is causing the conflict.
|
||||||
|
|
||||||
@ -38,14 +37,14 @@ test_terminal()
|
|||||||
|
|
||||||
|
|
||||||
## Quick start
|
## Quick start
|
||||||
The following examples are supposed to be self-explaining. See [documentation](https://gcalderone.github.io/Gnuplot.jl/v1.1.0/) for further informations.
|
The following examples are supposed to be self-explaining. See [documentation](https://gcalderone.github.io/Gnuplot.jl/v1.2.0/) for further informations.
|
||||||
|
|
||||||
### A simple parabola
|
### A simple parabola
|
||||||
```julia
|
```julia
|
||||||
x = 1.:20
|
x = 1.:20
|
||||||
@gp x x.^2 "with lines title 'Parabola'"
|
@gp x x.^2 "with lines title 'Parabola'"
|
||||||
save(term="pngcairo size 480,360", output="examples/ex1.png")
|
save(term="pngcairo size 480,360", output="examples/ex1.png")
|
||||||
save("parabola.gp") # => save a script file with both data and command to re-create the plot.
|
save("parabola.gp") # => save a script file with both data and command to re-create the plot.
|
||||||
```
|
```
|
||||||

|

|
||||||
|
|
||||||
@ -74,7 +73,7 @@ y = randn(10_000)
|
|||||||
h = hist(x, y, bs1=0.25, nbins2=20)
|
h = hist(x, y, bs1=0.25, nbins2=20)
|
||||||
@gp "set multiplot layout 1,2"
|
@gp "set multiplot layout 1,2"
|
||||||
@gp :- 1 key="outside top center box horizontal" "set size ratio -1" h
|
@gp :- 1 key="outside top center box horizontal" "set size ratio -1" h
|
||||||
clines = contourlines(h.bins1, h.bins2, h.counts, cntrparam="levels discrete 10, 30, 60, 90");
|
clines = contourlines(h, "levels discrete 10, 30, 60, 90");
|
||||||
for i in 1:length(clines)
|
for i in 1:length(clines)
|
||||||
@gp :- clines[i].data "w l t '$(clines[i].z)' lw $i lc rgb 'gray'" :-
|
@gp :- clines[i].data "w l t '$(clines[i].z)' lw $i lc rgb 'gray'" :-
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user