Skip to content
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

Update plotly #1911

Merged
merged 3 commits into from Feb 3, 2021
Merged

Update plotly #1911

merged 3 commits into from Feb 3, 2021

Conversation

pfitzseb
Copy link
Member

@pfitzseb pfitzseb commented Feb 3, 2021

and fix auto-resizing for Plotly and VegaLite.

Fixes #1716.

@pfitzseb
Copy link
Member Author

pfitzseb commented Feb 3, 2021

With this you can get automatically resized plots with

plot(xTest, yTest, fEval, st=:surface, size=(0,0))

or

@vlplot(
    :point,
    x=:Horsepower,
    y=:Miles_per_Gallon,
    color=:Origin
)

whereas

plot(xTest, yTest, fEval, st=:surface)

or

@vlplot(
    :point,
    x=:Horsepower,
    y=:Miles_per_Gallon,
    color=:Origin,
    width=400,
    height=400
)

will show a statically sized plot.

src/interactive/plots.ts Outdated Show resolved Hide resolved
@davidanthoff davidanthoff added this to the Next Patch milestone Feb 3, 2021
@davidanthoff davidanthoff merged commit 90e3da3 into master Feb 3, 2021
@davidanthoff davidanthoff deleted the sp/fix-plotly branch February 3, 2021 22:41
@oppo-source oppo-source removed the request for review from a team April 16, 2021 07:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Surface plot not working in plotly or plotlyjs backend
2 participants