diff --git a/Examples.ipynb b/Examples.ipynb
index b0657ed..fe63fba 100644
--- a/Examples.ipynb
+++ b/Examples.ipynb
@@ -36,7 +36,7 @@
},
{
"cell_type": "code",
- "execution_count": 3,
+ "execution_count": 24,
"metadata": {
"collapsed": false
},
@@ -826,7 +826,7 @@
},
{
"cell_type": "code",
- "execution_count": 61,
+ "execution_count": 25,
"metadata": {
"collapsed": false
},
@@ -1615,7 +1615,7 @@
},
{
"cell_type": "code",
- "execution_count": 4,
+ "execution_count": 26,
"metadata": {
"collapsed": false,
"scrolled": false
@@ -2406,7 +2406,7 @@
},
{
"cell_type": "code",
- "execution_count": 62,
+ "execution_count": 27,
"metadata": {
"collapsed": false
},
@@ -3196,7 +3196,7 @@
},
{
"cell_type": "code",
- "execution_count": 5,
+ "execution_count": 28,
"metadata": {
"collapsed": false,
"scrolled": false
@@ -9534,20 +9534,12 @@
},
{
"cell_type": "code",
- "execution_count": 18,
+ "execution_count": 23,
"metadata": {
"collapsed": false,
"scrolled": true
},
"outputs": [
- {
- "name": "stderr",
- "output_type": "stream",
- "text": [
- "/home/phyks/.local/share/virtualenvs/physique/lib/python3.5/site-packages/matplotlib/axes/_axes.py:519: UserWarning: No labelled objects found. Use label='...' kwarg on individual plots.\n",
- " warnings.warn(\"No labelled objects found. \"\n"
- ]
- },
{
"data": {
"application/javascript": [
@@ -10315,7 +10307,7 @@
{
"data": {
"text/html": [
- ""
+ ""
],
"text/plain": [
""
diff --git a/replot.py b/replot.py
index 21f52a0..30e8901 100644
--- a/replot.py
+++ b/replot.py
@@ -5,12 +5,7 @@ it, then we write a buffer on top of matplotlib API.
"""
import matplotlib.pyplot as plt
import numpy as np
-import seaborn
-
-
-# Cancel seaborn modifications of matplotlib, we do not want to interfere in
-# any ways with matplotlib
-seaborn.reset_orig()
+import seaborn.apionly as sns
# TODO: Remove it, this is interfering with matplotlib
@@ -47,9 +42,9 @@ class Figure():
Actually render and show the figure.
"""
# Tweak matplotlib to use seaborn
- seaborn.set()
+ sns.set()
# Plot using specified color palette
- with seaborn.color_palette(self.palette, self.max_colors):
+ with sns.color_palette(self.palette, self.max_colors):
# Create figure
figure, axes = plt.subplots()
# Add plots
@@ -65,7 +60,7 @@ class Figure():
figure.show()
# Do not forget to restore matplotlib state, in order not to interfere
# with it.
- seaborn.reset_orig()
+ sns.reset_orig()
#def palette(self, palette):