Skip to content

Commit 93dfb2e

Browse files
authored
Update README.md: fix backend instructions
1 parent e7565b9 commit 93dfb2e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -139,15 +139,15 @@ Only the [Tk](http://www.tcl.tk/), [wxWidgets](http://www.wxwidgets.org/),
139139
supported by PythonPlot. (Obviously, you must have installed one of these
140140
toolkits for Python first.) By default, PythonPlot picks one of these
141141
when it starts up (based on what you have installed), but you can
142-
force a specific toolkit to be chosen by importing the PyCall module
143-
and using its `pygui` function to set a Python backend *before*
142+
force a specific toolkit to be chosen by setting the `MPLBACKEND` environment variable
143+
to the desired Python backend *before*
144144
importing PythonPlot:
145145
```
146-
using PyCall
147-
pygui(gui)
146+
ENV["MPLBACKEND"] = backend
148147
using PythonPlot
149148
```
150-
where `gui` can currently be one of `:tk`, `:gtk3`, `:gtk`, `:qt5`, `:qt4`, `:qt`, or `:wx`. You can
149+
where `backend` is typically one of `"wxagg"`, `"gtkagg"`, `"gtk3agg"`, `"qt5agg"`, `"qt4agg"`, or `"tkagg"`.
150+
You can
151151
also set a default via the Matplotlib `rcParams['backend']` parameter in your
152152
[matplotlibrc](http://matplotlib.org/users/customizing.html) file.
153153

0 commit comments

Comments
 (0)