Skip to content

[WIP] Deprecate gtk, gdk and wx backends and remove Cocoaagg #6574

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions doc/make.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import sys
import re
import argparse
import matplotlib

def copy_if_out_of_date(original, derived):
if (not os.path.exists(derived) or
Expand Down Expand Up @@ -38,7 +39,13 @@ def linkcheck():

def html(buildername='html'):
check_build()
copy_if_out_of_date('../lib/matplotlib/mpl-data/matplotlibrc', '_static/matplotlibrc')

rc = '../lib/matplotlib/mpl-data/matplotlibrc'
default_rc = os.path.join(matplotlib._get_data_path(), 'matplotlibrc')
if not os.path.exists(rc) and os.path.exists(default_rc):
rc = default_rc
copy_if_out_of_date(rc, '_static/matplotlibrc')

if small_docs:
options = "-D plot_formats=png:80"
else:
Expand Down Expand Up @@ -167,9 +174,9 @@ def all():
raise RuntimeError("doc/{0} should be a directory or symlink -- it"
" isn't".format(link))
if not os.path.exists(link):
if hasattr(os, 'symlink'):
try:
os.symlink(target, link)
else:
except OSError:
symlink_warnings.append('files copied to {0}'.format(link))
shutil.copytree(os.path.join(link, '..', target), link)

Expand Down
2 changes: 1 addition & 1 deletion doc/users/screenshots.rst
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ rendering of strings with the *usetex* option.
EEG demo
=========

You can embed matplotlib into pygtk, wx, Tk, FLTK, or Qt applications.
You can embed matplotlib into pygtk, wx, Tk, or Qt applications.
Here is a screenshot of an EEG viewer called `pbrain
<http://github.com/nipy/pbrain>`__.

Expand Down
2 changes: 1 addition & 1 deletion examples/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ directories found here:
* units - working with unit data an custom types in matplotlib

* user_interfaces - using matplotlib in a GUI application, e.g.,
TkInter, WXPython, pygtk, pyqt or FLTK widgets
TkInter, WXPython, pygtk, pyqt widgets

* widgets - Examples using interactive widgets
1 change: 0 additions & 1 deletion examples/event_handling/test_mouseclicks.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#matplotlib.use("TkAgg")
#matplotlib.use("GTKAgg")
#matplotlib.use("Qt4Agg")
#matplotlib.use("CocoaAgg")
#matplotlib.use("MacOSX")
import matplotlib.pyplot as plt

Expand Down
4 changes: 1 addition & 3 deletions examples/user_interfaces/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@ Embedding matplotlib in graphical user interfaces

You can embed matplotlib directly into a user interface application by
following the embedding_in_SOMEGUI.py examples here. Currently
matplotlib supports wxpython, pygtk, tkinter, pyqt, fltk and cocoa.
matplotlib supports wxpython, pygtk, tkinter and pyqt4/5.

When embedding matplotlib in a GUI, you must use the matplotlib API
directly rather than the pylab/pyplot proceedural interface, so take a
look at the examples/api directory for some example code working with
the API.


2 changes: 1 addition & 1 deletion extern/ttconv/ttutil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ void TTStreamWriter::putline(const char *a)
void replace_newlines_with_spaces(char *a) {
char* i = a;
while (*i != 0) {
if (*i == '\n')
if (*i == '\r' || *i == '\n')
*i = ' ';
i++;
}
Expand Down
59 changes: 0 additions & 59 deletions lib/matplotlib/backends/Matplotlib.nib/classes.nib

This file was deleted.

16 changes: 0 additions & 16 deletions lib/matplotlib/backends/Matplotlib.nib/info.nib

This file was deleted.

Loading