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

BoundsError: attempt to access (1,0,true) at index [4] in the draw function #794

Open
cyocum opened this issue Jan 16, 2016 · 2 comments
Open

Comments

@cyocum
Copy link

cyocum commented Jan 16, 2016

I am attempting to output a PCA plot in Gadfly 0.4.1 using the following code:

 pca_plot = Gadfly.plot(x=pca.proj[:,1], y=pca.proj[:,2], label=vec(header), Geom.point, Geom.label, Theme(background_color=colorant"white", panel_opacity=0))
 draw(SVG("pca-v4.svg", 24cm, 12cm), pca_plot)

I get the following error:

ERROR: LoadError: BoundsError: attempt to access (1,0,true)
at index [4]
in plain_precision_heuristic at /home/cyocum/.julia/v0.5/Showoff/src/Showoff.jl:97
in showoff at /home/.../.julia/v0.5/Showoff/src/Showoff.jl:130
in identity_formatter at /home/.../.julia/v0.5/Gadfly/src/scale.jl:76
in render at /home/.../.julia/v0.5/Gadfly/src/guide.jl:585
in render_prepared at /home/.../.julia/v0.5/Gadfly/src/Gadfly.jl:815
in render at /home/.../.julia/v0.5/Gadfly/src/Gadfly.jl:742
in draw at /home/.../.julia/v0.5/Gadfly/src/Gadfly.jl:842
in include at ./boot.jl:262
in include_from_node1 at ./loading.jl:401
in process_options at ./client.jl:245
in _start at ./client.jl:301

I am using julia 0.5.0-dev version as 0.4.3 refuses to compile on Ubuntu.

@dioptre
Copy link

dioptre commented Jan 19, 2016

+1

@tkelman
Copy link
Contributor

tkelman commented Jan 19, 2016

This is actually an issue in Showoff.jl calling into unexported API's from base that were changed on master. Ref JuliaLang/julia#14723 and JuliaLang/julia#14623 (comment)

0.4.3 refuses to compile on Ubuntu.

You should address that first, julia master is unstable and you should expect packages to break. Release will be much more stable.

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

No branches or pull requests

3 participants