Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plots not showing #179

Closed
albinahlback opened this issue Oct 26, 2021 · 2 comments
Closed

Plots not showing #179

albinahlback opened this issue Oct 26, 2021 · 2 comments

Comments

@albinahlback
Copy link

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
Copy link
Author

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

@mykelk
Copy link
Member

mykelk commented Oct 26, 2021

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.

@mykelk mykelk closed this as completed Oct 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants