diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 57d04af..3897f3f 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -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: @@ -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 diff --git a/src/PythonPlot.jl b/src/PythonPlot.jl index 2e42ff0..deb7fa4 100755 --- a/src/PythonPlot.jl +++ b/src/PythonPlot.jl @@ -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...) @@ -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...)