# Plot 2D graph ,color of scatter points associate with value

**URL:** https://discourse.julialang.org/t/plot-2d-graph-color-of-scatter-points-associate-with-value/44148
**Category:** Visualization
**Tags:** question, package, plotting
**Created:** [August 2, 2020, 7:17pm UTC](https://discourse.julialang.org/t/plot-2d-graph-color-of-scatter-points-associate-with-value/44148 "2020-08-02T19:17:15Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Dyranne](https://avatars.discourse-cdn.com/v4/letter/d/a587f6/32.png) [@Dyranne](https://discourse.julialang.org/u/Dyranne)
#### Post date: [August 2, 2020, 7:17pm UTC](https://discourse.julialang.org/t/plot-2d-graph-color-of-scatter-points-associate-with-value/44148/1 "2020-08-02T19:17:15Z")

</div>

The first question is using ORCA

```julia
julia> using ORCA
[Info: Precompiling ORCA [47be7bcc-f1a6-5447-8b36-7eeeff7534fd]
ERROR: LoadError: ORCA not installed properly. Please call `Pkg.build("ORCA")`
Stacktrace:
 [1] error(::String) at .\error.jl:33
 [2] top-level scope at C:\Users\duyanran\.juliapro\JuliaPro_v1.3.1-2\packages\ORCA\fiEmb\src\ORCA.jl:10
 [3] include at .\boot.jl:328 [inlined]
 [4] include_relative(::Module, ::String) at .\loading.jl:1105
 [5] include(::Module, ::String) at .\Base.jl:31
 [6] top-level scope at none:2
 [7] eval at .\boot.jl:330 [inlined]
 [8] eval(::Expr) at .\client.jl:425
 [9] top-level scope at .\none:3
in expression starting at C:\Users\duyanran\.juliapro\JuliaPro_v1.3.1-2\packages\ORCA\fiEmb\src\ORCA.jl:7
ERROR: Failed to precompile ORCA [47be7bcc-f1a6-5447-8b36-7eeeff7534fd] to C:\Users\duyanran\.juliapro\JuliaPro_v1.3.1-2\compiled\v1.3\ORCA\jvX7k_TsfWi.ji.
Stacktrace:
 [1] compilecache(::Base.PkgId, ::String) at .\loading.jl:1283
 [2] _require(::Base.PkgId) at .\loading.jl:1024
 [3] require(::Base.PkgId) at .\loading.jl:922
 [4] require(::Module, ::Symbol) at .\loading.jl:917

(@v1.3) pkg> build ORCA
   Building Conda → `C:\Users\duyanran\.juliapro\JuliaPro_v1.3.1-2\packages\Conda\3rPhK\deps\build.log`
┌ Error: Error building `Conda`: 
│ ERROR: LoadError: SystemError (with C:\Users\dyr): mkdir: Permission denied
│ Stacktrace:
│ [1] #systemerror#44(::String, ::typeof(systemerror), ::Symbol, ::Bool) at .\error.jl:134
│ [2] #systemerror at .\none:0 [inlined]
│ [3] #mkdir#7(::UInt16, ::typeof(mkdir), ::String) at .\file.jl:175
│ [4] #mkdir at .\none:0 [inlined]
│ [5] #mkpath#8(::UInt16, ::typeof(mkpath), ::String) at .\file.jl:220
│ [6] (::Base.Filesystem.var"#kw##mkpath")(::NamedTuple{(:mode,),Tuple{UInt16}}, ::typeof(mkpath), 
::String) at .\none:0
│ [7] #mkpath#8(::UInt16, ::typeof(mkpath), ::String) at .\file.jl:218
│ [8] (::Base.Filesystem.var"#kw##mkpath")(::NamedTuple{(:mode,),Tuple{UInt16}}, ::typeof(mkpath), 
::String) at .\none:0
│ [9] #mkpath#8(::UInt16, ::typeof(mkpath), ::String) at .\file.jl:218
│ [10] (::Base.Filesystem.var"#kw##mkpath")(::NamedTuple{(:mode,),Tuple{UInt16}}, ::typeof(mkpath), ::String) at .\none:0
│ [11] #mkpath#8(::UInt16, ::typeof(mkpath), ::String) at .\file.jl:218
│ [12] (::Base.Filesystem.var"#kw##mkpath")(::NamedTuple{(:mode,),Tuple{UInt16}}, ::typeof(mkpath), ::String) at .\none:0
│ [13] #mkpath#8(::UInt16, ::typeof(mkpath), ::String) at .\file.jl:218
│ [14] mkpath(::String) at .\file.jl:215
│ [15] top-level scope at C:\Users\duyanran\.juliapro\JuliaPro_v1.3.1-2\packages\Conda\3rPhK\deps\build.jl:39
│ [16] include at .\boot.jl:328 [inlined]
│ [17] include_relative(::Module, ::String) at .\loading.jl:1105
│ [18] include(::Module, ::String) at .\Base.jl:31
│ [19] include(::String) at .\client.jl:424
│ [20] top-level scope at none:5
│ in expression starting at C:\Users\duyanran\.juliapro\JuliaPro_v1.3.1-2\packages\Conda\3rPhK\deps\build.jl:39
└ @ Pkg.Operations C:\Users\julia\AppData\Local\Julia-1.3.1\share\julia\stdlib\v1.3\Pkg\src\Operations.jl:892
   Building ORCA ─→ `C:\Users\duyanran\.juliapro\JuliaPro_v1.3.1-2\packages\ORCA\fiEmb\deps\build.log`
┌ Error: Error building `ORCA`: 
│ ERROR: LoadError: ArgumentError: Path to conda environment is not valid: C:\Users\dyr\.juliapro\JuliaPro_v1.3.1-1\conda\3
│ Stacktrace:
│ [1] prefix(::String) at C:\Users\duyanran\.juliapro\JuliaPro_v1.3.1-2\packages\Conda\3rPhK\src\Conda.jl:41
│ [2] top-level scope at C:\Users\duyanran\.juliapro\JuliaPro_v1.3.1-2\packages\Conda\3rPhK\src\Conda.jl:46
│ [3] include at .\boot.jl:328 [inlined]
│ [4] include_relative(::Module, ::String) at .\loading.jl:1105
│ [5] include(::Module, ::String) at .\Base.jl:31
│ [6] top-level scope at none:2
│ [7] eval at .\boot.jl:330 [inlined]
│ [8] eval(::Expr) at .\client.jl:425
│ [9] top-level scope at .\none:3
│ in expression starting at C:\Users\duyanran\.juliapro\JuliaPro_v1.3.1-2\packages\Conda\3rPhK\src\Conda.jl:46
│ ERROR: LoadError: Failed to precompile Conda [8f4d0f93-b110-5947-807f-2305c1781a2d] to C:\Users\duyanran\.juliapro\JuliaPro_v1.3.1-2\compiled\v1.3\Conda\WZE3U_hqXuR.ji.
│ Stacktrace:
│ [1] error(::String) at .\error.jl:33
│ [2] compilecache(::Base.PkgId, ::String) at .\loading.jl:1283
│ [3] _require(::Base.PkgId) at .\loading.jl:1024
│ [4] require(::Base.PkgId) at .\loading.jl:922
│ [5] require(::Module, ::Symbol) at .\loading.jl:917
│ [6] include at .\boot.jl:328 [inlined]
│ [7] include_relative(::Module, ::String) at .\loading.jl:1105
│ [8] include(::Module, ::String) at .\Base.jl:31
│ [9] include(::String) at .\client.jl:424
│ [10] top-level scope at none:5
│ in expression starting at C:\Users\duyanran\.juliapro\JuliaPro_v1.3.1-2\packages\ORCA\fiEmb\deps\build.jl:1
└ @ Pkg.Operations C:\Users\julia\AppData\Local\Julia-1.3.1\share\julia\stdlib\v1.3\Pkg\src\Operations.jl:892

```

The second question is that i wish to plot the relationship of 3 arrays with 10000 elements each.  
but the relationship of array\_x and array\_y with array\_z can not be summarized as a specific function like z=f(x,y). but they do have some sort of relationship. what i want to plot is a 2d picture, for eachscatter point (x,y) have a scatter value z, and i dont need to know how much z is ,i just want to know how big it is through the depth of its plotted color, light or dark or more layer.  
i tried 3d plot like surface, but it’s not clear enough for me to analyze as follw .  
 ![611c](https://global.discourse-cdn.com/julialang/original/3X/6/7/6728e935a9b68ed820b65c0c26534a382595a719.png)

does any one have better idea?  
save me please  
thanks a lot !!!
