Change the axis label

Geegee
Thu, 17 Jul 2025 15:32:17 +0000
New to Julia

I have code like this and I get a figure as expected

dfrm_amp = DataFrame(px_x= x, px_y = y, z=amplitude, param_id="amplitude")
dfrm_freq = DataFrame(px_x= x, px_y = y, z=driving_freqs, param_id="rabi_freq")
dfrm_offset = DataFrame(px_x= x, px_y = y, z=offset, param_id="offset")
dfrm = vcat(dfrm_amp, dfrm_freq, dfrm_offset)
specs = mapping(x, y, im_list) * visual(Surface)
specs = data(dfrm) * mapping(:px_x, :px_y, :z, layout=:param_id) * visual(Surface)
figure_grid = draw(specs, axis=(type=Axis3, zlabel="Amplitude (counts)"))

I just would like each of the different “param_id” entries to have different “zlabel”.
Maybe there is a general way in AoG to achieve this. If it is better I can also create a minimal example.

3 posts - 2 participants