From: <ef...@us...> - 2010-06-26 08:14:07
|
Revision: 8469 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8469&view=rev Author: efiring Date: 2010-06-26 08:14:01 +0000 (Sat, 26 Jun 2010) Log Message: ----------- examples: fix references to MATLAB Modified Paths: -------------- trunk/matplotlib/examples/animation/movie_demo.py trunk/matplotlib/examples/pylab_examples/axes_props.py trunk/matplotlib/examples/pylab_examples/color_demo.py trunk/matplotlib/examples/pylab_examples/polar_demo.py trunk/matplotlib/examples/pylab_examples/psd_demo.py trunk/matplotlib/examples/pylab_examples/psd_demo3.py trunk/matplotlib/examples/pylab_examples/psd_demo_complex.py trunk/matplotlib/examples/pylab_examples/set_and_get.py trunk/matplotlib/examples/pylab_examples/text_handles.py Modified: trunk/matplotlib/examples/animation/movie_demo.py =================================================================== --- trunk/matplotlib/examples/animation/movie_demo.py 2010-06-26 07:45:26 UTC (rev 8468) +++ trunk/matplotlib/examples/animation/movie_demo.py 2010-06-26 08:14:01 UTC (rev 8469) @@ -87,7 +87,7 @@ for i in range(len(y)) : # - # The next four lines are just like Matlab. + # The next four lines are just like MATLAB. # plt.plot(x,y[i],'b.') plt.axis((x[0],x[-1],-0.25,1)) Modified: trunk/matplotlib/examples/pylab_examples/axes_props.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/axes_props.py 2010-06-26 07:45:26 UTC (rev 8468) +++ trunk/matplotlib/examples/pylab_examples/axes_props.py 2010-06-26 08:14:01 UTC (rev 8469) @@ -10,7 +10,7 @@ plot(t, s) grid(True) -# matlab style +# MATLAB style xticklines = getp(gca(), 'xticklines') yticklines = getp(gca(), 'yticklines') xgridlines = getp(gca(), 'xgridlines') Modified: trunk/matplotlib/examples/pylab_examples/color_demo.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/color_demo.py 2010-06-26 07:45:26 UTC (rev 8468) +++ trunk/matplotlib/examples/pylab_examples/color_demo.py 2010-06-26 08:14:01 UTC (rev 8469) @@ -2,7 +2,7 @@ """ matplotlib gives you 4 ways to specify colors, - 1) as a single letter string, ala matlab + 1) as a single letter string, ala MATLAB 2) as an html style hex string or html color name Modified: trunk/matplotlib/examples/pylab_examples/polar_demo.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/polar_demo.py 2010-06-26 07:45:26 UTC (rev 8468) +++ trunk/matplotlib/examples/pylab_examples/polar_demo.py 2010-06-26 08:14:01 UTC (rev 8469) @@ -28,7 +28,7 @@ # # you could change the radial bounding box (zoom out) by setting the # ylim (radial coordinate is the second argument to the plot command, -# as in matlab(TM), though this is not advised currently because it is not +# as in MATLAB, though this is not advised currently because it is not # clear to me how the axes should behave in the change of view limits. # Please advise me if you have opinions. Likewise, the pan/zoom # controls probably do not do what you think they do and are better @@ -48,7 +48,7 @@ rc('ytick', labelsize=15) # force square figure and square axes looks better for polar, IMO -width, height = matplotlib.rcParams['figure.figsize'] +width, height = matplotlib.rcParams['figure.figsize'] size = min(width, height) # make a square figure fig = figure(figsize=(size, size)) Modified: trunk/matplotlib/examples/pylab_examples/psd_demo.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/psd_demo.py 2010-06-26 07:45:26 UTC (rev 8468) +++ trunk/matplotlib/examples/pylab_examples/psd_demo.py 2010-06-26 08:14:01 UTC (rev 8469) @@ -19,7 +19,7 @@ show() """ -% compare with matlab(TM) +% compare with MATLAB dt = 0.01; t = [0:dt:10]; nse = randn(size(t)); Modified: trunk/matplotlib/examples/pylab_examples/psd_demo3.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/psd_demo3.py 2010-06-26 07:45:26 UTC (rev 8468) +++ trunk/matplotlib/examples/pylab_examples/psd_demo3.py 2010-06-26 08:14:01 UTC (rev 8469) @@ -1,6 +1,6 @@ -#This is a ported version of a Matlab example from the signal processing +#This is a ported version of a MATLAB example from the signal processing #toolbox that showed some difference at one time between Matplotlib's and -#MatLab's scaling of the PSD. +#MATLAB's scaling of the PSD. import numpy as np import matplotlib.pyplot as plt Modified: trunk/matplotlib/examples/pylab_examples/psd_demo_complex.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/psd_demo_complex.py 2010-06-26 07:45:26 UTC (rev 8468) +++ trunk/matplotlib/examples/pylab_examples/psd_demo_complex.py 2010-06-26 08:14:01 UTC (rev 8469) @@ -1,6 +1,6 @@ -#This is a ported version of a Matlab example from the signal processing +#This is a ported version of a MATLAB example from the signal processing #toolbox that showed some difference at one time between Matplotlib's and -#MatLab's scaling of the PSD. This differs from psd_demo3.py in that +#MATLAB's scaling of the PSD. This differs from psd_demo3.py in that #this uses a complex signal, so we can see that complex PSD's work properly import numpy as np import matplotlib.pyplot as plt Modified: trunk/matplotlib/examples/pylab_examples/set_and_get.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/set_and_get.py 2010-06-26 07:45:26 UTC (rev 8468) +++ trunk/matplotlib/examples/pylab_examples/set_and_get.py 2010-06-26 08:14:01 UTC (rev 8469) @@ -1,6 +1,6 @@ """ -matlab(TM) and pylab allow you to use setp and get to set and get +MATLAB and pylab allow you to use setp and get to set and get object properties, as well as to do introspection on the object set Modified: trunk/matplotlib/examples/pylab_examples/text_handles.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/text_handles.py 2010-06-26 07:45:26 UTC (rev 8468) +++ trunk/matplotlib/examples/pylab_examples/text_handles.py 2010-06-26 08:14:01 UTC (rev 8469) @@ -2,7 +2,7 @@ #Controlling the properties of axis text using handles # See examples/text_themes.py for a more elegant, pythonic way to control -# fonts. After all, if we were slaves to matlab(TM) , we wouldn't be +# fonts. After all, if we were slaves to MATLAB , we wouldn't be # using python! from pylab import * This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |