daleroberts / itermplot

An awesome iTerm2 backend for Matplotlib, so you can plot directly in your terminal.
1.49k stars 51 forks source link

Environment variables #2

Closed edwinhu closed 7 years ago

edwinhu commented 7 years ago

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"
daleroberts commented 7 years ago

Fixed.