Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Commit

Permalink
update around matplotlib unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
sdpython committed Feb 22, 2017
1 parent 717486c commit d5a9940
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions _doc/sphinxdoc/source/td_2a.rst
Expand Up @@ -723,6 +723,7 @@ Interprétabilité des modèles

*Lectures*

* `Learning to learn by gradient descent by gradient descent <https://arxiv.org/pdf/1606.04474.pdf>`_
* `Importance Weighting Without Importance Weights: An Effcient Algorithm for Combinatorial Semi-Bandits <http://jmlr.org/papers/volume17/15-091/15-091.pdf>`_
* `Making Tree Ensembles Interpretable <https://arxiv.org/pdf/1606.05390v1.pdf>`_
* `Understanding variable importances in forests of randomized trees <http://papers.nips.cc/paper/4928-understanding-variable-importances-in-forests-of-randomized-trees.pdf>`_
Expand Down
2 changes: 1 addition & 1 deletion _unittests/ut_faq/test_ggplot_graph.py
Expand Up @@ -188,7 +188,7 @@ def test_graph_ggplots(self):
warnings.warn(
"Issue with Python 3.4, bug probably related to wrong pointers")
return
fix_tkinter_issues_virtualenv()
fix_tkinter_issues_virtualenv(fLOG=fLOG)
import matplotlib.pyplot as plt
fig, ax = plt.subplots(figsize=(8, 3))
graph_ggplot_with_label(x, y, xl, ax=ax)
Expand Down
2 changes: 1 addition & 1 deletion bin/gitpull.bat
@@ -1,5 +1,5 @@
set current=%~dp0
cd ..
cd ..
cd ..
cd actuariat_python
git pull
Expand Down
3 changes: 1 addition & 2 deletions src/ensae_teaching_cs/faq/faq_matplotlib.py
Expand Up @@ -3,9 +3,7 @@
@file
@brief Quelques problèmes récurrents avec `matplotlib <http://matplotlib.org/>`_.
"""
from mpl_toolkits.basemap import Basemap
import numpy
import matplotlib.pyplot as plt


def graph_style(style='ggplot'):
Expand Down Expand Up @@ -311,6 +309,7 @@ def graph_cities(df, names=["Longitude", "Latitude", "City"], ax=None, linked=Fa
miny -= dy
maxy += dy

from mpl_toolkits.basemap import Basemap
m = Basemap(llcrnrlon=params.get('llcrnrlon', minx),
llcrnrlat=params.get('llcrnrlat', miny),
urcrnrlon=params.get('urcrnrlon', maxx),
Expand Down
1 change: 1 addition & 0 deletions src/ensae_teaching_cs/tests/american_cities.py
Expand Up @@ -52,6 +52,7 @@ def haversine(p1, p2):
dftrip.ix[i, "City"] = ""

if img is not None:
fix_tkinter_issues_virtualenv()
import matplotlib.pyplot as plt
fig, ax = plt.subplots(figsize=(32, 32))
ax = graph_cities(dftrip, ax=ax, markersize=3, linked=True, fLOG=fLOG,
Expand Down

0 comments on commit d5a9940

Please sign in to comment.