-
Notifications
You must be signed in to change notification settings - Fork 250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gadfly plot needs to be scrolled #1561
Comments
What is the issue? |
Might be similar to JuliaPlots/Plots.jl#3559 |
Hi @fonsp! The problem is the following. Compose 0.9.2 returns an This is an example with Compose 0.9.2: The code is: begin
import Pkg
Pkg.activate(mktempdir())
Pkg.add([
Pkg.PackageSpec(name="Compose", version="0.9.2"),
Pkg.PackageSpec(name="Gadfly", version="1"),
])
using Compose, Gadfly
end
plot([sin, cos], 0, 2pi) |
Yes, that's the same issue with the |
It seems that the next Pluto version will solve this problem: fonsp/Pluto.jl#1789 🎉 🙂 |
Nice! But do take a look at JuliaPlots/Plots.jl#3559 : because Gadfly is outputting a full HTML document, instead of an HTML snippet, environments like pluto have to render it inside an iframe instead of directly embedding it in the page. This hurts performance, especially when doing interactivity. The same patch as JuliaPlots/Plots.jl#3559 should work here |
Ah I see that you made GiovineItalia/Compose.jl@3dbc5a0 which is based on fonsp/Pluto.jl#546 (comment) |
I tried reverting the change: GiovineItalia/Compose.jl#429 but the scripts still don't work... let's leave it then :) |
I am having this problem too (using most recent versions) which is different from the issue in #1572. In addition to the scroll bars, the non-ASCII letters do not render correctly. Pluto Notebook ScreenshotPluto Static HTML Export Screenshot |
It is working fine for me (using the last stable version of Gadfly and Pluto). |
Which browser are you using? I'm in Google Chrome (Ubuntu). |
Interesting! I am on Windows 11. The HTML file renders correctly in Firefox, but not in Edge or Chrome. |
Indeed, the problem is still there for static HTML. On MacOS that happens when rendering in Chrome, but renders well in both Firefox and Safari. |
Hi,
I think this is related to the use of HTML in Pluto that has been recently merged/tagged (Compose 0.9.3): GiovineItalia/Compose.jl@3dbc5a0
For some reason, the iframe does not have the correct size in Pluto:
@fonsp, do you know what could it be the problem here?
The Pluto notebook is:
The text was updated successfully, but these errors were encountered: