-
-
Notifications
You must be signed in to change notification settings - Fork 359
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
Comments
Specifying |
You're right... I added it to the list. Thanks. |
Attributes pgfplots()
plot(randn(10), fillrange=randn(10)+2)
plot(randn(10), ribbon = [2,1])
plot(randn(10), ribbon = (ones(10),2ones(10))) |
Can I ask what "handle discrete axes" means here? |
when the axes values are discrete (symbols, strings,, or something else). I'll probably need to help with that one. |
ah, so we want to place something at 1, 2, 3, 4 with custom tick labels ? |
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? |
@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. |
You're right, I failed to update here that I have it working great now. |
Is there possibility to change the font family? I have found this: you need to pass
|
closing in favor of #2290 |
line_z
(Support color gradients/vectors for line segments #218)plot(randn(10), fillrange=randn(10)+2)
plot(randn(10), ribbon = (2,1))
The text was updated successfully, but these errors were encountered: