From: <jd...@us...> - 2008-05-16 19:51:42
|
Revision: 5153 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5153&view=rev Author: jdh2358 Date: 2008-05-16 12:51:33 -0700 (Fri, 16 May 2008) Log Message: ----------- renamed pylot to api for examples Added Paths: ----------- trunk/matplotlib/examples/api/ trunk/matplotlib/examples/api/agg_oo.py Removed Paths: ------------- trunk/matplotlib/examples/pylab/agg_oo.py trunk/matplotlib/examples/pyplot/ Copied: trunk/matplotlib/examples/api (from rev 5151, trunk/matplotlib/examples/pyplot) Copied: trunk/matplotlib/examples/api/agg_oo.py (from rev 5151, trunk/matplotlib/examples/pylab/agg_oo.py) =================================================================== --- trunk/matplotlib/examples/api/agg_oo.py (rev 0) +++ trunk/matplotlib/examples/api/agg_oo.py 2008-05-16 19:51:33 UTC (rev 5153) @@ -0,0 +1,16 @@ +#!/usr/bin/env python +""" +A pure OO (look Ma, no pylab!) example using the agg backend +""" +from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas +from matplotlib.figure import Figure + +fig = Figure() +canvas = FigureCanvas(fig) +ax = fig.add_subplot(111) +ax.plot([1,2,3]) +ax.set_title('hi mom') +ax.grid(True) +ax.set_xlabel('time') +ax.set_ylabel('volts') +canvas.print_figure('test') Deleted: trunk/matplotlib/examples/pylab/agg_oo.py =================================================================== --- trunk/matplotlib/examples/pylab/agg_oo.py 2008-05-16 19:49:55 UTC (rev 5152) +++ trunk/matplotlib/examples/pylab/agg_oo.py 2008-05-16 19:51:33 UTC (rev 5153) @@ -1,16 +0,0 @@ -#!/usr/bin/env python -""" -A pure OO (look Ma, no pylab!) example using the agg backend -""" -from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas -from matplotlib.figure import Figure - -fig = Figure() -canvas = FigureCanvas(fig) -ax = fig.add_subplot(111) -ax.plot([1,2,3]) -ax.set_title('hi mom') -ax.grid(True) -ax.set_xlabel('time') -ax.set_ylabel('volts') -canvas.print_figure('test') This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |