# Graphs, GraphPlot

**URL:** https://discourse.julialang.org/t/graphs-graphplot/93304
**Category:** General Usage
**Created:** [January 21, 2023, 10:41am UTC](https://discourse.julialang.org/t/graphs-graphplot/93304 "2023-01-21T10:41:10Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![46do14](https://avatars.discourse-cdn.com/v4/letter/4/848f3c/32.png) [@46do14](https://discourse.julialang.org/u/46do14)
#### Post date: [January 21, 2023, 10:41am UTC](https://discourse.julialang.org/t/graphs-graphplot/93304/1 "2023-01-21T10:41:10Z")

</div>

could someone please help?

I’m new to the Graphs package and I want to plot a graph (as described by the GraphPlot github documentation)

using Graphs: smallgraph  
g = smallgraph(:karate)  
gplot(g)

My problem is that the output is not a plotted graph but only text beginning with

"Compose.Context(Measures.BoundingBox …

Plots with the Plots.jl package are displayed as expected.

What am I doing wrong?

---

<div class="post-metadata">

### Author: ![cormullion](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cormullion/32/49131_2.png) [@cormullion](https://discourse.julialang.org/u/cormullion)
#### Post date: [January 21, 2023, 11:43am UTC](https://discourse.julialang.org/t/graphs-graphplot/93304/2 "2023-01-21T11:43:50Z")

</div>

It’s difficult to say what’s going wrong without knowing a bit more about which versions of various packages and environments you’re running. On my VSCode with Julia v1.8, I see:

 ![Screenshot 2023-01-21 at 11.39.32](https://global.discourse-cdn.com/julialang/original/3X/9/e/9ecbe2fe8a03ea2e6c91254b1f77758e74e17303.png)

with these versions:

```plaintext
 pkg> st
Status `~/.julia/environments/Temp/Project.toml`
  [a2cc645c] GraphPlot v0.5.2
  [86223c79] Graphs v1.7.4

```

---

<div class="post-metadata">

### Author: ![simonschoelly](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/simonschoelly/32/21606_2.png) [@simonschoelly](https://discourse.julialang.org/u/simonschoelly)
#### Post date: [January 21, 2023, 11:57am UTC](https://discourse.julialang.org/t/graphs-graphplot/93304/3 "2023-01-21T11:57:05Z")

</div>

The problem here is that `gplot` returns a `Compose.Context` from`Compose.jl` but there is no handler installed in the Julia REPL that would know how to draw that kind of object, so you only see text. Apparently there is in `VSCode`.

What you can do instead is to use `gplothtml(g)` that will show your graph in a browser window.

We should probably add such information to the README file, but development on that package is currently slow because of a lack of time.

As an alternative you could also give [GraphMakie.jl](https://github.com/MakieOrg/GraphMakie.jl) a try.

---

<div class="post-metadata">

### Author: ![cormullion](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cormullion/32/49131_2.png) [@cormullion](https://discourse.julialang.org/u/cormullion)
#### Post date: [January 21, 2023, 12:00pm UTC](https://discourse.julialang.org/t/graphs-graphplot/93304/4 "2023-01-21T12:00:08Z")

</div>

> [@cormullion](#):
>
> `GraphPlot v0.5.2`

Curiously, for some reason I managed to get GraphPlot v0.5.2 downloaded, although the [github page](https://github.com/JuliaGraphs/GraphPlot.jl) shows the latest version as v0.4.4.

---

<div class="post-metadata">

### Author: ![simonschoelly](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/simonschoelly/32/21606_2.png) [@simonschoelly](https://discourse.julialang.org/u/simonschoelly)
#### Post date: [January 21, 2023, 12:07pm UTC](https://discourse.julialang.org/t/graphs-graphplot/93304/5 "2023-01-21T12:07:21Z")

</div>

Probably something wrong with tagbot so that there was never a release entry on Github. These released are independent of the ones published in the general registry.

---

<div class="post-metadata">

### Author: ![46do14](https://avatars.discourse-cdn.com/v4/letter/4/848f3c/32.png) [@46do14](https://discourse.julialang.org/u/46do14)
#### Post date: [January 22, 2023, 6:52am UTC](https://discourse.julialang.org/t/graphs-graphplot/93304/6 "2023-01-22T06:52:06Z")

</div>

Thank you very much for your answer and detailed information.

Sorry for not mentioning it. You are right, I use Julia REPL with following installed packages:

GraphPlot v0.5.2  
Graphs v1.7.4

I’ve tried `gplothtml(g)` but unfortunately encountered the same issue as reported in `gplothtml` not working #175

After installing the `GraphMakie` package the graph is successfully displayed.

Thanks again for your support and your great work and contribution to the `JuliaGraphs` development
