Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plots example from README is broken. coords method conflict #86

Closed
jenkspt opened this issue Jan 13, 2022 · 1 comment · Fixed by #88
Closed

Plots example from README is broken. coords method conflict #86

jenkspt opened this issue Jan 13, 2022 · 1 comment · Fixed by #88

Comments

@jenkspt
Copy link

jenkspt commented Jan 13, 2022

The plotting example from the README.md appears to be broken: https://github.com/evetion/GeoArrays.jl#plotting

julia> using Plots
julia> fn = download("https://github.com/yeesian/ArchGDALDatasets/blob/master/pyrasterio/RGB.byte.tif?raw=true")
julia> ga = GeoArrays.read(fn)
julia> plot(ga)
ERROR: UndefVarError: coords not defined
Stacktrace:
 [1] macro expansion
   @ ~/.julia/packages/GeoArrays/oqARi/src/plot.jl:10 [inlined]
 [2] apply_recipe(plotattributes::AbstractDict{Symbol, Any}, ga::GeoArray)
   @ GeoArrays ~/.julia/packages/RecipesBase/qpxEX/src/RecipesBase.jl:289
 [3] _process_userrecipes!(plt::Any, plotattributes::Any, args::Any)
   @ RecipesPipeline ~/.julia/packages/RecipesPipeline/7ijBv/src/user_recipe.jl:36
 [4] recipe_pipeline!(plt::Any, plotattributes::Any, args::Any)
   @ RecipesPipeline ~/.julia/packages/RecipesPipeline/7ijBv/src/RecipesPipeline.jl:70
 [5] _plot!(plt::Plots.Plot, plotattributes::Any, args::Any)
   @ Plots ~/.julia/packages/Plots/9C6z9/src/plot.jl:208
 [6] plot(args::Any; kw::Base.Pairs{Symbol, V, Tuple{Vararg{Symbol, N}}, NamedTuple{names, T}} where {V, N, names, T<:Tuple{Vararg{Any, N}}})
   @ Plots ~/.julia/packages/Plots/9C6z9/src/plot.jl:91
 [7] top-level scope

It appears that there may be a conflict with the coords method

julia> coords
WARNING: both Plots and GeoArrays export "coords"; uses of it in module Main must be qualified
ERROR: UndefVarError: coords not defined

Julia version: 1.7.1
GeoArrays version: 0.6.0
Plots version: 1.25.6

@evetion
Copy link
Owner

evetion commented Jan 13, 2022

Thanks for reporting! I've made PR #88 that should fix this.

@visr visr closed this as completed in #88 Jan 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants