# Different Results When Saving Plots as png or pdf

**URL:** https://discourse.julialang.org/t/different-results-when-saving-plots-as-png-or-pdf/54169
**Category:** General Usage
**Tags:** plotting
**Created:** [January 29, 2021, 8:50am UTC](https://discourse.julialang.org/t/different-results-when-saving-plots-as-png-or-pdf/54169 "2021-01-29T08:50:58Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![fermion4](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fermion4/32/17160_2.png) [@fermion4](https://discourse.julialang.org/u/fermion4)
#### Post date: [January 29, 2021, 8:50am UTC](https://discourse.julialang.org/t/different-results-when-saving-plots-as-png-or-pdf/54169/1 "2021-01-29T08:50:58Z")

</div>

I try to save my plots as pdf files for a publication.  
Before I used the png file format and everything worked as expected, as seen in the first figure. But when I use the same code and save my plots as a pdf or svg, for example the ` markerstrokewidth=0` is ignored as can be seen in the second figure. What can I do to fix this?  
Thanks in advance!

```julia
using Plots
plt = plot(rand(10), seriestype=:scatter, markerstrokewidth=0)
savefig(plt, "my_plot.pdf")
savefig(plt, "my_plot.png")

```

![my_plot](https://global.discourse-cdn.com/julialang/original/3X/5/d/5d53dd6f633ba5ecb963a6d8b3ab67bca747277a.png)

 ![Auswahl_012](https://global.discourse-cdn.com/julialang/original/3X/b/c/bc2ae74c4a2f3166ae7a1098ef1aec24d13080cf.png)

---

<div class="post-metadata">

### Author: ![oheil](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oheil/32/220745_2.png) [@oheil](https://discourse.julialang.org/u/oheil)
#### Post date: [January 29, 2021, 9:08am UTC](https://discourse.julialang.org/t/different-results-when-saving-plots-as-png-or-pdf/54169/2 "2021-01-29T09:08:41Z")

</div>

There is an open issue with some workaround proposals:  
[https://github.com/JuliaPlots/Plots.jl/issues/2494](https://github.com/JuliaPlots/Plots.jl/issues/2494)  
I didn’t check but perhaps there is something which helps.

---

<div class="post-metadata">

### Author: ![fermion4](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fermion4/32/17160_2.png) [@fermion4](https://discourse.julialang.org/u/fermion4)
#### Post date: [January 29, 2021, 12:06pm UTC](https://discourse.julialang.org/t/different-results-when-saving-plots-as-png-or-pdf/54169/3 "2021-01-29T12:06:23Z")

</div>

Thanks I was able to use the workarounds to fix my problems 🙂
