Hi!
A design pattern very common when plotting maps is to use “zebra style” in the axes like this:
Is it possible to create this type of axes in Makie?
Hi!
A design pattern very common when plotting maps is to use “zebra style” in the axes like this:
Is it possible to create this type of axes in Makie?
Is there any special advantage of using such axes? You can simply use ticks.
I am not sure, but people who work with maps often ask me to plot the information using this kind of pattern.
The answer to “can it technically” is of course yes, there will be some way to plot patterns like that on the edge of an Axis
. But it sounds like this is something that GeoMakie should ideally support as I’ve only ever seen it used with maps. @asinghvi17
Yes! I fully agree! This kind of axes are only used in maps.
I think the style might come from Generic Mapping Tools GitHub - GenericMappingTools/GMT.jl: Generic Mapping Tools Library Wrapper for Julia
Maybe it is worth considering if the Makie community can work with the GMT community and not just copy the styles.
CC @joa-quim
Actually this style is used in many different software (ArcGIS, IDL, etc).
Hmm, we could in theory, but it would be a bit of work. Note that the shaded regions fit in with the ticks, this is a nontrivial implementation…
Ok! Should I open an issue? If so, in which repository?
This style is quite common in maps and, from experience, was very useful for navigation planing from times of paper maps. Now is more a question of style, I guess. I would be glad to collaborate but this style in GMT is quite intrinsic and deeply connected to the PostScript library that GMT uses. Not sure how this could be used by others that do not use PS,
Probably GeoMakie? But this is also sort of a Makie issue.
@joa-quim would you happen to know how those spines are built? Does it assume you have borders that are a lat-long box? That would be very simple to do. But borders that are in some projected space would be more complicated…
Well, a disclaimer first. Most of the GMT was written by Paul Wessel, which very sadly passed away last year. I did many contributions but few on its mapping side.
My recall from debug sessions is that the fancy frame (that’s how GMT calls it) is made by drawing a thick black line and that white patches are overlapped to give it that pajama look. The length of the patch white lines are calculated using the map scale (that is how they mach the tick marks so well). All GMT maps/figures are done at a certain map-scale (or width in cm/inc that are internally converted to a map-scale). This works in both Cartesian or projected space. See for example this Antarctica example. Off course, projected coordinates are converted to linear paper units so all is in fact Cartesian.
EDIT:
C functions that do frame plotting