JuliaTeX / PGFPlots.jl

This library uses the LaTeX package pgfplots to produce plots.
Other
188 stars 36 forks source link

Plots not showing #179

Closed albinahlback closed 3 years ago

albinahlback commented 3 years ago

With pdf2svg and pgfplots installed (the latter via tlmgr), I cannot get the graph to show using

using PGFPlots
x = [1, 2, 3]
y = [1, 2, 4]
plot(x, y)

It only outputs I get is the corresponding tex-output. This is via a regular terminal, so no Jupyter notebook or whatever.

Could it be that my tex-distribution is not installed under the default path? While it does not seem reasonable, since I can run Latex perfectly, it could perhaps be a reason?

Some information about my system: OS: Arch Linux with i3 window manager Julia version: 1.6.1 Tex-distribution: TexLive 2021, with the current release of pgfplots

albinahlback commented 3 years ago

Ohh, perhaps this only outputs direct images to notebooks...

mykelk commented 3 years ago

Yeah, if you are running from the terminal, you'll need to save the plots to a file. In a notebook (e.g. Jupyter and Pluto) or Juno it will show up automatically.