Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
18 changes: 14 additions & 4 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,23 @@ jobs:
- windows-latest
arch:
- x64
- arm64
exclude:
- os: macOS-latest
arch: x64
- os: windows-latest
arch: arm64
- os: ubuntu-latest
arch: arm64
- os: macOS-latest
version: '1.6'
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
- uses: actions/checkout@v7
- uses: julia-actions/setup-julia@v3
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: actions/cache@v1
- uses: actions/cache@v3
env:
cache-name: cache-artifacts
with:
Expand All @@ -41,6 +51,6 @@ jobs:
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v1
- uses: codecov/codecov-action@v7
with:
file: lcov.info
7 changes: 6 additions & 1 deletion src/PythonPlot.jl
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,11 @@ for f in plt_funcs
end
end

# convert axis(...) return value to Julia Float64 tuple
@doc LazyHelp(pyplot,"axis") function axis(args...; kws...)
return pyconvert(NTuple{4,Float64}, pycall(pyplot."axis", args...; kws...))
end

# rename to avoid type piracy:
@doc LazyHelp(pyplot,"step") plotstep(x, y; kws...) = pycall(pyplot.step, x, y; kws...)

Expand All @@ -199,7 +204,7 @@ plotclose(f::AbstractString) = pyplot.close(f)

# rename to avoid type piracy:
@doc LazyHelp(pyplot,"fill") plotfill(x::AbstractArray,y::AbstractArray, args...; kws...) =
pycall(pyplot.fill, PyAny, x, y, args...; kws...)
pycall(pyplot.fill, x, y, args...; kws...)

# consistent capitalization with mplot3d
@doc LazyHelp(pyplot,"hist2d") hist2D(args...; kws...) = pycall(pyplot.hist2d, args...; kws...)
Expand Down
Loading