Thank you for such a detailed reply. I used savefig and it worked fine but
when I try to specify the dpi as savefig("myplot2.eps",dpi=300) I get the
error:
"PyError (PyObject_Call) <type 'exceptions.AssertionError'>
AssertionError()
File
"/Applications/anaconda/lib/python2.7/site-packages/matplotlib/backend_bases.py",
line 2169, in print_figure
bbox_inches = self.figure.get_tightbbox(renderer)
File
"/Applications/anaconda/lib/python2.7/site-packages/matplotlib/figure.py", line
1564, in get_tightbbox
_bbox = Bbox.union([b for b in bb if b.width != 0 or b.height != 0])
File
"/Applications/anaconda/lib/python2.7/site-packages/matplotlib/transforms.py",
line 714, in union
assert(len(bboxes))
in pyerr_check at /Users/elibby/.julia/PyCall/src/exception.jl:58
in pycall at /Users/elibby/.julia/PyCall/src/PyCall.jl:85
in fn at /Users/elibby/.julia/PyCall/src/conversions.jl:181
in writemime at /Users/elibby/.julia/PyPlot/src/PyPlot.jl:137
in base64 at base64.jl:125
in display_dict at /Users/elibby/.julia/IJulia/src/execute_request.jl:30
in display at /Users/elibby/.julia/IJulia/src/inline.jl:34
in display at multimedia.jl:151
in display at /Users/elibby/.julia/IJulia/src/inline.jl:55"