You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to produce a datashader plot, if the xlims and ylims are defined prior to plotting, the function does not returns a satisfactory results.
The two picture below have been produced with a custom color palette which is not included in the example below. The results of the example below will therefore be slightly different from the pictures, but the issue is independent from the color palette, I checked.
The image above represents the results if the xlims! and ylims! function are called after the first datashader! call.
The image above represents the results if the xlims! and ylims! function are called before the first datashader! call.
Working example
using GLMakie
θ::Vector{Float64} = rand(Float64, 1000000) .* 360
F::Vector{Float64} = rand(Float64, 1000000) .* 70 .+ 50
points::Vector{Point{2,Float64}} = []
for i = 1:lastindex(F)
push!(points, Point{2,Float64}((θ[i], F[i]),))
end
tit = L"$LaTeX$ Title"
xlab = L"Angle in $[^o]$"
ylab = L"Value $V$ in $[unit]$"
fig = Figure(size=(1900, 1080))
ax = Axis(fig[1, 1];
title=tit,
xlabel=xlab,
ylabel=ylab,
xminorticks=IntervalsBetween(10),
yminorticks=IntervalsBetween(10)
)
datashader!(
ax,
points;
async=false
)
# If the following two commands are placed before the datashader!() function call, the results will not be satisfactory
xlims!(ax, (0, 360))
ylims!(ax, (0, 200))
wait(display(fig))
fig1 = Figure(size=(1900, 1080))
ax = Axis(fig1[1, 1];
title=tit,
xlabel=xlab,
ylabel=ylab,
xminorticks=IntervalsBetween(10),
yminorticks=IntervalsBetween(10)
)
# If the following two commands are placed before the datashader!() function call, the results will not be satisfactory
xlims!(ax, (0, 360))
ylims!(ax, (0, 200))
datashader!(
ax,
points;
async=false
)
wait(display(fig1))
Edit: Modified example to include both working and not working results.
The text was updated successfully, but these errors were encountered:
]st -m Makie
)]activate --temp; add Makie
)] What platform + GPU are you on?
When trying to produce a datashader plot, if the xlims and ylims are defined prior to plotting, the function does not returns a satisfactory results.
The two picture below have been produced with a custom color palette which is not included in the example below. The results of the example below will therefore be slightly different from the pictures, but the issue is independent from the color palette, I checked.
The image above represents the results if the
xlims!
andylims!
function are called after the firstdatashader!
call.The image above represents the results if the
xlims!
andylims!
function are called before the firstdatashader!
call.Working example
Edit: Modified example to include both working and not working results.
The text was updated successfully, but these errors were encountered: