Comments (13)
The Plots syntax is yflip = true
from makie.jl.
I find that less clear - you have to know what the default is to understand what yflip
will do
from makie.jl.
It's also a lot more general - it's not restricted to heatmaps, which is just another seriestype for plot
, rather than some specific plotting function with bespoke arguments to learn. The y axis has the lowest value in the bottom on all plots, so there's nothing to remember. If you want the y axis to have the lowest value on top, you use yflip = true. It's also not restricted to the y axis, you can xflip and zflip as well (they of course also by default have the lowest values at the origin).
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 flip
keywords accept :origin_top
and :origin_bottom
arguments as well for those who'd like that - accepting both Bool
and Symbol
is a classic strategy in Plots for clarity)
from makie.jl.
Yeah, if the convention is that the origin is in the lower-left for everything than I can see how yflip
is good and consistent. In that case the default for heatmap
should be flipped from what it is now (the origin is currently in the top-left), and `yflip=true would flip it back, right?
from makie.jl.
Yes 👍
from makie.jl.
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.
This will get implemented for all plotting types and it will be possible to inherit those from the parent scene (so that you can transform the whole scene).
from makie.jl.
That sounds awesome.
from makie.jl.
scale!
should do this.
from makie.jl.
Wait so how do we actually flip the y-axis for a heatmap in Makie?
from makie.jl.
ax.yreversed = true
from makie.jl.
ax.yreversed = true
But what if I'm not using an ax
atttribute, i.e. I'm just doing something like
CairoMakie.heatmap(mat, yflip=true)
This code produces the heatmap, just not with the y-axis flipped.
from makie.jl.
You would have to do CairoMakie.heatmap(mat, axis = (yflip=true,))
.
from makie.jl.
It's yreversed
if I'm not wrong
from makie.jl.
Related Issues (20)
- Lines in WGLMakie are not inspectable HOT 4
- Streamplot 3D seems to be broken HOT 8
- some `Makie.jl/test/...` files are not ran
- `convert_single_argument` isn't sufficient for vector types HOT 1
- `GLMakie` stress test failure
- DataInspector indicator box does not rotate with `meshscatter` objects HOT 1
- WGLMakie does not rotate `meshscatter` objects HOT 1
- Recipes broken on 0.20.x HOT 1
- `contourf!()` gives `StackOverflowError` on `Array{Union{Float64,Missing}}` HOT 1
- WGLMakie `DataInspector` is missing some font characters HOT 1
- WGLMakie error in window event callback
- CairoMakie `display` mutates package directory HOT 2
- GLMakie precompilation warning in Julia 1.10
- Scatter! does not render a section of the screen during animation HOT 1
- DataInspector still shows transformed coordinated for log scale, hline HOT 1
- Overlay multiple contours on a single plot HOT 1
- Provide a method to plot a sample (or calibration) arrow
- Legend not working when using custom colorrange
- `rainclouds` no longer displays category labels on x-axis
- WGLMakie now throws an error if no screen available HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from makie.jl.