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

PGFPlots meta-issue #318

Closed
8 tasks
tbreloff opened this issue Jun 10, 2016 · 11 comments
Closed
8 tasks

PGFPlots meta-issue #318

tbreloff opened this issue Jun 10, 2016 · 11 comments

Comments

@tbreloff
Copy link
Member

tbreloff commented Jun 10, 2016

@rob-luke
Copy link

Specifying xticks has no effect on output figure with PGFPlots.

@tbreloff
Copy link
Member Author

You're right... I added it to the list. Thanks.

@baggepinnen
Copy link
Contributor

Attributes fillrange and ribbon does not work as intended with backend pgfplots

pgfplots()
plot(randn(10), fillrange=randn(10)+2)
plot(randn(10), ribbon = [2,1])
plot(randn(10), ribbon = (ones(10),2ones(10)))

@pkofod
Copy link
Contributor

pkofod commented Aug 10, 2016

Can I ask what "handle discrete axes" means here?

@tbreloff
Copy link
Member Author

when the axes values are discrete (symbols, strings,, or something else). I'll probably need to help with that one.

@pkofod
Copy link
Contributor

pkofod commented Aug 10, 2016

ah, so we want to place something at 1, 2, 3, 4 with custom tick labels ?

@mkborregaard
Copy link
Member

mkborregaard commented Jun 12, 2017

EDIT: It works great now

I have this backend not working at all on Mac.

using Plots
pgfplots()
plot(1:10,1:10)
Error saving as SVG
Error showing value of type Plots.Plot{Plots.PGFPlotsBackend}:
ERROR: could not spawn `pdf2svg /var/folders/b8/rvm2dk495f74088ssh9v2l8r0000gn/T/juliaGKHu1L.pdf /var/folders/b8/rvm2dk495f74088ssh9v2l8r0000gn/T/juliaGKHu1L.svg`: no such file or directory (ENOENT)
Stacktrace:
 [1] _jl_spawn(::String, ::Array{String,1}, ::Ptr{Void}, ::Base.Process, ::Base.DevNullStream, ::Base.DevNullStream, ::Base.DevNullStream) at ./process.jl:360
 [2] #373 at ./process.jl:512 [inlined]
 [3] setup_stdio(::Base.##373#374{Cmd}, ::Tuple{Base.DevNullStream,Base.DevNullStream,Base.DevNullStream}) at ./process.jl:499
 [4] #spawn#372(::Nullable{Base.ProcessChain}, ::Function, ::Cmd, ::Tuple{Base.DevNullStream,Base.DevNullStream,Base.DevNullStream}) at ./process.jl:511
 [5] (::Base.#kw##spawn)(::Array{Any,1}, ::Base.#spawn, ::Cmd, ::Tuple{Base.DevNullStream,Base.DevNullStream,Base.DevNullStream}) at ./<missing>:0
 [6] save(::TikzPictures.SVG, ::TikzPictures.TikzPicture) at /Users/michael/.julia/v0.6/TikzPictures/src/TikzPictures.jl:264
 [7] _display(::Plots.Plot{Plots.PGFPlotsBackend}) at /Users/michael/.julia/v0.6/Plots/src/backends/pgfplots.jl:424
 [8] display(::Base.REPL.REPLDisplay{Base.REPL.LineEditREPL}, ::MIME{Symbol("text/plain")}, ::Plots.Plot{Plots.PGFPlotsBackend}) at /Users/michael/.julia/v0.6/Plots/src/output.jl:138
 [9] display(::Base.REPL.REPLDisplay{Base.REPL.LineEditREPL}, ::Plots.Plot{Plots.PGFPlotsBackend}) at ./REPL.jl:125
 [10] display(::Plots.Plot{Plots.PGFPlotsBackend}) at ./multimedia.jl:194
 [11] eval(::Module, ::Any) at ./boot.jl:235
 [12] print_response(::Base.Terminals.TTYTerminal, ::Any, ::Void, ::Bool, ::Bool, ::Void) at ./REPL.jl:144
 [13] print_response(::Base.REPL.LineEditREPL, ::Any, ::Void, ::Bool, ::Bool) at ./REPL.jl:129
 [14] (::Base.REPL.#do_respond#16{Bool,Base.REPL.##26#36{Base.REPL.LineEditREPL,Base.REPL.REPLHistoryProvider},Base.REPL.LineEditREPL,Base.LineEdit.Prompt})(::Base.LineEdit.MIState, ::Base.AbstractIOBuffer{Array{UInt8,1}}, ::Bool) at ./REPL.jl:646

I saw that on Ubuntu the pdf2svg needs to be installed manually. I don't think that tool works on a Mac. Is it simply meant to be linux/windows only, or have I flipped some setting wrong?

@bobbielf2
Copy link

@mkborregaard I am using Mac too and it works on my computer. You need both PGFPlots (the latex package, not the Julia package) and pdf2svg. I installed TeXShop on my Mac so pdf2svg is already included, so I only needed to install PGFPlots.

@mkborregaard
Copy link
Member

mkborregaard commented Aug 4, 2017

You're right, I failed to update here that I have it working great now.

@otobrzo
Copy link

otobrzo commented Apr 9, 2020

Is there possibility to change the font family?
I would like to save figure directly to pdf or svg format (otherwise I would edit tex source)

I have found this:
font family

you need to pass font=\sffamily\sansmath to

\begin{tikzpicture}[font=\sffamily\sansmath]

@BeastyBlacksmith
Copy link
Member

closing in favor of #2290

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

8 participants