Skip to content

Triangle fill color applied everywhere after zooming in (xlims/ylims) and saving (savefig) #5209

@schillic

Description

@schillic

Details

julia> using Plots
julia> x, y = ([1000.1, -1000.1, 1000.1, 1000.1], [1000.1, 1000.1, -1000.1, 1000.1]);  # large triangle
julia> plot(x, y; seriestype=:shape, xlims=(-0.1, 0.1), ylims=(-0.1, 0.1))  # plot looks as expected
Image
julia> savefig("1.png")  # result is unexpected
Image

Backends

This bug occurs on ( insert x below )

Backend yes no untested
gr (default) x
unicodeplots x
pythonplot x
pgfplotsx x
plotlyjs x
plotly x
gaston x

Versions

Plots.jl version: v1.41.3
Backend version (]st -m <backend(s)>): GR v0.73.19
Output of versioninfo():

Julia Version 1.12.3
Commit 966d0af0fdf (2025-12-15 11:20 UTC)
Build Info:
  Official https://julialang.org release
Platform Info:
  OS: Linux (x86_64-linux-gnu)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions