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

distinguish points and intervals in plots #620

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rafaqz
Copy link
Owner

@rafaqz rafaqz commented Feb 11, 2024

@lazarusA this works when you use plot(A) with one Intervals dimensions, but I cant get it to work when there are two intervals and the pixels should be squares like in heatmap.

Maybe you have an idea.

M.plot(A3intervals1; z=:C)
# Broken from here
A3intervals2 = rand(X(10:1:15; sampling=Intervals(Start())), Y(1:3), Z(10:15; sampling=Intervals(Start())))
M.plot(A3intervals2)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what's the expected output? It looks like A3intervals1 is a combination of Intervals and points, hence the recipe should be a combination of scatters and linesegments, which I couldn't find 😄 ? Does this means that for Intervals, Intervals, Intervals the output should be a voxel plot, namely voxel(matrix)[https://github.com/MakieOrg/Makie.jl/pull/3527] or meshscatter(3dPoints, color=matrix[:])? a cube of mini-cubes?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh... it's also slices of heatmaps? that would be more cumbersome. It will require a smart way of combining

heatmap(x,y,z; transformation = (:xy, value)
heatmap(x,y,z; transformation = (:xz,value)
heatmap(x,y,z; transformation = (:yz, :value)

ok...please clarify the expected output.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah the idea is two intervals combine to make a square.

So like slices of heat maps, or just all the polygons that would make the heatmap. Not sure how to do it best

@rafaqz
Copy link
Owner Author

rafaqz commented Feb 16, 2024

@lazarusA I rebased this against main youl need to scrap the branch you have I guess

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants