# Publication-ready plots

**URL:** https://discourse.julialang.org/t/publication-ready-plots/618
**Category:** Visualization
**Created:** [November 28, 2016, 6:04pm UTC](https://discourse.julialang.org/t/publication-ready-plots/618 "2016-11-28T18:04:35Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Balinus](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/balinus/32/243_2.png) [@Balinus](https://discourse.julialang.org/u/Balinus)
#### Post date: [November 28, 2016, 6:04pm UTC](https://discourse.julialang.org/t/publication-ready-plots/618/1 "2016-11-28T18:04:35Z")

</div>

Hello,

is there any “how-to” concerning publication-ready plots? For example, I used these commands, but only got a 600x400 pixels png.

```julia
using Plots
default(show = true)
plot(rand(10,4), linestyle=[:solid :dash])

savefig("test.png")

```

I tried resizing manually the figure and then using “savefig” command, but it didn’t worked.

Thanks for any help!

edit - I know I can use eps output. But sometimes, some journal just does not accept them and insist on tiff or other bitmap format.

---

<div class="post-metadata">

### Author: ![tbreloff](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tbreloff/32/68_2.png) [@tbreloff](https://discourse.julialang.org/u/tbreloff)
#### Post date: [November 28, 2016, 6:13pm UTC](https://discourse.julialang.org/t/publication-ready-plots/618/2 "2016-11-28T18:13:51Z")

</div>

Can you be more specific about what you’d like? Some possible attributes that you’ll want: `size` and `dpi` (see [https://juliaplots.github.io/attributes/#plot](https://juliaplots.github.io/attributes/#plot)). In addition, some backends are more “publication-ready” than others (see [https://juliaplots.github.io/backends/](https://juliaplots.github.io/backends/)). Feel free to ask questions in the gitter chat as well: [tbreloff/Plots.jl - Gitter](https://gitter.im/tbreloff/Plots.jl), though you should read through the docs first.

---

<div class="post-metadata">

### Author: ![Balinus](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/balinus/32/243_2.png) [@Balinus](https://discourse.julialang.org/u/Balinus)
#### Post date: [November 28, 2016, 6:22pm UTC](https://discourse.julialang.org/t/publication-ready-plots/618/3 "2016-11-28T18:22:20Z")

</div>

Thanks!

size and dpi was indeed what I was looking for. With these attributes, I can work my way 🙂

---

<div class="post-metadata">

### Author: ![lobingera](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lobingera/32/211_2.png) [@lobingera](https://discourse.julialang.org/u/lobingera)
#### Post date: [November 28, 2016, 6:47pm UTC](https://discourse.julialang.org/t/publication-ready-plots/618/4 "2016-11-28T18:47:47Z")

</div>

> [@tbreloff](#):
>
> In addition, some backends are more “publication-ready” than others (see [https://juliaplots.github.io/backends/](https://juliaplots.github.io/backends/)).

How do i see the publication readyness in this?

---

<div class="post-metadata">

### Author: ![cortner](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cortner/32/204_2.png) [@cortner](https://discourse.julialang.org/u/cortner)
#### Post date: [November 28, 2016, 7:12pm UTC](https://discourse.julialang.org/t/publication-ready-plots/618/5 "2016-11-28T19:12:05Z")

</div>

e.g. the `PGFPlots` backend perfectly matches the style of latex documents.

---

<div class="post-metadata">

### Author: ![jheinen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jheinen/32/2787_2.png) [@jheinen](https://discourse.julialang.org/u/jheinen)
#### Post date: [November 28, 2016, 7:51pm UTC](https://discourse.julialang.org/t/publication-ready-plots/618/6 "2016-11-28T19:51:43Z")

</div>

IMO publication readyness is not a question of (image) resolution. Instead, you should use vector graphics formats, e,g, SVG, PDF, PS, PGF (all supported in `gr()`, but also in other `Plots` backends …)

---

<div class="post-metadata">

### Author: ![Balinus](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/balinus/32/243_2.png) [@Balinus](https://discourse.julialang.org/u/Balinus)
#### Post date: [November 28, 2016, 7:54pm UTC](https://discourse.julialang.org/t/publication-ready-plots/618/7 "2016-11-28T19:54:05Z")

</div>

I agree.

I’m generally using eps files, but strangely some journals in my field still insist on tiff files. I guess that I could simply use Inkscape and convert the eps file into tiff files.

---

<div class="post-metadata">

### Author: ![jheinen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jheinen/32/2787_2.png) [@jheinen](https://discourse.julialang.org/u/jheinen)
#### Post date: [November 28, 2016, 8:01pm UTC](https://discourse.julialang.org/t/publication-ready-plots/618/8 "2016-11-28T20:01:25Z")

</div>

FYI: The `gr()` SVG output can be edited in Inkscape and probably leads to better results …
