Skip to content
This repository has been archived by the owner on Oct 21, 2021. It is now read-only.

Format: "x11" not recognized. (plot / Windows) #172

Closed
Ismael-VC opened this issue Mar 1, 2015 · 5 comments
Closed

Format: "x11" not recognized. (plot / Windows) #172

Ismael-VC opened this issue Mar 1, 2015 · 5 comments

Comments

@Ismael-VC
Copy link

julia> using Graphs

julia> g = simple_graph(4, is_directed=false)
Undirected Graph (4 vertices, 0 edges)

julia> add_edge!(g, 1, 2)
edge [1]: 1 -- 2

julia> add_edge!(g, 1, 4)
edge [2]: 1 -- 4

julia> add_edge!(g, 2, 4)
edge [3]: 2 -- 4

julia> add_edge!(g, 3, 1)
edge [4]: 3 -- 1

julia> add_edge!(g, 3, 2)
edge [5]: 3 -- 2

julia> add_edge!(g, 4, 3)
edge [6]: 4 -- 3

julia> plot(g)

julia> Format: "x11" not recognized. Use one of: bmp canon cmap cmapx cmapx_np dot emf emfplus eps fig gd gd2 gif gv imap imap_np ismap jpe jpeg jpg metafile pdf pic plain plain-ext png pov ps ps2 svg svgz tif tiff tk vml vmlz vrml wbmp xdot xdot1.2 xdot1.4
@jminardi
Copy link

Same issue on OS X Yosemite 10.10.2

@wuillou8
Copy link

same for me on yosemite 10.10.3

@jagrafft
Copy link

Same on Windows 8.

Switching what follows the -T command on line 85 of dots.jl:

stdin, proc = open(`neato -Tx11`, "w")

From x11 to a GraphViz Output Format should clean that error up, so long as your system supports the format you choose.

I can't get a plot yet, but that's because I am getting this error now plot --> Linux #176.

@jbn
Copy link

jbn commented Oct 6, 2015

As a partial solution, I recommend (shamelessly) using my IJuliaPortrayals package, at least for interactive Jupyter-based work. For example,

using Graphs
using IJuliaPortrayals

g = simple_complete_graph(10)
GraphViz(to_dot(g), "circo", "svg")

@dmoliveira
Copy link

@jbn: Good job! Nice library!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants