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

Issue saving as pdf when exporting to another folder #7

Closed
tawheeler opened this issue Sep 25, 2014 · 4 comments
Closed

Issue saving as pdf when exporting to another folder #7

tawheeler opened this issue Sep 25, 2014 · 4 comments

Comments

@tawheeler
Copy link
Member

I seem to have problems saving files as pdf when I save a pdf to a non-local location.

This works:

julia> p = Plots.Histogram(rand(100))
julia> save("out.pdf", p)

This does not (the folder does exist):

julia> p = Plots.Histogram(rand(100))
julia> save("otherfolder/out.pdf", p)
ERROR: Error saving as PDF.
 in save at /home/tim/.julia/v0.3/TikzPictures/src/TikzPictures.jl:126
 in save at /home/tim/.julia/v0.3/PGFPlots/src/PGFPlots.jl:302

It works if I run

cd("otherfolder")
julia> save("out.pdf", p)

Saving with the .tex extension with non-local destinations appears not to be a problem.

@tawheeler
Copy link
Member Author

This may be a problem with TikzPictures rather than PGFPlots.

@mykelk
Copy link
Member

mykelk commented Sep 26, 2014

@tawheeler That is correct. I'll have to sort out what is going on there in TikzPictures.jl.

@lssimoes
Copy link

lssimoes commented Oct 4, 2014

I'm having this exactly same problem even using your first example:

julia> save("out.pdf", p)
ERROR: Error saving as PDF.
 in save at /home/kaslu/.julia/v0.3/TikzPictures/src/TikzPictures.jl:126
 in save at /home/kaslu/.julia/v0.3/PGFPlots/src/PGFPlots.jl:302

@mykelk
Copy link
Member

mykelk commented Oct 4, 2014

Do you have lualatex installed and on your path, along with pgf2svg? Try
saving as TeX and then compiling yourself using lualatex. It might give a
clue on what is wrong.
On Oct 4, 2014 12:29 PM, "Lucas Silva Simões" notifications@github.com
wrote:

I'm having this exactly same problem even using your first example:

julia> save("out.pdf", p)ERROR: Error saving as PDF.
in save at /home/kaslu/.julia/v0.3/TikzPictures/src/TikzPictures.jl:126
in save at /home/kaslu/.julia/v0.3/PGFPlots/src/PGFPlots.jl:302


Reply to this email directly or view it on GitHub
#7 (comment).

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

3 participants