Skip to content
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

Rebased version of beta 0.20 #3113

Merged
merged 164 commits into from
Nov 17, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
164 commits
Select commit Hold shift + click to select a range
b1d9d63
squash merge jw/gl_linux_hidpi
jkrumbiegel Mar 31, 2023
56cda4c
Fix mesh/surface with NaN points #2598
SimonDanisch Aug 1, 2023
79839c5
Camera3D Improvements #2746
SimonDanisch Aug 1, 2023
e933fbd
merge jk/html-png-display + highdpi adjustments
jkrumbiegel Mar 31, 2023
6a4f605
Fix errors and bugs
ffreyer Jul 12, 2023
2859548
early attr conversion + no proxy scene anymore #3082
SimonDanisch Aug 1, 2023
4610ead
add remaining changes from beta-0.20
SimonDanisch Aug 1, 2023
91fd2dc
dont be unfair to master
SimonDanisch Aug 1, 2023
0bcb774
use same resolution as master
SimonDanisch Aug 1, 2023
d20bf7a
squash merge jw/gl_linux_hidpi
jkrumbiegel Mar 31, 2023
f8f3436
Fix mesh/surface with NaN points #2598
SimonDanisch Aug 1, 2023
819d823
Camera3D Improvements #2746
SimonDanisch Aug 1, 2023
76803fc
merge jk/html-png-display + highdpi adjustments
jkrumbiegel Mar 31, 2023
5fb4809
Fix errors and bugs
ffreyer Jul 12, 2023
8c16d51
early attr conversion + no proxy scene anymore #3082
SimonDanisch Aug 1, 2023
030ee50
add remaining changes from beta-0.20
SimonDanisch Aug 1, 2023
d0141a8
dont be unfair to master
SimonDanisch Aug 1, 2023
7148081
use same resolution as master
SimonDanisch Aug 1, 2023
ee4f0cd
Merge branch 'sd/beta-20' of https://github.com/MakieOrg/Makie.jl int…
SimonDanisch Aug 16, 2023
67526c8
Merge branch 'master' into sd/beta-20
SimonDanisch Aug 16, 2023
6c8e73d
Merge branch 'master' into sd/beta-20
SimonDanisch Aug 21, 2023
bc5ea90
Refactor SurfaceLike trait (#3106)
ffreyer Aug 29, 2023
ee7b06d
merge master
SimonDanisch Aug 29, 2023
b3f0c1e
Merge branch 'master' into sd/beta-20
SimonDanisch Aug 29, 2023
bc0f611
Rework WGLMakie lines (#3062)
SimonDanisch Aug 30, 2023
53e36f6
Merge branch 'master' into sd/beta-20
jkrumbiegel Aug 30, 2023
4d1fff9
only run on push
SimonDanisch Aug 30, 2023
55fc71b
fix tests
SimonDanisch Aug 30, 2023
2c17d78
forgot save
SimonDanisch Aug 30, 2023
100b0fa
try using the ReferenceTests from monorepo proj
SimonDanisch Aug 30, 2023
bdf24b1
add to project
SimonDanisch Aug 30, 2023
f641310
wrong ReferenceTests
SimonDanisch Aug 31, 2023
48ed0f9
merge master
SimonDanisch Aug 31, 2023
916d76f
clean up ReferenceTests import + env
SimonDanisch Aug 31, 2023
fc34a87
fix transformation
SimonDanisch Aug 31, 2023
bb6b9d4
fix default axis for mesh2d/poly
SimonDanisch Aug 31, 2023
24d8e28
fix CairoMakie
SimonDanisch Aug 31, 2023
b92bf1f
clean up ppu and add test for it
SimonDanisch Aug 31, 2023
ae0227d
run on pull_request
SimonDanisch Sep 1, 2023
086f3e6
fix test
SimonDanisch Sep 1, 2023
e4ea128
tweak px_per_unit handing in GLMakie & revert hardcoded camera test (…
ffreyer Sep 1, 2023
cd6a946
Merge branch 'master' into sd/beta-20
SimonDanisch Sep 1, 2023
e63f08a
fix merge conflicts
SimonDanisch Sep 12, 2023
6471996
fix plot!(...)
SimonDanisch Sep 18, 2023
d4f6ce8
merge master
SimonDanisch Sep 18, 2023
a801d21
rename
SimonDanisch Sep 18, 2023
110667b
merge master
SimonDanisch Sep 25, 2023
331bf32
fixes
SimonDanisch Sep 25, 2023
2f5c659
Merge branch 'master' into sd/beta-20
SimonDanisch Sep 25, 2023
9a980cf
fix used_attributes
SimonDanisch Sep 25, 2023
1bae189
fix stress test and only caclulate camvalues once
SimonDanisch Sep 25, 2023
10cd1e1
fix tests
SimonDanisch Sep 26, 2023
98da09b
[WIP] Dynamic `PlotList` recipe which plots arbitrary arrays of PlotS…
asinghvi17 Sep 27, 2023
3db88eb
Merge branch 'master' into sd/beta-20
SimonDanisch Sep 27, 2023
ef760db
directly add transformation to attributes
SimonDanisch Sep 27, 2023
ccc4acd
Merge branch 'master' into sd/beta-20
SimonDanisch Sep 27, 2023
bf2e25b
clean up transformation
SimonDanisch Sep 27, 2023
f1cfcaa
remove unused function
SimonDanisch Oct 4, 2023
42757b0
merge master
SimonDanisch Oct 5, 2023
e163fc8
didn't save
SimonDanisch Oct 5, 2023
8ac92a8
merge master
SimonDanisch Oct 13, 2023
722c659
Improve default near/far (#3293)
ffreyer Oct 16, 2023
8a19965
skip camera update with 0 width limits
ffreyer Oct 16, 2023
bf3f264
clean up and leak fixes
SimonDanisch Oct 16, 2023
13ee240
Merge branch 'sd/beta-20' of https://github.com/MakieOrg/Makie.jl int…
SimonDanisch Oct 16, 2023
b0d5f68
make test more robust
SimonDanisch Oct 17, 2023
ace5d6a
Merge branch 'master' into sd/beta-20
SimonDanisch Oct 18, 2023
b601917
use Ramstepper for comparing images
SimonDanisch Oct 18, 2023
f24e890
Merge branch 'master' into sd/beta-20
SimonDanisch Oct 19, 2023
bef85c0
Merge branch 'master' into sd/beta-20
SimonDanisch Oct 20, 2023
acf468d
Merge branch 'sd/beta-20' of https://github.com/MakieOrg/Makie.jl int…
SimonDanisch Oct 20, 2023
03ec3b9
cycle color for error and range bars (#3230)
ErickChacon Oct 23, 2023
63fd2fa
Merge branch 'master' into sd/beta-20
SimonDanisch Oct 24, 2023
a7ef010
Consider marker bbox in meshscatter data_limits (#3310)
ffreyer Oct 24, 2023
8a4b343
Merge branch 'master' into sd/beta-20
SimonDanisch Oct 24, 2023
f77e9e4
Blockspec (#3281)
SimonDanisch Oct 28, 2023
ac1b645
fix marker outlines & simplify shader a little
ffreyer Oct 29, 2023
3a39210
remove old depreactions
SimonDanisch Oct 30, 2023
609ff2c
merge master
SimonDanisch Oct 30, 2023
537c258
fix depreactaed import
SimonDanisch Oct 30, 2023
1b14c15
fix cycler + cycled for specapi
SimonDanisch Oct 30, 2023
7160cad
Improve figure size and units explanation documentation (#3322)
jkrumbiegel Oct 30, 2023
b82b6f7
Implement multiple lights and more Light types (#3246)
ffreyer Oct 30, 2023
59c4a1d
fix line z
SimonDanisch Oct 31, 2023
5069a96
add OrbitControl camera to fix offline WGL 3d camera
SimonDanisch Oct 31, 2023
8cff709
Merge branch 'master' into sd/beta-20
SimonDanisch Oct 31, 2023
67102ff
Merge branch 'master' into sd/beta-20
SimonDanisch Nov 1, 2023
6a6d1c4
Deprecate `resolution` for `size` (#3343)
jkrumbiegel Nov 1, 2023
078bce0
fix colorbuffer showing screen on second invocation
SimonDanisch Nov 1, 2023
180e218
Merge branch 'sd/beta-20' of https://github.com/MakieOrg/Makie.jl int…
SimonDanisch Nov 1, 2023
4b90e9b
update on modelmatrix
SimonDanisch Nov 1, 2023
efbe491
fix scene tutorial
SimonDanisch Nov 1, 2023
9b18a74
add depth shift
SimonDanisch Nov 1, 2023
fb69123
fix ssao
SimonDanisch Nov 2, 2023
ff827df
fix for AoG
SimonDanisch Nov 2, 2023
e4df372
scatter 2d in in Inspector as 2d
SimonDanisch Nov 2, 2023
4cdc64d
fix picking, bg color, add parent resizing
SimonDanisch Nov 2, 2023
ef3e08d
Merge branch 'master' into sd/beta-20
SimonDanisch Nov 2, 2023
3876a23
fix DimensionMismatch with cam3d alt-click
ffreyer Nov 2, 2023
fba01ab
round pixel
SimonDanisch Nov 3, 2023
6d2cd2a
Merge branch 'sd/beta-20' of https://github.com/MakieOrg/Makie.jl int…
SimonDanisch Nov 3, 2023
96b85ee
fix surface sampling in WGLMakie
ffreyer Nov 3, 2023
d7bc868
activate some more refimg tests in WGLMakie
ffreyer Nov 3, 2023
4c77e22
convert to NoShading if shading == false
ffreyer Nov 3, 2023
85ee116
cleanup surface sampling in GLMakie
ffreyer Nov 3, 2023
0c7438e
fix test error
ffreyer Nov 3, 2023
8388a42
rename resize_to_body to resize_to and allow to resize to parent
SimonDanisch Nov 3, 2023
b2ca738
Merge branch 'sd/beta-20' of https://github.com/MakieOrg/Makie.jl int…
SimonDanisch Nov 3, 2023
dce4f13
fix volume normals (black boxes)
ffreyer Nov 3, 2023
e0bd250
fix black volume on equal values
ffreyer Nov 3, 2023
ce753de
default transform_marker=false for text
SimonDanisch Nov 6, 2023
4808ca9
deprecate px_area and pixelarea in favor of viewport
SimonDanisch Nov 6, 2023
a8b7ae2
update bundle
SimonDanisch Nov 7, 2023
c1f79f4
benchmark with cached screen
SimonDanisch Nov 7, 2023
175cae2
cleanup observables
SimonDanisch Nov 7, 2023
246e0de
fix tests
SimonDanisch Nov 7, 2023
26e5193
Merge branch 'master' into sd/beta-20
SimonDanisch Nov 7, 2023
973f088
what's wrong with CairoMakie!?
SimonDanisch Nov 7, 2023
14dac7a
Merge branch 'sd/beta-20' of https://github.com/MakieOrg/Makie.jl int…
SimonDanisch Nov 7, 2023
a533985
Add RectLight (#3355)
ffreyer Nov 7, 2023
b4117cc
fix off-by-one in uv color sampling
ffreyer Nov 7, 2023
cfc65fc
Merge branch 'master' into sd/beta-20
SimonDanisch Nov 8, 2023
fe7e494
use px_per_unit=1
SimonDanisch Nov 8, 2023
e3bf390
improve CairoMakie performance
SimonDanisch Nov 8, 2023
fb94c49
use [email protected]
SimonDanisch Nov 8, 2023
b746109
remove JSServe branch
SimonDanisch Nov 8, 2023
f1a76b7
cancel on push
SimonDanisch Nov 8, 2023
3938333
fix RPRMakie
SimonDanisch Nov 8, 2023
6a92512
please the compiler gods!?
SimonDanisch Nov 8, 2023
99ed207
rename VertexBasedGrid -> VertexGrid
ffreyer Nov 8, 2023
6db9547
fix tests
ffreyer Nov 8, 2023
33f899b
add another clipping mode
ffreyer Nov 8, 2023
10d439a
fixes for RPRMakie
SimonDanisch Nov 8, 2023
dc7aaa6
move specapi docs
SimonDanisch Nov 9, 2023
0ffca8c
fix RectLight position
ffreyer Nov 9, 2023
e60185f
improve result printing
SimonDanisch Nov 9, 2023
3dad965
fix missing examplefigure block
ffreyer Nov 9, 2023
8cfd95d
fix docs error
ffreyer Nov 9, 2023
c8e9891
Introduce GridLayoutSpec and make SpecApi 100% declarative
SimonDanisch Nov 10, 2023
5827947
Merge branch 'sd/beta-20' of https://github.com/MakieOrg/Makie.jl int…
SimonDanisch Nov 10, 2023
a8ec43e
fix tests
SimonDanisch Nov 11, 2023
a1fadc0
fix re-using of layouts + clean up
SimonDanisch Nov 13, 2023
939742a
remove display
SimonDanisch Nov 13, 2023
9e28b73
final tweaks
SimonDanisch Nov 14, 2023
12f93b7
softly deprecate lowercase
SimonDanisch Nov 14, 2023
7b147b5
fix tests
SimonDanisch Nov 14, 2023
e68e089
fix layouting bugs
SimonDanisch Nov 14, 2023
65fa2d7
make wglmakie more stable
SimonDanisch Nov 15, 2023
c7f35bd
improve specapi docs (#3378)
jkrumbiegel Nov 16, 2023
4d4fdf4
delete test file
SimonDanisch Nov 16, 2023
65aec39
implement empty!/delete! for all axes, closing #3376
SimonDanisch Nov 16, 2023
b5eaf40
fix LScene require_update
SimonDanisch Nov 16, 2023
ec6a92d
Merge branch 'sd/beta-20' of https://github.com/MakieOrg/Makie.jl int…
SimonDanisch Nov 16, 2023
7366880
small tweaks
SimonDanisch Nov 16, 2023
365e25e
rename Combined to Plot and improve docs a bit
SimonDanisch Nov 16, 2023
b89455b
use new GridLayoutBasic version to get rid of warning
SimonDanisch Nov 16, 2023
95a0137
fix datashader
SimonDanisch Nov 16, 2023
b0c0c13
fix cycling and test + clean up plotspec diffing
SimonDanisch Nov 16, 2023
35f6753
fix and clean up cycling & gridlayout diffing
SimonDanisch Nov 16, 2023
ca87a7e
remove FigureSpec
SimonDanisch Nov 16, 2023
4c993a2
Hyphen to minus in tick labels (#3379)
jkrumbiegel Nov 17, 2023
de8cb50
clean up deprecations
SimonDanisch Nov 17, 2023
6ed5111
fix wrong shading defaults in arrows
ffreyer Nov 17, 2023
2707505
Merge branch 'master' into sd/beta-20
SimonDanisch Nov 17, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 <[email protected]>"]
version = "0.10.7"
version = "0.11.0"

[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.7"
Makie = "=0.20.0"
PrecompileTools = "1.0"
julia = "1.3"

Expand Down
5 changes: 1 addition & 4 deletions CairoMakie/src/display.jl
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,7 @@ end

const DISABLED_MIMES = Set{String}()
const SUPPORTED_MIMES = Set([
"text/html",
"application/vnd.webio.application+html",
"application/prs.juno.plotpane+html",
"juliavscode/html",
map(x->string(x()), Makie.WEB_MIMES)...,
"image/svg+xml",
"application/pdf",
"application/postscript",
Expand Down
4 changes: 2 additions & 2 deletions CairoMakie/src/screen.jl
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ end
to_cairo_antialias(aa::Int) = aa

"""
* `px_per_unit = 2.0`: see [figure docs](https://docs.makie.org/stable/documentation/figure/).
* `pt_per_unit = 0.75`: see [figure docs](https://docs.makie.org/stable/documentation/figure/).
* `px_per_unit = 2.0`: see [figure docs](https://docs.makie.org/stable/documentation/figure_size/).
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jkrumbiegel I guess this is the old url and should be figure now? Or is this the correct fix?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hm that page does exist and in principle contains the right info. But I feel like I have rewritten that section at some point to explain the new changes. Or haven't I? It was too long ago..

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah the github interface for some reason didn't show the right changes, ok yeah I see now that I deleted that page in the refactor. So yeah link needs to be fixed

* `pt_per_unit = 0.75`: see [figure docs](https://docs.makie.org/stable/documentation/figure_size/).
* `antialias::Union{Symbol, Int} = :best`: antialias modus Cairo uses to draw. Applicable options: `[:best => Cairo.ANTIALIAS_BEST, :good => Cairo.ANTIALIAS_GOOD, :subpixel => Cairo.ANTIALIAS_SUBPIXEL, :none => Cairo.ANTIALIAS_NONE]`.
* `visible::Bool`: if true, a browser/image viewer will open to display rendered output.
"""
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.7"
version = "0.9.0"

[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.3"
GeometryBasics = "0.4.1"
Makie = "=0.19.7"
Makie = "=0.20.0"
MeshIO = "0.4"
ModernGL = "1"
Observables = "0.5.1"
Expand Down
2 changes: 1 addition & 1 deletion GLMakie/src/display.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ function Base.display(screen::Screen, scene::Scene; connect=true)
return screen
end

Makie.backend_showable(::Type{Screen}, ::Union{MIME"image/jpeg", MIME"image/png"}) = true
Makie.backend_showable(::Type{Screen}, ::Union{MIME"image/jpeg", MIME"image/png", Makie.WEB_MIMES...}) = true
3 changes: 2 additions & 1 deletion GLMakie/src/drawing_primitives.jl
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ function draw_atomic(screen::Screen, scene::Scene, @nospecialize(x::Lines))
data = Dict{Symbol, Any}(gl_attributes)

positions = handle_view(x[1], data)

transform_func = transform_func_obs(x)

# Tweak things for px_per_unit
Expand Down Expand Up @@ -340,10 +341,10 @@ function draw_atomic(screen::Screen, scene::Scene, @nospecialize(x::LineSegments
if haskey(data, :intensity)
data[:color] = pop!(data, :intensity)
end

# Tweak things for px_per_unit
resolution = pop!(data, :resolution)
data[:resolution] = map((ppu, res) -> ppu .* res, px_per_unit, resolution)

return draw_linesegments(screen, positions, data)
end
end
Expand Down
3 changes: 2 additions & 1 deletion GLMakie/src/screen.jl
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,8 @@ function Makie.colorbuffer(screen::Screen, format::Makie.ImageStorageFormat = Ma
# polling may change window size, when its bigger than monitor!
# we still need to poll though, to get all the newest events!
# GLFW.PollEvents()
render_frame(screen, resize_buffers=true) # let it render
# keep current buffer size to allows larger-than-window renders
render_frame(screen, resize_buffers=false) # let it render
if screen.config.visible
GLFW.SwapBuffers(to_native(screen))
else
Expand Down
8 changes: 5 additions & 3 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
# News

## master
## beta

- Fixed an issue where NaN was interpreted as zero when rendering `surface` through CairoMakie. [#2598](https://github.com/MakieOrg/Makie.jl/pull/2598)
- GLMakie has gained support for HiDPI (aka Retina) screens.
This also enables saving images with higher resolution than screen pixel dimensions.
[#2544](https://github.com/MakieOrg/Makie.jl/pull/2544)
- Fixed an issue where NaN was interpreted as zero when rendering `surface` through CairoMakie. [#2598](https://github.com/MakieOrg/Makie.jl/pull/2598)
- Improved 3D camera handling, hotkeys and functionality [#2746](https://github.com/MakieOrg/Makie.jl/pull/2746)

## master

- Fixed incorrect placement of contourlabels with transform functions [#3083](https://github.com/MakieOrg/Makie.jl/pull/3083)
- Fix automatic normal generation for meshes with shading and no normals [#3041](https://github.com/MakieOrg/Makie.jl/pull/3041).

Expand Down Expand Up @@ -36,7 +39,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
2 changes: 1 addition & 1 deletion 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.7"
version = "0.20.0"

[deps]
Animations = "27a7e980-b3e6-11e9-2bcd-0b925532e340"
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.7"
version = "0.6.0"

[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.7"
Makie = "=0.20.0"
RadeonProRender = "0.3.0"

[extras]
Expand Down
24 changes: 12 additions & 12 deletions ReferenceTests/src/tests/primitives.jl
Original file line number Diff line number Diff line change
Expand Up @@ -446,18 +446,6 @@ end
scene
end

@reference_test "barplot with TeX-ed labels" begin
fig = Figure(resolution = (800, 800))
lab1 = L"\int f(x) dx"
lab2 = lab1
# lab2 = L"\frac{a}{b} - \sqrt{b}" # this will not work until #2667 is fixed

barplot(fig[1,1], [1, 2], [0.5, 0.2], bar_labels = [lab1, lab2], flip_labels_at = 0.3, direction=:x)
barplot(fig[1,2], [1, 2], [0.5, 0.2], bar_labels = [lab1, lab2], flip_labels_at = 0.3)

fig
end

@reference_test "Surface with NaN points" begin
# prepare surface data
zs = [x^2 + y^2 for x in range(-2, 0, length=10), y in range(-2, 0, length=10)]
Expand All @@ -471,3 +459,15 @@ end
wireframe!(a, m, depth_shift = -1f-3, color = :black)
f
end

@reference_test "barplot with TeX-ed labels" begin
fig = Figure(resolution = (800, 800))
lab1 = L"\int f(x) dx"
lab2 = lab1
# lab2 = L"\frac{a}{b} - \sqrt{b}" # this will not work until #2667 is fixed

barplot(fig[1,1], [1, 2], [0.5, 0.2], bar_labels = [lab1, lab2], flip_labels_at = 0.3, direction=:x)
barplot(fig[1,2], [1, 2], [0.5, 0.2], bar_labels = [lab1, lab2], flip_labels_at = 0.3)

fig
end
4 changes: 2 additions & 2 deletions WGLMakie/Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "WGLMakie"
uuid = "276b4fcb-3e11-5398-bf8b-a0c2d153d008"
authors = ["SimonDanisch <[email protected]>"]
version = "0.8.11"
version = "0.9.0"

[deps]
Colors = "5ae59095-9a9b-59fe-a467-6f913c188581"
Expand All @@ -26,7 +26,7 @@ FreeTypeAbstraction = "0.10"
GeometryBasics = "0.4.1"
Hyperscript = "0.0.3, 0.0.4"
JSServe = "2.2"
Makie = "=0.19.7"
Makie = "=0.20.0"
Observables = "0.5.1"
RelocatableFolders = "0.1, 0.2, 0.3, 1.0"
ShaderAbstractions = "0.3"
Expand Down
1 change: 1 addition & 0 deletions WGLMakie/src/imagelike.jl
Original file line number Diff line number Diff line change
Expand Up @@ -148,5 +148,6 @@ function limits_to_uvmesh(plot)
uv = Buffer(lift(fast_uv, resolution))
end
vertices = GeometryBasics.meta(positions; uv=uv)

return Dict(:positions => positions, :faces => faces, :uv => uv)
end
5 changes: 1 addition & 4 deletions src/display.jl
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,6 @@ const WEB_MIMES = (
MIME"application/prs.juno.plotpane+html",
MIME"juliavscode/html")

# because we have a default way to display pngs in html contexts, we can say that
# if png is showable, so are the html types
Base.showable(mime::Union{WEB_MIMES...}, fig::FigureLike) = showable(MIME"image/png"(), fig)

backend_showable(@nospecialize(screen), @nospecialize(mime)) = false

Expand Down Expand Up @@ -474,4 +471,4 @@ function backend_show(screen::MakieScreen, io::IO, ::Union{WEB_MIMES...}, scene:
b64 = Base64.base64encode(String(take!(png_io)))
print(io, "<img width=$w height=$h style='object-fit: contain;' src=\"data:image/png;base64, $(b64)\"/>")
return
end
end