Skip to content

Commit a797635

Browse files
authored
[Minor] GUI for matplotlib to run examples (#323)
* Proposal to add pyqt5 as GUI to run examples correctly * Add note about matplotlib gui backend instead
1 parent 964f28d commit a797635

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

examples/plot_metric_learning_examples.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@
1515
######################################################################
1616
# Imports
1717
# ^^^^^^^
18+
# .. note::
1819
#
20+
# In order to show the charts of the examples you need a graphical
21+
# ``matplotlib`` backend installed. For intance, use ``pip install pyqt5``
22+
# to get Qt graphical interface or use your favorite one.
1923

2024
from sklearn.manifold import TSNE
2125

examples/plot_sandwich.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@
66
Sandwich demo based on code from http://nbviewer.ipython.org/6576096
77
"""
88

9+
######################################################################
10+
# .. note::
11+
#
12+
# In order to show the charts of the examples you need a graphical
13+
# ``matplotlib`` backend installed. For intance, use ``pip install pyqt5``
14+
# to get Qt graphical interface or use your favorite one.
15+
916
import numpy as np
1017
from matplotlib import pyplot as plt
1118
from sklearn.metrics import pairwise_distances

0 commit comments

Comments
 (0)