Plots.jl - Turn off axis and grid lines
I am trying to make a surface plot without the axis and grid lines. I found that I can turn off the grid with
grid = false but I can't find a way to remove the axis lines.
surface(x2d, y2d, z2d, fill_z = color_mat, fc = :haline, grid=false)
You can almost but not quite get rid of them with
ticks = false.
See also questions close to this topic
JuliaInXL And Mathematica Excel Link
Referring to : stackoverflow question
From what I've read I understand that JuliaInXL can only be used to create udf and not macros, is this true?
How we compare JuliaInXL to Mathematica Excel Link ?
Compare two buffers for equality
Is there a way to compare two buffers directly? For example having two identical files
file1-copy, i would like to do:
f1 = open(file1) f2 = open(file1-copy) if f1 == f2 println("Equal content") end
I know i can make strings of that and compare those:
if readstring(f1) == readstring(f2) println("Equal content") end
Including files in Julia: @everywhere include
I am trying to include a file with functions in another Julia file. I can do it with
However, when I do
I get an error (shortened):
ERROR: On worker 3: SystemError: opening file /Users/alex/Documents/Julia/Graphene_Adsorbant_Lattice/ImpurityChainLibrary.jl: No such file or directory ...
I am running
Julia Version 0.6.2
Commit d386e40c17 (2017-12-13 18:08 UTC)
OS: macOS (x86_64-apple-darwin14.5.0)
CPU: Intel(R) Core(TM) i7-6820HQ CPU @ 2.70GHz
BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
LLVM: libLLVM-3.9.1 (ORCJIT, skylake)
I use Atom.
Following the minimal example given below, I ran the code and it worked. Then, I created a second file in the same folder as dummy.jl and put in a single line
Then I launch Julia in Atom. I check nprocs() and get 1. When I do addprocs(3), the function call goes through and nprocs() shows 4. When I try to run the
@everywhere include("dummy.jl")line, I get the error that I described above.
What am I doing wrong?
Plotting in Julia -- Pyplots backend with Plots.jl
I'm trying to show a figure in a window like Matlab figures ot matplotlib figures in Python. I am using the Plots.jl package with the Pyplot backend.
I can save my plots as svg or png files, but i do not know ho to show them interactively using IJulia or Julia REPL.
Thank you for your time.
Issues on using Plots package in Julia
I'm trying to use Plots package in Julia but I get an error message I don't fully understand. Using a Jupyter notebook I followed the canonic way to install and use the package with:
Pkg.add("Plots") using Plots
But after then I got this error message:
INFO: Precompiling module Plots. WARNING: Module Compat with uuid 131681569370755 is missing from the cache. This may mean module Compat does not support precompilation but is imported by a module that does. ERROR: LoadError: Declaring __precompile__(false) is not allowed in files that are being precompiled. Stacktrace:  _require(::Symbol) at .\loading.jl:455  require(::Symbol) at .\loading.jl:405  include_from_node1(::String) at .\loading.jl:576  include(::String) at .\sysimg.jl:14  anonymous at .\<missing>:2 while loading C:\Users\Alex\.julia\v0.6\StaticArrays\src\StaticArrays.jl, in expression starting on line 17 ERROR: LoadError: Failed to precompile StaticArrays to C:\Users\Alex\.julia\lib\v0.6\StaticArrays.ji. Stacktrace:  compilecache(::String) at .\loading.jl:710  _require(::Symbol) at .\loading.jl:463  require(::Symbol) at .\loading.jl:405  include_from_node1(::String) at .\loading.jl:576  include(::String) at .\sysimg.jl:14  anonymous at .\<missing>:2 while loading C:\Users\Alex\.julia\v0.6\Plots\src\Plots.jl, in expression starting on line 7 Failed to precompile Plots to C:\Users\Alex\.julia\lib\v0.6\Plots.ji. Stacktrace:  compilecache(::String) at .\loading.jl:710  _require(::Symbol) at .\loading.jl:497  require(::Symbol) at .\loading.jl:405  include_string(::String, ::String) at .\loading.jl:522
Could somebody please help me to understand this error and what can I do to fix it? Any help will be much appreciated.
How to fill area between curves with Plots.jl?
Suppose I have a curve
y, and two other curves
lin the form of vectors. How to plot:
plot(y, lab="estimate") plot!(y-l, lab="lower bound") plot!(y+u, lab="upper bound")
That is, an asymmetric confidence interval? I know how to plot the symmetric case with the option
ribbonas explained here.