diff --git a/README.md b/README.md index faded51f..29fd83d2 100644 --- a/README.md +++ b/README.md @@ -20,4 +20,16 @@ Plots is a plotting API and toolset. My goals with the package are: Use the preprocessing pipeline in Plots to fully describe your visualization before it calls the backend code. This maintains modularity and allows for efficient separation of front end code, algorithms, and backend graphics. New graphical backends can be added with minimal effort. +```julia +using Plots +pyplot(reuse=true) + +@gif for i in linspace(0,2π,100) + X = Y = linspace(-5,5,40) + surface(X, Y, (x,y) -> sin(x+10sin(i))+cos(y)) +end +``` + +![waves](http://plots.readthedocs.io/en/latest/examples/img/waves.gif) + View the [full documentation](http://plots.readthedocs.org). diff --git a/test/install_wkhtmltoimage.sh b/test/install_wkhtmltoimage.sh index d95fe1cc..0613cd64 100755 --- a/test/install_wkhtmltoimage.sh +++ b/test/install_wkhtmltoimage.sh @@ -5,5 +5,8 @@ sudo apt-get -qq update sudo apt-get install -y wkhtmltopdf wkhtmltopdf -V wkhtmltoimage -V -echo 'exec xvfb-run -a -s "-screen 0 640x480x16" wkhtmltoimage "$@"' | sudo tee /usr/local/bin/wkhtmltoimage.sh >/dev/null -sudo chmod a+x /usr/local/bin/wkhtmltoimage.sh +# echo 'exec xvfb-run -a -s "-screen 0 640x480x16" wkhtmltoimage "$@"' | sudo tee /usr/local/bin/wkhtmltoimage.sh >/dev/null +# sudo chmod a+x /usr/local/bin/wkhtmltoimage.sh +export DISPLAY=:99.0 +sh -e /etc/init.d/xvfb start +sleep 3 # give xvfb some time to start