From 02518bd3c632a04f85e74dc78d92e5a10a60dc0d Mon Sep 17 00:00:00 2001 From: Huckleberry Febbo Date: Thu, 27 Apr 2017 19:34:22 -0400 Subject: [PATCH 1/3] updated warning message for imageMagick to include the case that imagemagick is not installed on the machine --- src/animation.jl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/animation.jl b/src/animation.jl index ee7428df..59741f79 100644 --- a/src/animation.jl +++ b/src/animation.jl @@ -80,7 +80,9 @@ function buildanimation(animdir::AbstractString, fn::AbstractString; catch err warn("""Tried to create gif using convert (ImageMagick), but got error: $err - ImageMagick can be installed by executing `Pkg.add("ImageMagick")` + ImageMagick needs to be installed in julia and on your machine: + 1) in julia>> `Pkg.add("ImageMagick")` + 2) on your machine (for Ubuntu): $$ sudo apt install imagemagick Will try ffmpeg, but it's lower quality...)""") # low quality From 1d569a08ee69acf87832b8b354642285c67d88e0 Mon Sep 17 00:00:00 2001 From: Huckleberry Febbo Date: Thu, 27 Apr 2017 19:43:58 -0400 Subject: [PATCH 2/3] got ride of 12036 --- src/animation.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/animation.jl b/src/animation.jl index 59741f79..7cb1b8e4 100644 --- a/src/animation.jl +++ b/src/animation.jl @@ -82,7 +82,7 @@ function buildanimation(animdir::AbstractString, fn::AbstractString; warn("""Tried to create gif using convert (ImageMagick), but got error: $err ImageMagick needs to be installed in julia and on your machine: 1) in julia>> `Pkg.add("ImageMagick")` - 2) on your machine (for Ubuntu): $$ sudo apt install imagemagick + 2) on your machine (in terminal run): sudo apt install imagemagick Will try ffmpeg, but it's lower quality...)""") # low quality From 8368f34d84729ee22381b86b05a9a059f6aadfcb Mon Sep 17 00:00:00 2001 From: Huckleberry Febbo Date: Thu, 27 Apr 2017 20:03:16 -0400 Subject: [PATCH 3/3] got ride of old warning --- src/backends/pyplot.jl | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/backends/pyplot.jl b/src/backends/pyplot.jl index cdc44fb1..3adfa8a5 100644 --- a/src/backends/pyplot.jl +++ b/src/backends/pyplot.jl @@ -85,17 +85,7 @@ function _initialize_backend(::PyPlotBackend) const pycollections = PyPlot.pywrap(PyPlot.pyimport("matplotlib.collections")) const pyart3d = PyPlot.pywrap(PyPlot.pyimport("mpl_toolkits.mplot3d.art3d")) end - if is_linux() - @eval begin - # avoid Conda update that causes Segfault with qt >=4.8.6 on Ubuntu https://github.com/JuliaPy/PyPlot.jl/issues/234 - import Conda - kw = Conda._installed_packages_dict() - if (!haskey(kw,"qt") || (qt_version=get(kw,"qt",0)[1]!=v"4.8.5")) - print("\n If the code has a Segmentation fault error switch to qt v4.8.5 by pasting the following code into julia: \n \n") - print(add_backend_string(PyPlotBackend())) - end - end - end + # we don't want every command to update the figure PyPlot.ioff() end