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

turn Makie into a mono repo with all backends etc #1020

Merged
merged 1,661 commits into from
Jun 12, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1661 commits
Select commit Hold shift + click to select a range
2a74fe8
cleanup
ffreyer Apr 23, 2021
1a05c46
make first Cairo draw work
SimonDanisch Apr 24, 2021
ed2c32f
add test
SimonDanisch Apr 24, 2021
8452513
CompatHelper: add new compat entry for "Observables" at version "0.4"
github-actions[bot] Apr 25, 2021
4c7012a
use offset
jkrumbiegel Apr 25, 2021
3907e54
use transform func for text
jkrumbiegel Apr 25, 2021
67370f1
bump patch version and abstractplotting dep
jkrumbiegel Apr 25, 2021
ef863fe
handle text offset (#156)
jkrumbiegel Apr 25, 2021
bc60127
Merge pull request #5 from JuliaPlots/compathelper/new_version/2021-0…
SimonDanisch Apr 26, 2021
ed1ff64
Merge pull request #183 from ffreyer/text
SimonDanisch Apr 27, 2021
d49be75
Merge pull request #181 from ffreyer/fixes
SimonDanisch Apr 27, 2021
aa83115
Merge pull request #179 from mschauer/master
SimonDanisch Apr 27, 2021
60a5626
allow new FreeTypeAbstraction
SimonDanisch Apr 27, 2021
d139b37
new version
SimonDanisch Apr 27, 2021
7e20256
CompatHelper: bump compat for "ColorTypes" to "0.11"
github-actions[bot] Apr 28, 2021
ae86c51
Merge pull request #186 from JuliaPlots/compathelper/new_version/2021…
SimonDanisch Apr 28, 2021
e309c8b
Merge pull request #185 from JuliaPlots/sd/new-version
SimonDanisch Apr 28, 2021
3c03c56
fix linux test failure JuliaPlots/Makie.jl#930
SimonDanisch Apr 29, 2021
f445f79
Update unit_tests.jl
SimonDanisch Apr 29, 2021
4064efb
Create RegisterAction.yml
SimonDanisch Apr 29, 2021
76039f6
Merge pull request #187 from JuliaPlots/sd/fix-tests
SimonDanisch Apr 29, 2021
83c0f6e
Set version to 0.3.0
github-actions[bot] Apr 29, 2021
66d7c8a
Update Project.toml
SimonDanisch Apr 29, 2021
635a6f9
scenes + drawing
SimonDanisch Apr 30, 2021
e1bc6df
Merge branch 'master' of https://github.com/JuliaPlots/MakieCore.jl i…
SimonDanisch Apr 30, 2021
fa680fe
better findings
SimonDanisch May 1, 2021
2c2cb91
Update runtests.jl
SimonDanisch May 1, 2021
34959bc
Merge pull request #93 from SyxP/patch-1
SimonDanisch May 2, 2021
a985b02
update compat bounds
SimonDanisch May 2, 2021
d659253
upgrade to new AbstractPlotting
SimonDanisch May 2, 2021
dc13aca
remove logs
SimonDanisch May 2, 2021
8be2b8a
format
SimonDanisch May 2, 2021
cb894a1
apply transforms
SimonDanisch May 2, 2021
ece49d8
remove broken tests
SimonDanisch May 3, 2021
a81db6b
Merge pull request #96 from JuliaPlots/sd/upgrades
SimonDanisch May 3, 2021
9a2af60
Create RegisterAction.yml
SimonDanisch May 3, 2021
bea89e3
Set version to 0.3.5
github-actions[bot] May 3, 2021
099d9cd
Merge branch 'master' into heatmap
ffreyer May 4, 2021
37fca9a
adjust for AbstractPlotting#727
ffreyer May 4, 2021
6ef0ea1
Update index.md
SimonDanisch May 4, 2021
c8b8457
switch to edge based heatmaps
ffreyer May 5, 2021
19227ee
fix two bugs (#158)
jkrumbiegel May 6, 2021
56268e2
bump patch version
jkrumbiegel May 6, 2021
1b699e6
add fallback for Intervals
ffreyer May 6, 2021
e31503d
add fallback for intervals
ffreyer May 6, 2021
b01e8e5
Merge pull request #177 from ffreyer/point_picking
SimonDanisch May 7, 2021
de8ae31
Merge branch 'master' into sd/png
SimonDanisch May 7, 2021
a0491f0
allow to set pt/px_per_unit in activate call
SimonDanisch May 7, 2021
b505a04
fix buggy poly special case vector of vector of points (#159)
jkrumbiegel May 7, 2021
20daed0
bump patch version
jkrumbiegel May 7, 2021
76a8fbd
Merge branch 'master' into interactions
ffreyer May 8, 2021
bc4a9c3
Merge branch 'master' into events
ffreyer May 8, 2021
61fd113
Merge pull request #137 from ffreyer/heatmap
SimonDanisch May 10, 2021
c094cfb
Merge pull request #147 from JuliaPlots/sd/png
SimonDanisch May 10, 2021
0852c85
Merge pull request #157 from ffreyer/heatmap
SimonDanisch May 10, 2021
cb6a1fa
Merge pull request #154 from ffreyer/interactions
SimonDanisch May 10, 2021
9ff26ab
fix heatmaps with Intervals
ffreyer May 10, 2021
9689610
minor heatmap cleanup
ffreyer May 10, 2021
9659f79
improve heatmaps + apply transform
SimonDanisch May 11, 2021
a8744f1
ignore cycle attribute
jkrumbiegel May 13, 2021
a7adbde
clean up surface
SimonDanisch May 14, 2021
b7a1724
Merge branch 'master' of https://github.com/JuliaPlots/GLMakie.jl
SimonDanisch May 14, 2021
bfe7889
fix JuliaPlots/Makie.jl#159 and JuliaPlots/Makie.jl#857 lines([])
SimonDanisch May 14, 2021
39248c2
fix surface +mesh shader
SimonDanisch May 14, 2021
a715521
convert intervals to vectors for log transforms
SimonDanisch May 14, 2021
46cd8a8
apply rotations to billboard
ffreyer May 15, 2021
2f98a10
handle rotated Billboards
ffreyer May 15, 2021
5426903
fix test failure on per-char offsets/textsizes
ffreyer May 15, 2021
8b802af
add billboard rotations
ffreyer May 15, 2021
13a5678
Merge pull request #99 from ffreyer/billboard_rotation
SimonDanisch May 16, 2021
c916485
Merge pull request #89 from ffreyer/events
SimonDanisch May 16, 2021
4f9154b
Merge pull request #160 from ffreyer/billboard_rotation
ffreyer May 17, 2021
b1d3eb0
Merge pull request #189 from ffreyer/billboard_rotation
ffreyer May 17, 2021
8954fc3
test more important versions
SimonDanisch May 17, 2021
7c5c007
switch to Makie.jl
SimonDanisch May 18, 2021
311da1c
switch to Makie.jl
SimonDanisch May 18, 2021
1d7c960
make sure tests pass
SimonDanisch May 18, 2021
65f1a1c
fixes
SimonDanisch May 18, 2021
f55d0a6
Merge branch 'master' into sd/the-new-makie
SimonDanisch May 18, 2021
5f4c631
Merge pull request #190 from JuliaPlots/sd/the-new-makie
SimonDanisch May 18, 2021
c1242a8
fix nan_color et al
SimonDanisch May 19, 2021
47bb240
final fixes
SimonDanisch May 19, 2021
eec0f11
test most important versions
SimonDanisch May 19, 2021
8d16cb0
fix all the things
SimonDanisch May 19, 2021
fc8a503
Merge pull request #101 from JuliaPlots/sd/the-new-makie
SimonDanisch May 19, 2021
ab712cc
bump minor version
jkrumbiegel May 20, 2021
1d80d63
use Makie instead of AbstractPlotting (#162)
SimonDanisch May 20, 2021
680142e
bump minor version
jkrumbiegel May 20, 2021
3a409a5
Set version to 0.3.6
github-actions[bot] May 20, 2021
cf2ae9e
jk/svg salting (#163)
jkrumbiegel May 20, 2021
3f253b5
bump patch version
jkrumbiegel May 20, 2021
d95103d
fix nan linesegments (#164)
jkrumbiegel May 21, 2021
9d57651
save and restore around atomic plots (#165)
jkrumbiegel May 21, 2021
d1a31e5
bump patch version
jkrumbiegel May 21, 2021
ca954d1
clean up shaders
SimonDanisch May 21, 2021
3045ec6
Merge pull request #191 from JuliaPlots/sd/cleanup
SimonDanisch May 21, 2021
603b151
Set version to 0.3.1
github-actions[bot] May 21, 2021
50b9688
fix missing outputs
SimonDanisch May 22, 2021
b87647f
Merge pull request #192 from JuliaPlots/sd/shader-fixes
SimonDanisch May 22, 2021
3b4b712
Set version to 0.3.2
github-actions[bot] May 22, 2021
f8a6fda
push screen in jsrender as well
SimonDanisch May 25, 2021
85b8bec
Merge pull request #102 from JuliaPlots/sd/add-screen
SimonDanisch May 25, 2021
e6923a4
Set version to 0.3.7
github-actions[bot] May 25, 2021
c8f2ea0
fixes for #104 and #103
SimonDanisch May 25, 2021
21a8019
Merge pull request #105 from JuliaPlots/sd/add-screen
SimonDanisch May 25, 2021
ccb2305
Set version to 0.3.8
github-actions[bot] May 25, 2021
303e635
Fix dpi (#107)
May 26, 2021
d726f60
simplify and document canvas size handling
piever May 26, 2021
b6de3bc
fix linewidth
SimonDanisch May 26, 2021
a04db5a
do not give inaccurate canvas dimensions
piever May 26, 2021
398fbd4
better defaults for pluto
SimonDanisch May 26, 2021
b87b270
Merge pull request #108 from JuliaPlots/pv/simplerdpi
May 26, 2021
90ee30f
wip
piever May 26, 2021
6cd4b6b
add back 1px
SimonDanisch May 26, 2021
503fde8
Merge remote-tracking branch 'origin/pv/dpi3' into sd/fix-linewidth
SimonDanisch May 26, 2021
b2fa0fa
fix comment
piever May 26, 2021
9f61169
Merge remote-tracking branch 'origin/pv/dpi3' into sd/fix-linewidth
SimonDanisch May 26, 2021
dbd36f0
avoid threejs helpers
piever May 26, 2021
88dd09c
never use setSize
piever May 26, 2021
c8d9ad0
handle mouse position
piever May 26, 2021
279e3cd
Merge remote-tracking branch 'origin/pv/dpi3' into sd/fix-linewidth
SimonDanisch May 26, 2021
b5dfb63
use webgl helpers
piever May 26, 2021
855387d
avoid setting initial canvas size
piever May 26, 2021
3e2e543
comment
piever May 26, 2021
027d33e
Merge remote-tracking branch 'origin/pv/dpi3' into sd/fix-linewidth
SimonDanisch May 26, 2021
d2f2aa0
fix remaining issues
SimonDanisch May 26, 2021
e9526fb
fix line width properly
SimonDanisch May 26, 2021
16a4d2b
fix linewidth
SimonDanisch May 26, 2021
36f9a9c
i guess it was the + 1 and not pixelRatio after all
SimonDanisch May 26, 2021
3d3f33c
make lines transparent sub 1px
SimonDanisch May 26, 2021
5c7f9f4
Merge pull request #109 from JuliaPlots/sd/fix-linewidth
SimonDanisch May 26, 2021
031f5df
Set version to 0.3.9
github-actions[bot] May 26, 2021
9e4fd32
make sure devicePixelRatio is checked exactly once
piever May 27, 2021
0784384
use MakieCore for core functions
SimonDanisch May 27, 2021
c1d96d9
only port most basic recipe functions
SimonDanisch May 27, 2021
f05de23
make sure tests at least run
SimonDanisch May 27, 2021
91157a4
test the standard makie versions
SimonDanisch May 27, 2021
34e8465
Merge pull request #10 from JuliaPlots/sd/testing
SimonDanisch May 27, 2021
e343ace
Update README.md
SimonDanisch May 27, 2021
8c27223
move more things to MakieCore
SimonDanisch May 28, 2021
86b728c
give recipes the same convert_argument treatment as scene plots
SimonDanisch May 28, 2021
53ad8f2
actually make recipe example work (#11)
SimonDanisch May 28, 2021
086f15a
fix normal transformation
ffreyer May 29, 2021
3c0282a
disable faceculling by default
jkrumbiegel May 30, 2021
10c636a
bump patch version
jkrumbiegel May 30, 2021
2fe658b
save activate state
jkrumbiegel May 30, 2021
7550659
bump patch version
jkrumbiegel May 30, 2021
589f569
Set `LIB_CAIRO` at module init time.
MichaelHatherly May 30, 2021
df43ab8
Use `libcairo` directly from jll.
MichaelHatherly May 31, 2021
c62a91e
Merge pull request #171 from MichaelHatherly/mh/libcairo-path
SimonDanisch May 31, 2021
46de0bb
Create RegisterAction.yml
SimonDanisch May 31, 2021
2a3342b
Set version to 0.5.5
github-actions[bot] May 31, 2021
22c5c57
actually make recipe example work (#13)
SimonDanisch Jun 1, 2021
8e93f40
Set version to 0.1.1
github-actions[bot] Jun 1, 2021
1db6820
add MakieCore compat
SimonDanisch Jun 2, 2021
676cde8
Merge branch 'master' into sd/makiecore
SimonDanisch Jun 2, 2021
ff14dcc
Update Makie.jl
SimonDanisch Jun 2, 2021
9ece453
add fallback overload
SimonDanisch Jun 2, 2021
e10b9e1
Merge pull request #193 from JuliaPlots/sd/vec2quaternion
SimonDanisch Jun 2, 2021
3762f68
Set version to 0.3.3
github-actions[bot] Jun 2, 2021
4f12e73
fix visibility
SimonDanisch Jun 2, 2021
d86a528
fix inf displayed as nan
SimonDanisch Jun 2, 2021
d13cf2c
make sure recipes keep working for packages relying on Makie only
SimonDanisch Jun 2, 2021
645c492
Set version to 0.1.2
github-actions[bot] Jun 2, 2021
24d9268
fix missing reference
SimonDanisch Jun 2, 2021
ce45c02
Merge branch 'sd/makiecore' of https://github.com/JuliaPlots/Makie.jl…
SimonDanisch Jun 2, 2021
31246f8
Merge branch 'master' into sd/makiecore
SimonDanisch Jun 2, 2021
6b3fbad
Merge pull request #172 from JuliaPlots/sd/fixes
SimonDanisch Jun 3, 2021
35b5101
Set version to 0.5.6
github-actions[bot] Jun 3, 2021
0aa020d
prepare move to Makie
SimonDanisch Jun 3, 2021
5d57bfb
prepare makie-merge
SimonDanisch Jun 3, 2021
d44c2fc
prepare merge into Makie
SimonDanisch Jun 3, 2021
fd92f38
prepare merge into Makie mono repository
SimonDanisch Jun 3, 2021
3a31c87
prepare merge into Makie mono repository
SimonDanisch Jun 3, 2021
da97698
get ready to merge into Makie mono repo
SimonDanisch Jun 3, 2021
53b55ee
Merge remote-tracking branch 'cairomakie/sd/merge'
SimonDanisch Jun 3, 2021
73d2a6a
Merge remote-tracking branch 'glmakie/sd/merge'
SimonDanisch Jun 3, 2021
e53b821
Merge remote-tracking branch 'makiecore/sd/merge'
SimonDanisch Jun 3, 2021
457283d
Merge remote-tracking branch 'wglmakie/sd/merge'
SimonDanisch Jun 3, 2021
dad0463
Merge remote-tracking branch 'makierecipes/sd/merge'
SimonDanisch Jun 3, 2021
1c7d838
update doc build etc
SimonDanisch Jun 3, 2021
12d602e
shorten
SimonDanisch Jun 3, 2021
1e4fb80
checkout correct packages, fix typo
SimonDanisch Jun 3, 2021
423d7bd
clean up RecipesBase deps
SimonDanisch Jun 3, 2021
74fd8be
Merge remote-tracking branch 'origin/sd/makiecore' into sd/monorepo
SimonDanisch Jun 3, 2021
39112bc
dont dev makie itself
SimonDanisch Jun 3, 2021
ed5cfe4
dont mutate test project
SimonDanisch Jun 3, 2021
d27c887
dev inside tests
SimonDanisch Jun 3, 2021
a77d050
remove makierecipes for now
SimonDanisch Jun 3, 2021
37b9023
fix dev
SimonDanisch Jun 3, 2021
1636768
Merge pull request #111 from JuliaPlots/pv/zoom
SimonDanisch Jun 4, 2021
cdda771
Merge branch 'master' into sd/merge
SimonDanisch Jun 4, 2021
19f7137
Merge remote-tracking branch 'wglmakie/sd/merge' into sd/monorepo
SimonDanisch Jun 4, 2021
49ad825
add fonts to assets
SimonDanisch Jun 4, 2021
0f2fb57
clean up docs +assets +add offline wglmakie export
SimonDanisch Jun 4, 2021
973187f
Update Artifacts.toml
SimonDanisch Jun 4, 2021
6061ebd
Set version to 0.3.10
github-actions[bot] Jun 5, 2021
708ce89
merge master
SimonDanisch Jun 5, 2021
879e01b
teach Compathelper to monorepo
SimonDanisch Jun 5, 2021
485894d
could this work?
SimonDanisch Jun 5, 2021
df557b0
no makie
SimonDanisch Jun 5, 2021
b5b7aae
remove manifest
SimonDanisch Jun 5, 2021
1a2da93
remove docs
SimonDanisch Jun 5, 2021
7d4ceb3
do we need instantiate?
SimonDanisch Jun 5, 2021
dfe88c9
🤷‍♀️
SimonDanisch Jun 5, 2021
d0622af
¯\_(ツ)_/¯
SimonDanisch Jun 5, 2021
4a9f20a
test in own pkg env
SimonDanisch Jun 5, 2021
9d7901a
convert marker
SimonDanisch Jun 5, 2021
a9c02e3
Merge branch 'master' into sd/monorepo
SimonDanisch Jun 5, 2021
27c15ad
add correct conversion
SimonDanisch Jun 5, 2021
d8c146a
add fastpath for images on regular grid
SimonDanisch Jun 7, 2021
cde0175
fix contour(fillrange=true) by converting to range
SimonDanisch Jun 7, 2021
15cf20e
Merge pull request #174 from JuliaPlots/sd/faster-heatmaps
SimonDanisch Jun 7, 2021
7caddc8
Set version to 0.5.7
github-actions[bot] Jun 7, 2021
e808d80
update tests
SimonDanisch Jun 8, 2021
1e9d894
one tex atlas per resolution
SimonDanisch Jun 8, 2021
b4a07c7
use correct global
SimonDanisch Jun 8, 2021
eceda7a
more activate + setting resolution explicitely
SimonDanisch Jun 8, 2021
449e0a5
draw rects for heatmap for vector backends
SimonDanisch Jun 9, 2021
a663652
update comments
SimonDanisch Jun 9, 2021
4d2c0a3
Merge remote-tracking branch 'origin/sd/fix-rotated-fonts' into sd/mo…
SimonDanisch Jun 9, 2021
ac345ce
properly check surface type
SimonDanisch Jun 9, 2021
e62fcd4
Merge pull request #175 from JuliaPlots/sd/fix-fastpath
SimonDanisch Jun 10, 2021
538005f
Set version to 0.5.8
github-actions[bot] Jun 10, 2021
1964b13
fix wrongly sized range
SimonDanisch Jun 10, 2021
443ffe7
Merge pull request #176 from JuliaPlots/sd/fix-hmap
SimonDanisch Jun 10, 2021
c7dec61
Set version to 0.5.9
github-actions[bot] Jun 10, 2021
513780c
use best filtering when possible and use filter when downsampling
SimonDanisch Jun 11, 2021
332e773
spelling mistake
SimonDanisch Jun 11, 2021
e8fd585
Apply suggestions from code review
SimonDanisch Jun 11, 2021
ccb4531
Merge branch 'master' into sd/monorepo
SimonDanisch Jun 11, 2021
0bb9696
Merge pull request #179 from JuliaPlots/sd/better-filter
SimonDanisch Jun 11, 2021
a3be0b1
Set version to 0.5.10
github-actions[bot] Jun 11, 2021
cb1fbf8
Merge branch 'master' into sd/merge
SimonDanisch Jun 11, 2021
8d31c4d
Merge branch 'master' into sd/merge
SimonDanisch Jun 11, 2021
d6bbee2
fix tests
SimonDanisch Jun 11, 2021
35cb287
Merge remote-tracking branch 'cairomakie/sd/merge' into sd/monorepo
SimonDanisch Jun 11, 2021
6e13b93
fix tests
SimonDanisch Jun 11, 2021
90db6b7
move backend tests to own workflow
SimonDanisch Jun 12, 2021
e170b5b
add referencetests
SimonDanisch Jun 12, 2021
cb50493
remove hacks
SimonDanisch Jun 12, 2021
cf10746
also upload glmakie tests
SimonDanisch Jun 12, 2021
7863da4
dont use headless action
SimonDanisch Jun 12, 2021
6e5cd12
backends aren't needed anymore
SimonDanisch Jun 12, 2021
66edd42
clean up urls + readmes
SimonDanisch Jun 12, 2021
a6d7589
clean up test project
SimonDanisch Jun 12, 2021
7765230
fix unit tests
SimonDanisch Jun 12, 2021
0195450
Merge remote-tracking branch 'wglmakie/sd/merge' into sd/monorepo
SimonDanisch Jun 12, 2021
a119ba9
increase versions
SimonDanisch Jun 12, 2021
faa801f
set backends to exact Makie version
SimonDanisch Jun 12, 2021
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
2 changes: 1 addition & 1 deletion .github/workflows/CompatHelper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ jobs:
- name: CompatHelper.main()
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: julia -e 'using CompatHelper; CompatHelper.main()'
run: julia -e 'using CompatHelper; CompatHelper.main(; subdirs=["", "CairoMakie", "GLMakie", "MakieCore", "WGLMakie"])'
63 changes: 63 additions & 0 deletions .github/workflows/cairomakie.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: CairoMakie CI
on:
pull_request:
paths-ignore:
- 'docs/**'
- '*.md'
branches:
- master
push:
paths-ignore:
- 'docs/**'
- '*.md'
branches:
- master
tags: '*'
jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
version:
- '1.5'
- '1.6'
os:
- ubuntu-latest
arch:
- x64
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: actions/cache@v1
env:
cache-name: cache-artifacts
with:
path: ~/.julia/artifacts
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
restore-keys: |
${{ runner.os }}-test-${{ env.cache-name }}-
${{ runner.os }}-test-
${{ runner.os }}-
- name: Install Julia dependencies
shell: julia --project=monorepo {0}
run: |
using Pkg;
# dev mono repo versions
pkg"dev . MakieCore CairoMakie ReferenceTests"
- name: Run the tests
run: julia --project=monorepo -e 'using Pkg; Pkg.test("CairoMakie", coverage=true)'
- name: Upload test Artifacts
uses: actions/upload-artifact@v2
with:
name: ReferenceImages
path: ./test/recorded
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v1
with:
file: lcov.info
14 changes: 10 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI
name: Makie CI
on:
pull_request:
paths-ignore:
Expand All @@ -21,7 +21,7 @@ jobs:
fail-fast: false
matrix:
version:
- '1.3'
- '1.5'
- '1.6'
os:
- ubuntu-latest
Expand All @@ -44,8 +44,14 @@ jobs:
${{ runner.os }}-test-${{ env.cache-name }}-
${{ runner.os }}-test-
${{ runner.os }}-
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
- name: Install Julia dependencies
shell: julia --project=monorepo {0}
run: |
using Pkg;
# dev mono repo versions
pkg"dev . MakieCore"
Pkg.test("Makie"; coverage=true)

- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v1
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ jobs:
# force the most recent registry to avoid older cached versions
pkg"registry add https://github.com/JuliaRegistries/General";
pkg"registry up General";
Pkg.develop(PackageSpec(path=pwd()));
pkg"add Documenter#master; instantiate"'
# dev mono repo versions
pkg"dev . MakieCore CairoMakie WGLMakie GLMakie; add Documenter#master; instantiate"'
- name: Build and deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
66 changes: 66 additions & 0 deletions .github/workflows/glmakie.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: GLMakie CI
on:
pull_request:
paths-ignore:
- 'docs/**'
- '*.md'
branches:
- master
push:
paths-ignore:
- 'docs/**'
- '*.md'
branches:
- master
tags: '*'
jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
version:
- '1.5'
- '1.6'
os:
- ubuntu-18.04
arch:
- x64
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: actions/cache@v1
env:
cache-name: cache-artifacts
with:
path: ~/.julia/artifacts
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
restore-keys: |
${{ runner.os }}-test-${{ env.cache-name }}-
${{ runner.os }}-test-
${{ runner.os }}-
- run: sudo apt-get update && sudo apt-get install -y xorg-dev mesa-utils xvfb libgl1 freeglut3-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libxext-dev
- name: Install Julia dependencies
shell: julia --project=monorepo {0}
run: |
using Pkg;
# dev mono repo versions
pkg"dev . MakieCore GLMakie ReferenceTests"
- name: Run the tests
run: DISPLAY=:0 xvfb-run -s '-screen 0 1024x768x24' julia --project=monorepo -e 'using Pkg; Pkg.test("GLMakie", coverage=true)'
- name: Upload test Artifacts
uses: actions/upload-artifact@v2
with:
name: ReferenceImages
path: |
./test/recorded
./test/recorded_glmakie
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v1
with:
file: lcov.info
64 changes: 64 additions & 0 deletions .github/workflows/wglmakie.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: WGLMakie CI
on:
pull_request:
paths-ignore:
- 'docs/**'
- '*.md'
branches:
- master
push:
paths-ignore:
- 'docs/**'
- '*.md'
branches:
- master
tags: '*'
jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
version:
- '1.5'
- '1.6'
os:
- ubuntu-latest
arch:
- x64
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- run: sudo apt-get update && sudo apt-get install -y xorg-dev mesa-utils xvfb libgl1 freeglut3-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libxext-dev
- name: Install Julia dependencies
shell: julia --project=monorepo {0}
run: |
using Pkg;
# dev mono repo versions
pkg"dev . MakieCore WGLMakie ReferenceTests"
- name: Run the tests
run: DISPLAY=:0 xvfb-run -s '-screen 0 1024x768x24' julia --project=monorepo -e 'using Pkg; Pkg.test("WGLMakie", coverage=true)'
- name: Upload test Artifacts
uses: actions/upload-artifact@v2
with:
name: ReferenceImages
path: ./test/recorded
- uses: actions/cache@v1
env:
cache-name: cache-artifacts
with:
path: ~/.julia/artifacts
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
restore-keys: |
${{ runner.os }}-test-${{ env.cache-name }}-
${{ runner.os }}-test-
${{ runner.os }}-
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v1
with:
file: lcov.info
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,13 @@ src/.cache
src/logo.png
**/._*
Manifest.toml
!docs/Manifest.toml
/build

\.DS_Store
CairoMakie/src/display.*

WGLMakie/test/recorded/
GLMakie/test/recorded/
GLMakie/test/recorded_glmakie/
CairoMakie/test/recorded/
monorepo
22 changes: 22 additions & 0 deletions CairoMakie/LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
The CairoMakie.jl package is licensed under the MIT "Expat" License:

> Copyright (c) 2017: SimonDanisch.
>
> Permission is hereby granted, free of charge, to any person obtaining a copy
> of this software and associated documentation files (the "Software"), to deal
> in the Software without restriction, including without limitation the rights
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
> copies of the Software, and to permit persons to whom the Software is
> furnished to do so, subject to the following conditions:
>
> The above copyright notice and this permission notice shall be included in all
> copies or substantial portions of the Software.
>
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
> SOFTWARE.
>
36 changes: 36 additions & 0 deletions CairoMakie/Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name = "CairoMakie"
uuid = "13f3f980-e62b-5c42-98c6-ff1f3baf88f0"
author = ["Simon Danisch <sdanisch@gmail.com>"]
version = "0.6"

[deps]
Base64 = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"
Cairo = "159f3aea-2a34-519c-b102-8c37f9878175"
Colors = "5ae59095-9a9b-59fe-a467-6f913c188581"
FFTW = "7a1cc6ca-52ef-59f5-83cd-3a7055c09341"
FileIO = "5789e2e9-d7fb-5bc7-8068-2c6fae9b9549"
FreeType = "b38be410-82b0-50bf-ab77-7b57e271db43"
GeometryBasics = "5c1252a2-5f33-56bf-86c9-59e7332b4326"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
Makie = "ee78f7c6-11fb-53f2-987a-cfe4a2b5a57a"
SHA = "ea8e919c-243c-51af-8825-aaa63cd721ce"
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"

[compat]
Cairo = "1.0.4"
Colors = "0.10, 0.11, 0.12"
FFTW = "1"
FileIO = "1.1"
FreeType = "3, 4.0"
GeometryBasics = "0.2, 0.3"
Makie = "=0.14.0"
StaticArrays = "0.12, 1.0"
julia = "1.3"

[extras]
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
ReferenceTests = "d37af2e0-5618-4e00-9939-d430db56ee94"

[targets]
test = ["Test", "Pkg", "ReferenceTests"]
49 changes: 49 additions & 0 deletions CairoMakie/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# CairoMakie

The Cairo Backend for Makie

Read the docs for Makie and it's backends [here](http://makie.juliaplots.org/.dev)


## Issues

Please file all issues in [Makie.jl](https://github.com/JuliaPlots/Makie.jl/issues/new), and mention CairoMakie in the issue text.

## Limitations

CairoMakie is intended as a backend for static vector graphics at publication quality. Therefore, it does not support the interactive features of GLMakie and is slower when visualizing large amounts data. 3D plots are currently not available because of the inherent limitations of 2D vector graphics.

## Saving

Makie overloads the FileIO interface, so you can save a Scene `scene` as `save("filename.extension", scene)`. CairoMakie supports saving to PNG, PDF, SVG and EPS.

You can scale the size of the output figure, without changing its appearance by passing keyword arguments to `save`. PNGs can be scaled by `px_per_unit` (default 1) and vector graphics (SVG, PDF, EPS) can be scaled by `pt_per_unit`.

```julia
save("plot.svg", scene, pt_per_unit = 0.5) # halve the dimensions of the resulting SVG
save("plot.png", scene, px_per_unit = 2) # double the resolution of the resulting PNG
```

## Using CairoMakie with Gtk.jl

You can render onto a GtkCanvas using Gtk, and use that as a display for your scenes.

```julia
using Gtk, CairoMakie, Makie

canvas = @GtkCanvas()
window = GtkWindow(canvas, "Makie", 500, 500)

function drawonto(canvas, scene)
@guarded draw(canvas) do _
resize!(scene, Gtk.width(canvas), Gtk.height(canvas))
screen = CairoMakie.CairoScreen(scene, Gtk.cairo_surface(canvas), getgc(canvas), nothing)
CairoMakie.cairo_draw(screen, scene)
end
end

scene = heatmap(rand(50, 50)) # or something

drawonto(canvas, scene)
show(canvas); # trigger rendering
```
Loading