You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unitful integration works great but not with twinx().
I originally tried it with different units along the y axis. However, it does not work with the same units either. It would be great if different units along the y worked as well. Here is a mwe you can try:
The other issue I came across was when putting twinx() plots with one needing aspect_ratio set to equal and the other not set. Here is a plot where it happens to work out and the ratios align.
However, if I have ratios that conflict, the two plots do not align properly anymore. You can see the red and blue plot now goes outside it's x_values that were correct in the first plot.
Backends
This bug occurs on ( insert x below )
Backend
yes
no
untested
gr (default)
x
pythonplot
x
plotlyjs
x
pgfplotsx
x
unicodeplots
x
inspectdr
x
gaston
x
Versions
Plots.jl version: 1.40.8
Backend version (]st -m <backend(s)>):
Output of versioninfo():
Julia Version 1.10.5
Commit 6f3fdf7b36 (2024-08-27 14:19 UTC)
Build Info:
Official https://julialang.org/ release
Platform Info:
OS: Windows (x86_64-w64-mingw32)
CPU: 16 × 11th Gen Intel(R) Core(TM) i7-11850H @ 2.50GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-15.0.7 (ORCJIT, tigerlake)
Threads: 1 default, 0 interactive, 1 GC (on 16 virtual cores)
The text was updated successfully, but these errors were encountered:
Details
Issue 1
Unitful integration works great but not with twinx().
I originally tried it with different units along the y axis. However, it does not work with the same units either. It would be great if different units along the y worked as well. Here is a mwe you can try:
Issue 2
The other issue I came across was when putting twinx() plots with one needing aspect_ratio set to equal and the other not set. Here is a plot where it happens to work out and the ratios align.
However, if I have ratios that conflict, the two plots do not align properly anymore. You can see the red and blue plot now goes outside it's x_values that were correct in the first plot.
Backends
This bug occurs on ( insert
x
below )Versions
Plots.jl version: 1.40.8
Backend version (
]st -m <backend(s)>
):Output of
versioninfo()
:Julia Version 1.10.5
Commit 6f3fdf7b36 (2024-08-27 14:19 UTC)
Build Info:
Official https://julialang.org/ release
Platform Info:
OS: Windows (x86_64-w64-mingw32)
CPU: 16 × 11th Gen Intel(R) Core(TM) i7-11850H @ 2.50GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-15.0.7 (ORCJIT, tigerlake)
Threads: 1 default, 0 interactive, 1 GC (on 16 virtual cores)
The text was updated successfully, but these errors were encountered: