PlotlyKaleido.jl

Author JuliaPlots
Popularity
10 Stars
Updated Last
1 Year Ago
Started In
August 2022

PlotlyKaleido.jl

PlotlyKaleido.jl is for saving Plotly.js plots in a variety of formats using Kaleido.

julia> PlotlyKaleido.ALL_FORMATS
7-element Vector{String}:
 "png"
 "jpeg"
 "webp"
 "svg"
 "pdf"
 "eps"
 "json"

This code was originally part of PlotlyJS.jl.

Usage

using PlotlyKaleido

import PlotlyLight, EasyConfig, PlotlyJS

p1 = PlotlyLight.Plot(EasyConfig.Config(x = rand(10)))

p2 = PlotlyJS.plot(PlotlyJS.scatter(x = rand(10)))

# PlotlyKaleido is agnostic about which package you use to make Plotly plots!
PlotlyKaleido.savefig(p1, "plot1.png")
PlotlyKaleido.savefig(p2, "plot2.png")

Used By Packages