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

Convenience function for 3D barplots #624

Open
Datseris opened this issue Jun 10, 2020 · 4 comments
Open

Convenience function for 3D barplots #624

Datseris opened this issue Jun 10, 2020 · 4 comments
Labels
feature request Makie Backend independent issues (Makie core) plot Related to plot object

Comments

@Datseris
Copy link
Contributor

Would be nice to have a syntax like:

bar3D(x, y, z, dx, dy, dz, color = c)

where all above entries could be vectors.

It would be a simpler wrapper of the following:

meshscatter(vec(Point3f0.(rand(100), rand(100), 0.0)),
markersize=Vec3f0.(0.1, 0.1, rand(100)), marker=Rect3D(Vec3f0(0), Vec3f0(1)),
limits=Rect3D(Vec3f0(0), Vec3f0(1)))

which might be a bit too verbose for the highest level access (and a beginner may not really understand the markersize, marker, limits reason).

@Moelf
Copy link
Contributor

Moelf commented Jul 26, 2022

@asinghvi17
Copy link
Member

asinghvi17 commented Jul 26, 2022

I mean you could put that into a convert for meshscatter...something like:

convert_arguments(::Type{MeshScatter}, x::{<: Vector{<: Real}}, y::{<: Vector{<: Real}}, z::{<: Vector{<: Real}}, dx::{<: Vector{<: Real}}, dy::{<: Vector{<: Real}}, dz::{<: Vector{<: Real}}) = PlotSpec{MeshScatter}(Point3f.(x, y, z); markersize = Vec3f.(dx, dy, dz))

or just as an extension of the barplot recipe to 3d for ease of access.

@Moelf
Copy link
Contributor

Moelf commented Jul 26, 2022

I just realized for me the road blocker is:

  1. CairoMakie 3D is completely broken
  2. GLMakie doesn't work on Linux with AMD or Intel
  3. WebGL is broken with Axis3: Barplot doesn't use bar height for limits #2182

@SimonDanisch
Copy link
Member

I think:

  1. CairoMakie draws Meshscatter markers differently (needs fixing)
  2. Boy I wish we could just fix that... I did think though, that most people got it running with this hack: Julia loading Julia's libstdc++ instead of system, causes inscrutable errors JuliaGL/GLFW.jl#198 (comment) ?
  3. This actually seems to be a specific problem with Meshscatter + Axis3 (not WGLMakie specific)...

I guess, not a lot of people have used Meshscatter productively in the last years😅

@ffreyer ffreyer added enhancement Feature requests and enhancements Makie Backend independent issues (Makie core) plot Related to plot object feature request and removed enhancement Feature requests and enhancements labels Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Makie Backend independent issues (Makie core) plot Related to plot object
Projects
None yet
Development

No branches or pull requests

5 participants