From: <jd...@us...> - 2008-05-25 12:50:30
|
Revision: 5257 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5257&view=rev Author: jdh2358 Date: 2008-05-25 05:50:29 -0700 (Sun, 25 May 2008) Log Message: ----------- experimenting with log toggle Modified Paths: -------------- trunk/matplotlib/lib/matplotlib/backend_bases.py Modified: trunk/matplotlib/lib/matplotlib/backend_bases.py =================================================================== --- trunk/matplotlib/lib/matplotlib/backend_bases.py 2008-05-25 01:30:32 UTC (rev 5256) +++ trunk/matplotlib/lib/matplotlib/backend_bases.py 2008-05-25 12:50:29 UTC (rev 5257) @@ -4,7 +4,7 @@ """ from __future__ import division -import os +import os, warnings import numpy as np import matplotlib.cbook as cbook @@ -1201,8 +1201,17 @@ event.inaxes.grid() self.canvas.draw() elif event.key == 'l': - event.inaxes.toggle_log_lineary() - self.canvas.draw() + warnings.warn('log scale toggling under construction') + if 0: + ax = event.inaxes + scale = ax.get_yscale() + if scale=='log': + ax.set_yscale('linear') + ax.figure.canvas.draw() + elif scale=='linear': + ax.set_yscale('log') + ax.figure.canvas.draw() + elif event.key is not None and (event.key.isdigit() and event.key!='0') or event.key=='a': # 'a' enables all axes if event.key!='a': This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |