Skip to content

Commit

Permalink
prepare 0.19.7 release (#3079)
Browse files Browse the repository at this point in the history
* prepare 0.19.7 release

* try non breaking version for MakieCore

* rename plot attribute functions
  • Loading branch information
SimonDanisch authored Jul 22, 2023
1 parent aab593f commit ecbb0ed
Show file tree
Hide file tree
Showing 11 changed files with 68 additions and 67 deletions.
4 changes: 2 additions & 2 deletions CairoMakie/Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "CairoMakie"
uuid = "13f3f980-e62b-5c42-98c6-ff1f3baf88f0"
author = ["Simon Danisch <sdanisch@gmail.com>"]
version = "0.10.6"
version = "0.10.7"

[deps]
Base64 = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"
Expand All @@ -23,7 +23,7 @@ FFTW = "1"
FileIO = "1.1"
FreeType = "3, 4.0"
GeometryBasics = "0.4.1"
Makie = "=0.19.6"
Makie = "=0.19.7"
PrecompileTools = "1.0"
julia = "1.3"

Expand Down
4 changes: 2 additions & 2 deletions GLMakie/Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "GLMakie"
uuid = "e9467ef8-e4e7-5192-8a1a-b1aee30e663a"
version = "0.8.6"
version = "0.8.7"

[deps]
ColorTypes = "3da002f7-5984-5a60-b8a6-cbb66c0b333f"
Expand Down Expand Up @@ -29,7 +29,7 @@ FixedPointNumbers = "0.7, 0.8"
FreeTypeAbstraction = "0.10"
GLFW = "3"
GeometryBasics = "0.4.1"
Makie = "=0.19.6"
Makie = "=0.19.7"
MeshIO = "0.4"
ModernGL = "1"
Observables = "0.5.1"
Expand Down
2 changes: 1 addition & 1 deletion MakieCore/Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
authors = ["Simon Danisch"]
name = "MakieCore"
uuid = "20f20a25-4f0e-4fdf-b5d1-57303727442b"
version = "0.6.3"
version = "0.6.4"

[deps]
Observables = "510215fc-4207-5dde-b226-833fc4488ee2"
Expand Down
96 changes: 48 additions & 48 deletions MakieCore/src/basic_plots.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
default_theme(scene) = default_theme!(Attributes())
default_theme(scene) = generic_plot_attributes!(Attributes())


"""
Expand All @@ -13,7 +13,7 @@ default_theme(scene) = default_theme!(Attributes())
- `model::Makie.Mat4f` sets a model matrix for the plot. This replaces adjustments made with `translate!`, `rotate!` and `scale!`.
- `space::Symbol = :data` sets the transformation space for box encompassing the volume plot. See `Makie.spaces()` for possible inputs.
"""
function default_theme!(attr)
function generic_plot_attributes!(attr)
attr[:transformation] = automatic
attr[:model] = automatic
attr[:visible] = true
Expand All @@ -26,7 +26,7 @@ function default_theme!(attr)
return attr
end

function default_attributes(attr)
function generic_plot_attributes(attr)
return (
transformation = attr[:transformation],
model = attr[:model],
Expand All @@ -53,7 +53,7 @@ end
- `highclip::Union{Nothing, Symbol, <:Colorant} = nothing` sets a color for any value above the colorrange.
- `alpha = 1.0` sets the alpha value of the colormap or color attribute. Multiple alphas like in `plot(alpha=0.2, color=(:red, 0.5)`, will get multiplied.
"""
function colormap_args!(attr, colormap)
function colormap_attributes!(attr, colormap)
attr[:colormap] = colormap
attr[:colorscale] = identity
attr[:colorrange] = automatic
Expand Down Expand Up @@ -129,17 +129,17 @@ Plots an image on range `x, y` (defaults to dimensions).
- `interpolate::Bool = true` sets whether colors should be interpolated.
$(Base.Docs.doc(colormap_args!))
$(Base.Docs.doc(colormap_attributes!))
$(Base.Docs.doc(MakieCore.default_theme!))
$(Base.Docs.doc(MakieCore.generic_plot_attributes!))
"""
@recipe(Image, x, y, image) do scene
attr = Attributes(;
interpolate = true,
fxaa = false,
)
default_theme!(attr)
return colormap_args!(attr, [:black, :white])
generic_plot_attributes!(attr)
return colormap_attributes!(attr, [:black, :white])
end

"""
Expand All @@ -154,9 +154,9 @@ Plots a heatmap as an image on `x, y` (defaults to interpretation as dimensions)
- `interpolate::Bool = false` sets whether colors should be interpolated.
$(Base.Docs.doc(colormap_args!))
$(Base.Docs.doc(colormap_attributes!))
$(Base.Docs.doc(MakieCore.default_theme!))
$(Base.Docs.doc(MakieCore.generic_plot_attributes!))
"""
@recipe(Heatmap, x, y, values) do scene
attr = Attributes(;
Expand All @@ -166,8 +166,8 @@ $(Base.Docs.doc(MakieCore.default_theme!))
linewidth = 0.0,
fxaa = true,
)
default_theme!(attr)
return colormap_args!(attr, theme(scene, :colormap))
generic_plot_attributes!(attr)
return colormap_attributes!(attr, theme(scene, :colormap))
end

"""
Expand All @@ -193,9 +193,9 @@ Available algorithms are:
$(Base.Docs.doc(shading_attributes!))
$(Base.Docs.doc(colormap_args!))
$(Base.Docs.doc(colormap_attributes!))
$(Base.Docs.doc(MakieCore.default_theme!))
$(Base.Docs.doc(MakieCore.generic_plot_attributes!))
"""
@recipe(Volume, x, y, z, volume) do scene
attr = Attributes(;
Expand All @@ -206,9 +206,9 @@ $(Base.Docs.doc(MakieCore.default_theme!))

fxaa = true,
)
default_theme!(attr)
generic_plot_attributes!(attr)
shading_attributes!(attr)
return colormap_args!(attr, theme(scene, :colormap))
return colormap_attributes!(attr, theme(scene, :colormap))
end

"""
Expand All @@ -229,9 +229,9 @@ Plots a surface, where `(x, y)` define a grid whose heights are the entries in
$(Base.Docs.doc(shading_attributes!))
$(Base.Docs.doc(colormap_args!))
$(Base.Docs.doc(colormap_attributes!))
$(Base.Docs.doc(MakieCore.default_theme!))
$(Base.Docs.doc(MakieCore.generic_plot_attributes!))
"""
@recipe(Surface, x, y, z) do scene
attr = Attributes(;
Expand All @@ -241,8 +241,8 @@ $(Base.Docs.doc(MakieCore.default_theme!))
fxaa = true,
)
shading_attributes!(attr)
default_theme!(attr)
return colormap_args!(attr, theme(scene, :colormap))
generic_plot_attributes!(attr)
return colormap_attributes!(attr, theme(scene, :colormap))
end

"""
Expand All @@ -264,9 +264,9 @@ Creates a connected line plot for each element in `(x, y, z)`, `(x, y)` or `posi
- `linestyle::Union{Nothing, Symbol, Vector} = nothing` sets the pattern of the line (e.g. `:solid`, `:dot`, `:dashdot`)
- `linewidth::Union{Real, Vector} = 1.5` sets the width of the line in pixel units.
$(Base.Docs.doc(colormap_args!))
$(Base.Docs.doc(colormap_attributes!))
$(Base.Docs.doc(MakieCore.default_theme!))
$(Base.Docs.doc(MakieCore.generic_plot_attributes!))
"""
@recipe(Lines, positions) do scene
attr = Attributes(;
Expand All @@ -278,8 +278,8 @@ $(Base.Docs.doc(MakieCore.default_theme!))
fxaa = false,
cycle = [:color],
)
default_theme!(attr, )
return colormap_args!(attr, theme(scene, :colormap))
generic_plot_attributes!(attr, )
return colormap_attributes!(attr, theme(scene, :colormap))
end

"""
Expand All @@ -300,9 +300,9 @@ Plots a line for each pair of points in `(x, y, z)`, `(x, y)`, or `positions`.
- `linestyle::Union{Nothing, Symbol, Vector} = nothing` sets the pattern of the line (e.g. `:solid`, `:dot`, `:dashdot`)
- `linewidth::Union{Real, Vector} = 1.5` sets the width of the line in pixel units.
$(Base.Docs.doc(colormap_args!))
$(Base.Docs.doc(colormap_attributes!))
$(Base.Docs.doc(MakieCore.default_theme!))
$(Base.Docs.doc(MakieCore.generic_plot_attributes!))
"""
@recipe(LineSegments, positions) do scene
default_theme(scene, Lines)
Expand All @@ -328,9 +328,9 @@ Plots a 3D or 2D mesh. Supported `mesh_object`s include `Mesh` types from [Geome
$(Base.Docs.doc(shading_attributes!))
$(Base.Docs.doc(colormap_args!))
$(Base.Docs.doc(colormap_attributes!))
$(Base.Docs.doc(MakieCore.default_theme!))
$(Base.Docs.doc(MakieCore.generic_plot_attributes!))
"""
@recipe(Mesh, mesh) do scene
attr = Attributes(;
Expand All @@ -341,8 +341,8 @@ $(Base.Docs.doc(MakieCore.default_theme!))
cycle = [:color => :patchcolor],
)
shading_attributes!(attr)
default_theme!(attr)
return colormap_args!(attr, theme(scene, :colormap))
generic_plot_attributes!(attr)
return colormap_attributes!(attr, theme(scene, :colormap))
end

"""
Expand All @@ -369,9 +369,9 @@ Plots a marker for each element in `(x, y, z)`, `(x, y)`, or `positions`.
- `rotations::Union{Real, Billboard, Quaternion} = Billboard(0f0)` sets the rotation of the marker. A `Billboard` rotation is always around the depth axis.
- `transform_marker::Bool = false` controls whether the model matrix (without translation) applies to the marker itself, rather than just the positions. (If this is true, `scale!` and `rotate!` will affect the marker.)
$(Base.Docs.doc(colormap_args!))
$(Base.Docs.doc(colormap_attributes!))
$(Base.Docs.doc(MakieCore.default_theme!))
$(Base.Docs.doc(MakieCore.generic_plot_attributes!))
"""
@recipe(Scatter, positions) do scene
attr = Attributes(;
Expand All @@ -396,8 +396,8 @@ $(Base.Docs.doc(MakieCore.default_theme!))
fxaa = false,
cycle = [:color],
)
default_theme!(attr)
return colormap_args!(attr, theme(scene, :colormap))
generic_plot_attributes!(attr)
return colormap_attributes!(attr, theme(scene, :colormap))
end

"""
Expand All @@ -421,9 +421,9 @@ Plots a mesh for each element in `(x, y, z)`, `(x, y)`, or `positions` (similar
$(Base.Docs.doc(shading_attributes!))
$(Base.Docs.doc(colormap_args!))
$(Base.Docs.doc(colormap_attributes!))
$(Base.Docs.doc(MakieCore.default_theme!))
$(Base.Docs.doc(MakieCore.generic_plot_attributes!))
"""
@recipe(MeshScatter, positions) do scene
attr = Attributes(;
Expand All @@ -438,8 +438,8 @@ $(Base.Docs.doc(MakieCore.default_theme!))
cycle = [:color],
)
shading_attributes!(attr)
default_theme!(attr)
return colormap_args!(attr, theme(scene, :colormap))
generic_plot_attributes!(attr)
return colormap_attributes!(attr, theme(scene, :colormap))
end

"""
Expand Down Expand Up @@ -468,9 +468,9 @@ Plots one or multiple texts passed via the `text` keyword.
- `glowcolor::Union{Symbol, <:Colorant} = (:black, 0)` sets the color of the glow effect.
- `word_wrap_with::Real = -1` specifies a linewidth limit for text. If a word overflows this limit, a newline is inserted before it. Negative numbers disable word wrapping.
$(Base.Docs.doc(colormap_args!))
$(Base.Docs.doc(colormap_attributes!))
$(Base.Docs.doc(MakieCore.default_theme!))
$(Base.Docs.doc(MakieCore.generic_plot_attributes!))
"""
@recipe(Text, positions) do scene
attr = Attributes(;
Expand All @@ -492,8 +492,8 @@ $(Base.Docs.doc(MakieCore.default_theme!))
offset = (0.0, 0.0),
word_wrap_width = -1,
)
default_theme!(attr)
return colormap_args!(attr, theme(scene, :colormap))
generic_plot_attributes!(attr)
return colormap_attributes!(attr, theme(scene, :colormap))
end

"""
Expand Down Expand Up @@ -524,9 +524,9 @@ Plots polygons, which are defined by
- `strokewidth::Real = 0` sets the width of the outline around a marker.
- `linestyle::Union{Nothing, Symbol, Vector} = nothing` sets the pattern of the line (e.g. `:solid`, `:dot`, `:dashdot`)
$(Base.Docs.doc(colormap_args!))
$(Base.Docs.doc(colormap_attributes!))
$(Base.Docs.doc(MakieCore.default_theme!))
$(Base.Docs.doc(MakieCore.generic_plot_attributes!))
"""
@recipe(Poly) do scene
attr = Attributes(;
Expand All @@ -541,8 +541,8 @@ $(Base.Docs.doc(MakieCore.default_theme!))

cycle = [:color => :patchcolor],
)
default_theme!(attr)
return colormap_args!(attr, theme(scene, :colormap))
generic_plot_attributes!(attr)
return colormap_attributes!(attr, theme(scene, :colormap))
end

@recipe(Wireframe) do scene
Expand Down Expand Up @@ -579,8 +579,8 @@ end
ssao = false
)

default_theme!(attr)
colormap_args!(attr, theme(scene, :colormap))
generic_plot_attributes!(attr)
colormap_attributes!(attr, theme(scene, :colormap))

attr[:fxaa] = automatic
attr[:linewidth] = automatic
Expand Down
3 changes: 2 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## master

## v0.19.7

- Allow arbitrary functions to color `streamplot` lines by passing a `Function` to `color`. This must accept `Point` of the appropriate dimension and return a `Point`, `Vec`, or other arraylike object [#2002](https://github.com/MakieOrg/Makie.jl/pull/2002).
- `arrows` can now take input of the form `x::AbstractVector, y::AbstractVector, [z::AbstractVector,] f::Function`, where `f` must return a `VecTypes` of the appropriate dimension [#2597](https://github.com/MakieOrg/Makie.jl/pull/2597).
- Exported colorbuffer, and added `colorbuffer(axis::Axis; include_decorations=false, colorbuffer_kws...)`, to get an image of an axis with or without decorations [#3078](https://github.com/MakieOrg/Makie.jl/pull/3078).
Expand All @@ -26,7 +28,6 @@
- Adjusted scaling of scatter/text stroke, glow and anti-aliasing width under non-uniform 2D scaling (Vec2f markersize/fontsize) in GLMakie [#2950](https://github.com/MakieOrg/Makie.jl/pull/2950).
- Scaled `errorbar` whiskers and `bracket` correctly with transformations [#3012](https://github.com/MakieOrg/Makie.jl/pull/3012).
- Updated `bracket` when the screen is resized or transformations change [#3012](https://github.com/MakieOrg/Makie.jl/pull/3012).
- Added auto-resizing functionality to WGLMakie plot figures [#3042](https://github.com/MakieOrg/Makie.jl/pull/3042)

## v0.19.6

Expand Down
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "Makie"
uuid = "ee78f7c6-11fb-53f2-987a-cfe4a2b5a57a"
authors = ["Simon Danisch", "Julius Krumbiegel"]
version = "0.19.6"
version = "0.19.7"

[deps]
Animations = "27a7e980-b3e6-11e9-2bcd-0b925532e340"
Expand Down Expand Up @@ -82,7 +82,7 @@ Isoband = "0.1"
KernelDensity = "0.5, 0.6"
LaTeXStrings = "1.2"
MacroTools = "0.5"
MakieCore = "=0.6.3"
MakieCore = "=0.6.4"
Match = "1.1"
MathTeXEngine = "0.5"
Observables = "0.5.3"
Expand Down
4 changes: 2 additions & 2 deletions RPRMakie/Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "RPRMakie"
uuid = "22d9f318-5e34-4b44-b769-6e3734a732a6"
authors = ["Simon Danisch"]
version = "0.5.6"
version = "0.5.7"

[deps]
Colors = "5ae59095-9a9b-59fe-a467-6f913c188581"
Expand All @@ -17,7 +17,7 @@ julia = "1.3"
Colors = "0.9, 0.10, 0.11, 0.12"
FileIO = "1.6"
GeometryBasics = "0.4.1"
Makie = "=0.19.6"
Makie = "=0.19.7"
RadeonProRender = "0.3.0"

[extras]
Expand Down
Loading

0 comments on commit ecbb0ed

Please sign in to comment.