JuliaPlots/Plots.jl

[FR] rework limits when `aspect_ratio=:equal` for pyplot

Open

#4.534 geöffnet am 21. Nov. 2022

Auf GitHub ansehen
 (26 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Julia (381 Forks)batch import
PyPlotenhancementhelp wanted

Repository-Metriken

Stars
 (1.943 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 13T 6h) (2 gemergte PRs in 30 T)

Beschreibung

Details

aspect_ratio=:equal is broken for pyplot. Works for GR. See images below. Code:

using Plots; pyplot()
plot([1,2,3], [1,100,1000]; aspect_ratio=:equal)

GR: image pyplot: image

Backends

This bug occurs on ( insert x below )

Backend yes no untested
gr (default) x
pyplot x
plotlyjs x
pgfplotsx x
unicodeplots x
inspectdr x
gaston x

Versions

Plots.jl version: v1.36.2 Backend version (]st -m <backend(s)>): GR v0.69.5, PyPlot v2.11.0, Output of versioninfo():

julia> versioninfo()
Julia Version 1.8.0
Commit 5544a0fab76 (2022-08-17 13:38 UTC)
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 8 × Intel(R) Core(TM) i7-9700 CPU @ 3.00GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-13.0.1 (ORCJIT, skylake)
  Threads: 1 on 8 virtual cores

Contributor Guide