Skip to content
Graph-related recipes to be used with Plots.jl
Julia Shell
Branch: master
Clone or download

Latest commit

JackDevine Remove examples from readme (#103)
* Remove examples from readme

Now that the examples are in the documentation, they are not really needed on the readme. The one example left is just a little fun and it also helps to steer people wanting to do plotting in the right direction.

* Update the Tom Brellof acknowledgement
Latest commit 34b1f75 Mar 10, 2020

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/workflows Install TagBot as a GitHub Action (#94) Feb 9, 2020
assets Fix issues (#89) Jan 16, 2020
src
test
.gitignore Add `AbstractTrees` plotting (#80) Aug 15, 2019
.travis.yml WIP: Update for Julia 1.0, remove Plots and StatPlots Nov 27, 2018
LICENSE.md Update README.md Dec 2, 2018
NEWS.md
Project.toml
README.md Remove examples from readme (#103) Mar 10, 2020
appveyor.yml Update README.md Dec 2, 2018
pushtomaster.sh added pushtomaster Jul 7, 2016

README.md

GraphRecipes

The repository formerly known as PlotRecipes

Build Status Documentation

Summary

In this repository, a graph is a network of connected nodes (although sometimes people use the same word to refer to a plot). If you want to do plotting, then use Plots.jl.

For a given graph, there are many legitimate ways to display and visualize that graph. However, some graph layouts will convey the structure of the underlying graph much more clearly than other layouts. GraphRecipes provides many options for producing graph layouts including (un)directed graphs, tree graphs and arc/chord diagrams. For each layout type the graphplot function will try to create a default layout that optimizes visual clarity. However, the user can tweak the default layout through a large number of powerful keyword arguments, see the Documentation for more details and some examples.

Installation

]add GraphRecipes

An example

using GraphRecipes
using Plots

g = [0 1 1;
     1 0 1;
     1 1 0]

graphplot(g,
          x=[0,-1/tan/3),1/tan/3)], y=[1,0,0],
          nodeshape=:circle, nodesize=1.1,
          axis_buffer=0.6,
          curves=false,
          color=:black,
          nodecolor=[colorant"#389826",colorant"#CB3C33",colorant"#9558B2"],
          linewidth=10)

juliagraph

Original author: Thomas Breloff (@tbreloff)

This repo maintains a collection of recipes for graph analysis, and is a reduced and refactored version of the previous PlotRecipes. It uses the powerful machinery of Plots and RecipesBase to turn simple transformations into flexible visualizations.

You can’t perform that action at this time.