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
If by using layout height is increased the resulting plot is displayed inside a scrolling window. Here is the MWE
using PlotlyLight, DataFrames
n =100
df =DataFrame(x=rand(n), y=rand(n))
layout =Config(height=800)
trace =Config(x=df.x, y=df.y, type="scatter", mode="markers")
Plot([trace], layout)
In python jupyter's output cell adapts to the size of the plot, resulting in a fully visible plot. Is this something that could be addressed from the package?
Jupyter Lab = 4.2.5
Julia = 1.11
The text was updated successfully, but these errors were encountered:
Looking at the produced ipynb file it seems that by default the plot is using IFrame. So if I override show to force rendering using html_div() I can plot the charts where the height is honored.
using PlotlyLight
function Base.show(io::IO, ::MIME"text/html", o::Plot)
show(io, MIME("text/html"), PlotlyLight.html_div(o))
end
trace =Config(type="scatter", x =1:20, y =cumsum(randn(20)), mode="lines+markers")
layout =Config(height=800)
p =Plot(trace, layout)
If by using layout
height
is increased the resulting plot is displayed inside a scrolling window. Here is the MWEIn python jupyter's output cell adapts to the size of the plot, resulting in a fully visible plot. Is this something that could be addressed from the package?
Jupyter Lab = 4.2.5
Julia = 1.11
The text was updated successfully, but these errors were encountered: