olgabot / prettyplotlib

Painlessly create beautiful matplotlib plots.
olgabot.github.io/prettyplotlib
MIT License
1.69k stars 148 forks source link

Failure when import prettyplotlib #68

Closed jungle-cat closed 10 years ago

jungle-cat commented 10 years ago

ImportError Traceback (most recent call last)

in () ----> 1 import prettyplotlib C:\Users\Feng\build\bdist.win-amd64\egg\prettyplotlib__init__.py in () C:\Users\Feng\build\bdist.win-amd64\egg\prettyplotlib_bar.py in () C:\Users\Feng\build\bdist.win-amd64\egg\prettyplotlib\utils.py in () D:\Python\Python27\lib\site-packages\matplotlib\pyplot.py in () 22 23 import matplotlib ---> 24 import matplotlib.colorbar 25 from matplotlib import _pylab_helpers, interactive 26 from matplotlib.cbook import dedent, silent_list, is_string_like, is_numlike D:\Python\Python27\lib\site-packages\matplotlib\colorbar.py in () 27 import matplotlib.artist as martist 28 import matplotlib.cbook as cbook ---> 29 import matplotlib.collections as collections 30 import matplotlib.colors as colors 31 import matplotlib.contour as contour D:\Python\Python27\lib\site-packages\matplotlib\collections.py in () 21 import matplotlib.artist as artist 22 from matplotlib.artist import allow_rasterization ---> 23 import matplotlib.backend_bases as backend_bases 24 import matplotlib.path as mpath 25 from matplotlib import _path D:\Python\Python27\lib\site-packages\matplotlib\backend_bases.py in () 48 49 import matplotlib.tight_bbox as tight_bbox ---> 50 import matplotlib.textpath as textpath 51 from matplotlib.path import Path 52 from matplotlib.cbook import mplDeprecation D:\Python\Python27\lib\site-packages\matplotlib\textpath.py in () 9 from matplotlib.path import Path 10 from matplotlib import rcParams ---> 11 import matplotlib.font_manager as font_manager 12 from matplotlib.ft2font import FT2Font, KERNING_DEFAULT, LOAD_NO_HINTING 13 from matplotlib.ft2font import LOAD_TARGET_LIGHT D:\Python\Python27\lib\site-packages\matplotlib\font_manager.py in () 51 import matplotlib 52 from matplotlib import afm ---> 53 from matplotlib import ft2font 54 from matplotlib import rcParams, get_cachedir 55 from matplotlib.cbook import is_string_like ImportError: numpy.core.multiarray failed to import
olgabot commented 10 years ago

Thank you for your comment. Unfortunately, I no longer have the bandwidth to maintain prettyplotlib. I recommend using seaborn. Using seaborn, to get the prettyplotlib style, do:

import seaborn as sns
sns.set(style='ticks', palette='Set2')

And to remove "chartjunk", do:

sns.despine()

If you have discrete pull requests, I will accept them, but I personally will no longer fix bugs.

If you are a biological scientist looking for ways to analyze your big-ish (20+ samples) data, check out my main project, flotilla.