Skip to content

Instantly share code, notes, and snippets.

@philippstroehle
Created September 16, 2013 12:44
Show Gist options
  • Save philippstroehle/6580227 to your computer and use it in GitHub Desktop.
Save philippstroehle/6580227 to your computer and use it in GitHub Desktop.
>>> from pylab import *
>>> plot([1,3,2])
[<matplotlib.lines.Line2D object at 0x102bc8950>]
>>> gca()
<matplotlib.axes.AxesSubplot object at 0x102790cd0>
>>> gca().add_patch(Rectangle((1,1),1,1))
<matplotlib.patches.Rectangle object at 0x102790510>
>>> savefig("rect.png")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment