-
-
Notifications
You must be signed in to change notification settings - Fork 291
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
option to flip heatmap #46
Comments
The Plots syntax is yflip = true |
I find that less clear - you have to know what the default is to understand what |
It's also a lot more general - it's not restricted to heatmaps, which is just another seriestype for That's the key point of Plots and I believe a central component of its success: generality. (That said it would be easy to have the |
Yeah, if the convention is that the origin is in the lower-left for everything than I can see how |
Yes 👍 |
I'm planning to have each visual be accompanied by a rich transformation attribute - which will support padding, placement, flipping and maybe even arbitrary transformation functions, if I figure opengl transpilation out fast enough. |
That sounds awesome. |
|
Wait so how do we actually flip the y-axis for a heatmap in Makie? |
ax.yreversed = true |
But what if I'm not using an
This code produces the heatmap, just not with the y-axis flipped. |
You would have to do |
It's |
currently
heatmap
puts cell (1,1) in the top-left corner. This is often what you want (like when visualizing an image), but other times you want it on the bottom-left (e.g. in an audio spectrogram).for reference PyPlot's
imshow
function takes theorigin="upper"
ororigin="lower"
options.The text was updated successfully, but these errors were encountered: