# \[ANN\] PlotlySave: saving images from PlotlyBase without PlotlyJS

**URL:** https://discourse.julialang.org/t/ann-plotlysave-saving-images-from-plotlybase-without-plotlyjs/75863
**Category:** Package Announcements
**Created:** [February 5, 2022, 3:48pm UTC](https://discourse.julialang.org/t/ann-plotlysave-saving-images-from-plotlybase-without-plotlyjs/75863 "2022-02-05T15:48:22Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![hhaensel](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/hhaensel/32/1207_2.png) [@hhaensel](https://discourse.julialang.org/u/hhaensel)
#### Post date: [February 5, 2022, 3:48pm UTC](https://discourse.julialang.org/t/ann-plotlysave-saving-images-from-plotlybase-without-plotlyjs/75863/1 "2022-02-05T15:48:23Z")

</div>

# PlotlySave

Package to implement PlotlyBase together with a `save()` function independently  
of [PlotlyJS](https://github.com/sglyon/PlotlyJS.jl).

## Usage

PlotlySave reexports PlotlyBase so it is sufficient to do

```julia

using PlotlySave

p1 = Plot(scatter(x=1:10, y=2:11))
save("test.png", p1)

```

## Background

Kaleido has for long been a part of PlotlyBase but has recently been removed, due to non-availability on some platforms and due to extra loadtime (more information, e.g. [here](https://github.com/sglyon/PlotlyBase.jl/issues/52)). In order not to interfere with the current version of PlotlyJS this package exports `save` from FileIO with inverted order of filename and plot compared to savefig. If you want to use old scripts with existing `savefig()` commands, you can import it via:

```julia
import PlotlySave.savefig

```
