Skip to content

Commit fd0ae51

Browse files
add 0.22.2 blogpost (#22)
* add 0.22.2 blogpost * expand on some topics * small wording improvements --------- Co-authored-by: ffreyer <[email protected]>
1 parent 352c603 commit fd0ae51

16 files changed

+135
-0
lines changed

docs/run.jl

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
using LiveServer;
2+
cd(joinpath(@__DIR__, "build")) do
3+
LiveServer.serve()
4+
end
147 KB
Loading
Loading

src/blogposts/v0.22.2/images/img1.png

99.4 KB
Loading

src/blogposts/v0.22.2/images/img2.png

94.7 KB
Loading

src/blogposts/v0.22.2/images/img3.png

129 KB
Loading

src/blogposts/v0.22.2/images/img5.png

10.4 KB
Loading
91.6 KB
Loading
Loading
Loading
500 KB
Loading
60.8 KB
Loading
90.4 KB
Loading
7.85 KB
Loading

src/blogposts/v0.22.2/post.md

+122
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
# Makie v0.22.2
2+
3+
Makie 0.22.2 is finally here and introduces many fixes and improvements.
4+
5+
## [Cleanup Patterns/Hatching](https://github.com/MakieOrg/Makie.jl/pull/4715)
6+
7+
We've enhanced pattern support by adding tests and fixing various issues along the way.
8+
Patterns should now work more consistently across different plot types and backends. Additionally, we've improved line rendering for `LinePattern` and anchored patterns to plot coordinates for better visual quality.
9+
10+
If you're not yet familiar with patterns, you can now learn more about them, along with other texture-like color options in the [updated color documentation](https://docs.makie.org/dev/explanations/colors#Textures,-Patterns-and-MatCaps).
11+
12+
13+
![](./images/pattern.png)
14+
15+
## [Nudge Axis3 clip planes to avoid clipping at 0 margin](https://github.com/MakieOrg/Makie.jl/pull/4742)
16+
17+
When we updated `Axis3` to feature zooming and translation controls we also added clipping at the axis boundary. If a plot element sits right at the boundary, e.g. due to setting margins to 0, they would sometimes get clipped and sometimes not. To avoid this, we moved the clip planes slightly outside the axis. As noted below we also added the option to completely turn off clipping in a separate pull request.
18+
19+
| v0.22 | v0.22.2 |
20+
| --- | --- |
21+
| ![0.22.2](./images/img1.png) | ![0.22.2](./images/img2.png) |
22+
23+
24+
## [Added a tutorial on creating an inset plot](https://github.com/MakieOrg/Makie.jl/pull/4697)
25+
26+
Introduced a [tutorial](https://docs.makie.org/dev/tutorials/inset-plot-tutorial#Creating-an-Inset-Plot) explaining how to create inset plots. Mention the [zoom_lines](https://juliaaplavin.github.io/MakieExtraDocs.jl/notebooks/examples.html#3526c688-aea9-411b-a837-dc02ff81a7ee) function from [MakieExtras.jl](https://github.com/JuliaAPlavin/MakieExtra.jl) for connecting inset plots.
27+
28+
![](./images/inset.png)
29+
30+
## [Add documentation on mesh normal generation](https://github.com/MakieOrg/Makie.jl/pull/4787)
31+
32+
[Documented](https://docs.makie.org/dev/reference/plots/mesh#Simple-mesh-plots) how vertex order affects normal generation in mesh plots, providing clarity on how different vertex arrangements can impact plot appearance.
33+
34+
![](./images/face-normals.png)
35+
36+
## [Cleanup volume](https://github.com/MakieOrg/Makie.jl/pull/4726)
37+
38+
We addressed discrepancies in volume plot algorithms between GLMakie and WGLMakie and added more detailed documentation and tests for volume rendering. We fixed an issue with `:mip` truncating values at `0`, fixed `RGBA` algorithms not accepting `RGBA` data and connected the `absorption` keyword to `:absorptionrgba` and `:indexedabsorption`.
39+
![](./images/volume1.png)
40+
![](./images/volume2.png)
41+
42+
## [Improve nan handling in surface plots](https://github.com/MakieOrg/Makie.jl/pull/4735)
43+
44+
We improved handling of NaN values in surface plots, ensuring consistency across different backends and updated reference images to reflect these changes. Specifically we are now treating NaNs in positions as invalid data, resulting in the relevant vertices being cut instead of defaulting to 0.
45+
46+
| v0.22 | v0.22.2 |
47+
| --- | --- |
48+
| ![v0.22](./images/nan-surf-before.png) | ![v0.22.2](./images/nan-surf-after.png) |
49+
50+
## [DPI metadata for png](https://github.com/MakieOrg/Makie.jl/pull/4812)
51+
52+
Added DPI metadata to PNG files, allowing external applications to interpret and display images at the correct size specified by their px_per_unit setting.
53+
54+
![Image with DPI metadata](./images/img3.png)
55+
56+
## Voxel improvements
57+
58+
In [#4758](https://github.com/MakieOrg/Makie.jl/pull/4758) we changed how textures are handled by `voxels`. They now rely on `uv_transform` instead of `uvmap` which gives you further control about texture coordinates. For example, it allows you to rotate the texture. The texture coordinates generated for the different voxel sides have changed to be more consistent with expectation, see [the texture mapping documentation](https://docs.makie.org/stable/reference/plots/voxels#Texture-maps). We also adjusted texture coordinates to scale with `gap` so that voxels remain fully covered by the texture they are assigned.
59+
60+
Beyond that we have some smaller fixes:
61+
62+
* Fixed an issue with voxels not rendering on linux with firefox [#4756](https://github.com/MakieOrg/Makie.jl/pull/4756).
63+
* Fixed an issue causing voxel planes to shift when using `rotate!(plot, ...)` [#4824](https://github.com/MakieOrg/Makie.jl/pull/4824)
64+
* Fixed `uv_transform = :rotr90` and `:rotl90` being swapped [#4758](https://github.com/MakieOrg/Makie.jl/pull/4758)
65+
66+
| v0.22 | v0.22.2 |
67+
| --- | --- |
68+
| ![0.22.2](./images/img5.png) | ![0.22.2](./images/voxel-0.22.2.png) |
69+
70+
## [Curvilinear `contourf`](https://github.com/MakieOrg/Makie.jl/pull/4744)
71+
72+
Enabled curvilinear `contourf` plots by allowing contour calculations to be dispatched on and transforming Isoband output using bilinear interpolation.
73+
74+
![](./images/filled contour 2d with curvilinear grid.png)
75+
76+
## [Fix broken `voronoiplot` for clipped tessellations](https://github.com/MakieOrg/Makie.jl/pull/4740)
77+
78+
Resolved an issue with `voronoiplot` to work correctly with clipped tessellations and automatic color generation which was previously causing errors.
79+
80+
## [Add option to turn off clipping](https://github.com/MakieOrg/Makie.jl/pull/4791)
81+
82+
We introduced a feature that allows users to disable clipping in `Axis3` by setting `ax.clip[] = false`. Note that you could already do this on a per-plot basis by overwriting the `clip = Plane3f[]` attribute when creating a plot.
83+
84+
## [Resolve :data space when deciding whether to connect transformations](https://github.com/MakieOrg/Makie.jl/pull/4723)
85+
86+
When a plot is created its transformations, i.e. the `transform_func` (for example the `log` transform of an Axis) and model transformations (as set by `scale!()`, `rotate!()` and `translate!()`) are inherited from its parent based on whether their `space` is compatible. This only used to check the direct parent, which created a problem when `space = :data` represented pixel, clip or relative space through a pixel, empty or relative camera. We now trace the space up to the parent scene to resolve this issue.
87+
88+
## [Improvements for Slider updates](https://github.com/MakieOrg/Makie.jl/pull/4748)
89+
90+
Added options to slider updates, including `update_while_dragging` and `throttle`, and introduced `lowres_background` to the `Resampler` to optimize performance when updating `heatmap(Resampler(data))` often.
91+
92+
## Internal fixes for (W)GLMakie
93+
94+
* Fix rare shader compilation error[#4755](https://github.com/MakieOrg/Makie.jl/pull/4755)
95+
* [Upgrade to threejs 0.173, fixing a rare problem with NaNs in buffers](https://github.com/MakieOrg/Makie.jl/pull/4809)
96+
* Fix WGLMakie nan error in cut plane, which broke Axis3 [#4772](https://github.com/MakieOrg/Makie.jl/pull/4772)
97+
* fix UInt underflow in line indices [#4782](https://github.com/MakieOrg/Makie.jl/pull/4782)
98+
99+
## [Allow higher dimensional geometries in poly](https://github.com/MakieOrg/Makie.jl/pull/4738)
100+
101+
Restored support for rendering higher-dimensional geometries with the `poly()` function, enabling 3D shape visualization as a mesh with outlines.
102+
103+
## [allow setting inspectable in the theme](https://github.com/MakieOrg/Makie.jl/pull/4739)
104+
105+
Enabled setting the `inspectable` attribute within themes, allowing for theme-wide customization of inspectability options across plots.
106+
107+
## [Allow `Block.attri...` to autocomplete](https://github.com/MakieOrg/Makie.jl/pull/4786)
108+
109+
We added support for autocompletion for attributes on Block types. This allows you to tab-complete attributes while looking for documentation, e.g. `?Axis.xl` will complete to `?Axis.xlabel`.
110+
111+
## [Consider visible in PolarAxis protrusions](https://github.com/MakieOrg/Makie.jl/pull/4823)
112+
113+
Fixed an issue where PolarAxis protrusions did not consider visibility states, e.g. due to being hidden by `hidedecorations!(ax)`.
114+
115+
## [Widget optimizations](https://github.com/MakieOrg/Makie.jl/pull/4821)
116+
117+
Optimized widget updates by reducing redundant updates, and by removing `pick()` usage where possible.
118+
This solves a rare issue, where `Textfield` would stop working on a server with higher latency.
119+
120+
## [Fix WGLMakie tick and window_open events](https://github.com/MakieOrg/Makie.jl/pull/4818)
121+
122+
We fixed an issue causing tick events to not be spawned in WGLMakie and connected the window_open event. This also fixes issues with animated Widgets, e.g. Toggle not working in WGLMakie.

src/blogposts/v0.22.2/post.xml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<item>
2+
<title>Makie v0.22.2</title>
3+
<link>./blogposts/v0.22.2</link>
4+
<description>Improvements for voxel plots, enhanced slider options for optimized rendering, updated documentation and many more</description>
5+
<pubDate>Wed, 26 Feb 2025 16:27:53</pubDate>
6+
<image>
7+
<url>images/img1.png</url>
8+
</image>
9+
</item>

0 commit comments

Comments
 (0)