# Problem with Plotting

**URL:** <https://discourse.julialang.org/t/problem-with-plotting/71889>\
**Category:** Visualization\
**Tags:** plots\
**Created:** [November 22, 2021, 10:48am UTC](https://discourse.julialang.org/t/problem-with-plotting/71889 "2021-11-22T10:48:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![IljaK91](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/iljak91/32/44301_2.png) [@IljaK91](https://discourse.julialang.org/u/IljaK91)\
**Post date:** [November 22, 2021, 10:48am UTC](https://discourse.julialang.org/t/problem-with-plotting/71889/1 "2021-11-22T10:48:35Z")

</div>

Hey everyone,

I tried to plot some graphs today, but somehow the font for the labels is not sharp and the commands for the fontsize get ignored. I have tried downgrading Plots to 1.22, but that did not help. I also upgraded to 1.7rc3, which did nothing. It seems that Vegalite also ignores fontsize keywords.

Here is the picture

![image](https://global.discourse-cdn.com/julialang/original/3X/3/3/332f7ff32c93e83e0bab4f84f06839df490da63c.png)

and the code:

```julia
plot(df.Date, df.PHPOE, label = "", color = :black, xlabelfontsize = 22, ylabelfontsize = 22, legendfontsize = 22)

```

```julia
julia> versioninfo()
Julia Version 1.7.0-rc3
Commit 3348de4ea6 (2021-11-15 08:22 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: 11th Gen Intel(R) Core(TM) i7-11700 @ 2.50GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-12.0.1 (ORCJIT, icelake-client)
Environment:
  JULIA_EDITOR = code
  JULIA_NUM_THREADS = 

```

Packe status:

```julia
  [a98d9a8b] Interpolations v0.13.4
  [b964fa9f] LaTeXStrings v1.3.0
  [e1d29d7a] Missings v1.0.2
  [429524aa] Optim v1.5.0
  [8314cec4] PGFPlotsX v1.4.1
  [9b87118b] PackageCompiler v2.0.2
  [d96e819e] Parameters v0.12.3
  [91a5bcdd] Plots v1.22.7 ⚲
  [fcd29c91] QuantEcon v0.16.3
  [1a8c2f83] Query v1.0.0
  [295af30f] Revise v3.1.20
  [f2b01f46] Roots v1.3.9
  [efcf1570] Setfield v0.7.1
  [2913bbd2] StatsBase v0.33.13
  [4c63d2b9] StatsFuns v0.9.13
  [112f6efa] VegaLite v2.6.0
  [fdbf4ff8] XLSX v0.7.8
  [e88e6eb3] Zygote v0.6.30
  [ade2ca70] Dates
  [9a3f8284] Random
  [8dfed614] Test

```

---

<div class="post-metadata">

**Author:** ![rafael.guerra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rafael.guerra/32/216610_2.png) [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)\
**Post date:** [November 22, 2021, 10:56am UTC](https://discourse.julialang.org/t/problem-with-plotting/71889/2 "2021-11-22T10:56:48Z")

</div>

To improve the resolution try: `using Plots; gr(dpi=600)`  
For the font size try `plot` keyword argument: `tickfontsize=22`

---

<div class="post-metadata">

**Author:** ![IljaK91](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/iljak91/32/44301_2.png) [@IljaK91](https://discourse.julialang.org/u/IljaK91)\
**Post date:** [November 22, 2021, 11:06am UTC](https://discourse.julialang.org/t/problem-with-plotting/71889/3 "2021-11-22T11:06:59Z")

</div>

Thank you, I just messed up the keywords 😃

---

<div class="post-metadata">

**Author:** ![mkborregaard](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkborregaard/32/556_2.png) [@mkborregaard](https://discourse.julialang.org/u/mkborregaard)\
**Post date:** [November 22, 2021, 11:14am UTC](https://discourse.julialang.org/t/problem-with-plotting/71889/4 "2021-11-22T11:14:55Z")

</div>

Could this be related to the new version of vscode having plots be png rather than svg by default?
