Anshul Singhvi

Results 1166 comments of Anshul Singhvi

```julia using GLMakie, Colors dd_colors = [colorant"#ff875f", colorant"#0087d7", colorant"#5fd7ff", colorant"#ff5f87", colorant"#b2b2b2"] voxels(rand(UInt8.(1:5), 5, 5, 5); color = Colors.alphacolor.(dd_colors, 0.3), gap = 0.3, axis = (; type = LScene, show_axis=false)) ```...

You can control transparency per color but not per voxel. There's a limit of 256 colors though so you could have multiple colors with the same RGB but different A.

LOL - I got Julia to segfault ``` julia> hasdim.(dims(dm), XDim) [66007] signal 4: Illegal instruction: 4 in expression starting at REPL[80]:1 ntuple at ./ntuple.jl:49 [inlined] copy at ./broadcast.jl:1102 [inlined]...

Ah yeah, I didn't actually read the error message :D

You can create a TeXDocument which is just a regular latex document (though not multi file). So it can render arbitrary latex including packages. Just put the entire document as...

fyi, this is for https://github.com/rafaqz/Rasters.jl/issues/945 - I am doing some sketchy stuff there which would be made way easier if we had this!

I ended up using that! But it still feels pretty ugly.

Still a problem ``` ERROR: MethodError: convert_arguments(::NoConversion, ::DimMatrix{Float64, Tuple{X{DimensionalData.Dimensions.Lookups.Sampled{Int64, UnitRange{Int64}, DimensionalData.Dimensions.Lookups.ForwardOrdered, DimensionalData.Dimensions.Lookups.Regular{Int64}, DimensionalData.Dimensions.Lookups.Points, DimensionalData.Dimensions.Lookups.NoMetadata}}, Y{DimensionalData.Dimensions.Lookups.Sampled{Int64, UnitRange{Int64}, DimensionalData.Dimensions.Lookups.ForwardOrdered, DimensionalData.Dimensions.Lookups.Regular{Int64}, DimensionalData.Dimensions.Lookups.Points, DimensionalData.Dimensions.Lookups.NoMetadata}}}, Tuple{}, Matrix{Float64}, DimensionalData.NoName, DimensionalData.Dimensions.Lookups.NoMetadata}) is ambiguous. Candidates: convert_arguments(::NoConversion, args...; kw...)...