In [1]:
#Pkg.add("Gadfly")
#Pkg.add("Cairo")
#Pkg.add("RDatasets")
#Pkg.add("PyCall")
#Pkg.add("PyPlot")

Gadfly:


In [2]:
using Gadfly
using RDatasets

Gadfly.plot(RDatasets.data("datasets", "iris"),x="Sepal.Length", y="Sepal.Width", Gadfly.Geom.point)


WARNING: contains(collection, item) is deprecated, use in(item, collection) instead
 in contains at reduce.jl:238
Out[2]:

Pyplot, PyCall import of Networkx:


In [3]:
using PyCall
using PyPlot

PyCall.@pyimport networkx as nx

PyPlot.plt.clf()
DG=nx.DiGraph()
DG[:add_weighted_edges_from]([(1,2,0.5), (3,1,0.75)])
nx.draw(DG)
PyPlot.plt.gcf()


Warning: using Base.Stat in module Stat conflicts with an existing identifier.
Out[3]:

Pyplot:


In [4]:
PyPlot.plt.clf()
x = PyPlot.linspace(0, 2*pi)
PyPlot.plot(x, sin(x))
PyPlot.plot(x, cos(x), "ro")
PyPlot.title("Two familiar functions")
#legend();
PyPlot.plt.gcf()


Out[4]:

In [5]: