<s> __author__ = '<STR_LIT>' <EOL> from matplotlib . testing . decorators import image_comparison <EOL> import numpy as np <EOL> import prettyplotlib as ppl <EOL> import matplotlib . pyplot as plt <EOL> from prettyplotlib . utils import remove_chartjunk <EOL> from prettyplotlib . colors import set2 <EOL> import os <EOL> @ image_comparison ( baseline_images = [ '<STR_LIT>' ] , extensions = [ '<STR_LIT>' ] ) <EOL> def test_remove_chartjunk ( ) : <EOL> fig , ax = plt . subplots ( <NUM_LIT:1> ) <EOL> np . random . seed ( <NUM_LIT> ) <EOL> ax . bar ( np . arange ( <NUM_LIT:10> ) , np . abs ( np . random . randn ( <NUM_LIT:10> ) ) , color = set2 [ <NUM_LIT:0> ] , <EOL> edgecolor = '<STR_LIT>' ) <EOL> remove_chartjunk ( ax , [ '<STR_LIT>' , '<STR_LIT:right>' ] , grid = '<STR_LIT:y>' , ticklabels = '<STR_LIT:x>' ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> import nose <EOL> nose . runmodule ( argv = [ '<STR_LIT>' , '<STR_LIT>' ] ) </s>
