You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Matplotlib](http://matplotlib.org/) plotting library from Python, and
8
5
specifically to the `matplotlib.pyplot` module.
9
6
10
-
PyPlot uses the Julia [PyCall](https://github.com/stevengj/PyCall.jl)
7
+
PythonPlot uses the Julia [PythonCall.jl](https://github.com/cjdoris/PythonCall.jl)
11
8
package to call Matplotlib directly from Julia with little or no
12
-
overhead (arrays are passed without making a copy).
9
+
overhead (arrays are passed without making a copy). It is based on a fork of the [PyPlot.jl](https://github.com/JuliaPy/PyPlot.jl) package, which uses the older [PyCall.jl](https://github.com/JuliaPy/PyCall.jl) interface to Python, and is intended to function as a mostly drop-in replacement for PyPlot.jl.
13
10
14
11
This package takes advantage of Julia's [multimedia
@@ -18,74 +15,27 @@ inline graphics in [IJulia](https://github.com/JuliaLang/IJulia.jl).
18
15
Alternatively, you can use a Python-based graphical Matplotlib
19
16
backend to support interactive plot zooming etcetera.
20
17
21
-
(This PyPlot package replaces an earlier package of the same name by
22
-
[Junfeng Li](https://github.com/autozimu/), which used PyPlot over a
23
-
ZeroMQ socket with IPython.)
24
-
25
18
## Installation
26
19
27
-
You will need to have the Python [Matplotlib](http://matplotlib.org/)
28
-
library installed on your machine in order to use PyPlot. You can either
20
+
The PythonPlot package uses the [CondaPkg.jl](https://github.com/cjdoris/CondaPkg.jl) package to automatically install Matplotlib as needed.
21
+
22
+
(If you configure PythonCall to use some custom Python installation, you will need to install Matplotlib yourself.)
23
+
24
+
You can either
29
25
do inline plotting with [IJulia](https://github.com/JuliaLang/IJulia.jl),
30
26
which doesn't require a GUI backend, or use the Qt, wx, or GTK+ backends
31
27
of Matplotlib as described below.
32
28
33
-
Once Matplotlib is installed, then you can just use
34
-
`Pkg.add("PyPlot")` in Julia to install PyPlot and its dependencies.
35
-
36
-
### Automated Matplotlib installation
37
-
38
-
If you set up PyCall to use the
39
-
[Conda.jl](https://github.com/Luthaf/Conda.jl) package to install a
40
-
private (not in the system `PATH`) Julia Python distribution (via
41
-
Miniconda), then PyPlot will automatically install Matplotlib as needed.
42
-
43
-
If you are installing PyCall and PyPlot for the first time, just do `ENV["PYTHON"]=""` before running `Pkg.add("PyPlot")`. Otherwise, you can reconfigure PyCall to use Conda via:
44
-
```
45
-
ENV["PYTHON"]=""
46
-
Pkg.build("PyCall")
47
-
```
48
-
The next time you import `PyPlot`, it will tell Conda to install Matplotlib.
49
-
50
-
### OS X
51
-
52
-
On MacOS, you should either install
53
-
[XQuartz](http://xquartz.macosforge.org/landing/) for MacOS 10.9 or
54
-
later or install the [Anaconda](http://continuum.io/downloads) Python
55
-
distribution in order to get a fully functional PyPlot.
56
-
57
-
MacOS 10.9 comes with Python and Matplotlib, but this version of
58
-
Matplotlib defaults to with the Cocoa GUI backend, which is [not
59
-
supported by PyPlot](https://github.com/stevengj/PyPlot.jl/issues/11).
60
-
It also has a Tk backend, which is supported, but the Tk backend does
61
-
not work unless you install XQuartz.
62
-
63
-
Alternatively, you can install the
64
-
[Anaconda](http://continuum.io/downloads) Python distribution
65
-
(which also includes `ipython` and other IJulia dependencies).
66
-
67
-
Otherwise, you can use the [Homebrew](http://brew.sh/) package manager:
0 commit comments