diff --git a/README.md b/README.md index a976d97..3bd4258 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,7 @@ [![Build Status](https://travis-ci.org/gcalderone/Gnuplot.jl.svg?branch=master)](https://travis-ci.org/gcalderone/Gnuplot.jl) [![License](http://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat)](LICENSE.md) -[![DocumentationStatus](https://img.shields.io/badge/docs-stable-blue.svg?style=flat)](https://gcalderone.github.io/Gnuplot.jl/v1.1.0/) -[![DocumentationStatus](https://img.shields.io/badge/docs-latest-blue.svg?style=flat)](https://gcalderone.github.io/Gnuplot.jl/v1.2.0/) +[![DocumentationStatus](https://img.shields.io/badge/docs-stable-blue.svg?style=flat)](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. @@ -22,9 +21,9 @@ You may check the installed **Gnuplot.jl** version with: ```julia ]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 -]add Gnuplot@1.1.0 +]add Gnuplot@1.2.0 ``` and check which package is causing the conflict. @@ -38,14 +37,14 @@ test_terminal() ## 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 ```julia x = 1.:20 @gp x x.^2 "with lines title 'Parabola'" 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. ``` ![ex1.png](examples/ex1.png) @@ -74,7 +73,7 @@ y = randn(10_000) h = hist(x, y, bs1=0.25, nbins2=20) @gp "set multiplot layout 1,2" @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) @gp :- clines[i].data "w l t '$(clines[i].z)' lw $i lc rgb 'gray'" :- end