Environment variables
edwinhu opened this issue · comments
It appears that you need to set
export ITERMPLOT="rv"
Before the package will work at all.
See error output below (from trying to run the example in your README file):
/home/hue/bin/itermplot/itermplot.py in print_pdf(self, filename, **kwargs)
171 kwargs.setdefault('edgecolor', rcParams['savefig.edgecolor'])
172
--> 173 if 'rv' in os.getenv('ITERMPLOT'):
174 self.reverse()
175
TypeError: argument of type 'NoneType' is not iterable
This is after setting the
export PYTHONPATH=~/itermplot:$PYTHONPATH
export MPLBACKEND="module://itermplot"
Fixed.