SourceForge logo
SourceForge logo
Menu

matplotlib-checkins

Revision: 3535
 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=3535&view=rev
Author: efiring
Date: 2007年07月16日 00:47:32 -0700 (2007年7月16日)
Log Message:
-----------
Improved docstring for matplotlib package
Modified Paths:
--------------
 trunk/matplotlib/lib/matplotlib/__init__.py
Modified: trunk/matplotlib/lib/matplotlib/__init__.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/__init__.py	2007年07月16日 02:16:22 UTC (rev 3534)
+++ trunk/matplotlib/lib/matplotlib/__init__.py	2007年07月16日 07:47:32 UTC (rev 3535)
@@ -1,144 +1,57 @@
 """
 This is an object-orient plotting library.
 
-The following matlab(TM) compatible commands are provided by
+A procedural interface is provided by the companion pylab
+module, which may be imported directly, e.g.
 
- >>> from pylab import *
+ from pylab import *
 
-Plotting commands
+or using ipython:
 
- axes - Create a new axes
- axhline - draw a horizontal line across axes
- axvline - draw a vertical line across axes
- axhspan - draw a horizontal bar across axes
- axvspan - draw a vertical bar across axes
- axis - Set or return the current axis limits
- bar - make a bar chart
- barh - a horizontal bar chart
- boxplot - make a box and whisker plot
- cla - clear current axes
- clf - clear a figure window
- close - close a figure window
- colorbar - add a colorbar to the current figure
- cohere - make a plot of coherence
- contour - make a contour plot
- csd - make a plot of cross spectral density
- draw - Force a redraw of the current figure
- errorbar - make an errorbar graph
- figlegend - make legend on the figure rather than the axes
- figimage - make a figure image
- figtext - add text in figure coords
- figure - create or change active figure
- fill - make filled polygons
- gca - return the current axes
- gcf - return the current figure
- gci - get the current image, or None
- get - get a handle graphics property
- gray - set the current colormap to gray
- jet - set the current colormap to jet
- hist - make a histogram
- hold - set the axes hold state
- legend - make an axes legend
- loglog - a log log plot
- imread - load image file into array
- imshow - plot image data
- pcolor - make a pseudocolor plot
- plot - make a line plot
- psd - make a plot of power spectral density
- rc - control the default params
- savefig - save the current figure
- scatter - make a scatter plot
- set - set a handle graphics property
- semilogx - log x axis
- semilogy - log y axis
- show - show the figures
- specgram - a spectrogram plot
- stem - make a stem plot
- subplot - make a subplot (numrows, numcols, axesnum)
- table - add a table to the plot
- text - add some text at location x,y to the current axes
- title - add a title to the current axes
- xlim - set/get the xlimits
- ylim - set/get the ylimits
- xticks - set/get the xticks
- yticks - set/get the yticks
- xlabel - add an xlabel to the current axes
- ylabel - add a ylabel to the current axes
+ ipython -pylab
 
-Matrix commands
+For the most part, direct use of the object-oriented library
+is encouraged when programming rather than working
+interactively. The exceptions are the pylab commands
+figure(), subplot(), show(), and savefig(), which can
+greatly simplify scripting.
 
- cumprod - the cumulative product along a dimension
- cumsum - the cumulative sum along a dimension
- detrend - remove the mean or besdt fit line from an array
- diag - the k-th diagonal of matrix
- diff - the n-th differnce of an array
- eig - the eigenvalues and eigen vectors of v
- eye - a matrix where the k-th diagonal is ones, else zero
- find - return the indices where a condition is nonzero
- fliplr - flip the rows of a matrix up/down
- flipud - flip the columns of a matrix left/right
- linspace - a linear spaced vector of N values from min to max inclusive
- ones - an array of ones
- rand - an array from the uniform distribution [0,1]
- randn - an array from the normal distribution
- rot90 - rotate matrix k*90 degress counterclockwise
- squeeze - squeeze an array removing any dimensions of length 1
- tri - a triangular matrix
- tril - a lower triangular matrix
- triu - an upper triangular matrix
- vander - the Vandermonde matrix of vector x
- svd - singular value decomposition
- zeros - a matrix of zeros
+Modules include:
+ axes: defines the Axes class. Most pylab commands are
+ wrappers for Axes methods. The axes module is the
+ highest level of OO access to the library.
+ figure: defines Figure class.
+ artist: defines the Artist base class for all classes
+ that draw things.
+ line: defines Line2D class for drawing lines and markers
+ patches: defines classes for drawing polygons
+ text: defines Text, TextWithDash, and Annotate classes
+ image: defines AxesImage and FigureImage classes
+ collections: classes for efficient drawing of groups of
+ lines or polygons
+ colors: classes for interpreting color specifications
+ and for making colormaps
+ cm: colormaps and the ScalarMappable mixin class for
+ providing color mapping functionality to other
+ classes
+ ticker: classes for calculating tick mark locations and
+ for formatting tick labels
+ backends: a subpackage with modules for various gui
+ libraries and output formats
 
-Probability
+The base matplotlib namespace includes:
+ rcParams: a dictionary of default configuration
+ settings. It is initialized by code which may be
+ overridded by a matplotlibrc file.
+ rc(): a function for setting groups of rcParams values
+ use(): a function for setting the matplotlib backend.
+ If used, this function must be called immediately
+ after importing matplotlib for the first time. In
+ particular, it must be called *before* importing
+ pylab (if pylab is imported).
 
- levypdf - The levy probability density function from the char. func.
- normpdf - The Gaussian probability density function
- rand - random numbers from the uniform distribution
- randn - random numbers from the normal distribution
-
-Statistics
-
- corrcoef - correlation coefficient
- cov - covariance matrix
- max - the maximum along dimension m
- mean - the mean along dimension m
- median - the median along dimension m
- min - the minimum along dimension m
- norm - the norm of vector x
- prod - the product along dimension m
- ptp - the max-min along dimension m
- std - the standard deviation along dimension m
- sum - the sum along dimension m
-
-Time series analysis
-
- bartlett - M-point Bartlett window
- blackman - M-point Blackman window
- cohere - the coherence using average periodiogram
- csd - the cross spectral density using average periodiogram
- fft - the fast Fourier transform of vector x
- hamming - M-point Hamming window
- hanning - M-point Hanning window
- hist - compute the histogram of x
- kaiser - M length Kaiser window
- psd - the power spectral density using average periodiogram
- sinc - the sinc function of array x
-
-Other
-
- angle - the angle of a complex array
- polyfit - fit x, y to an n-th order polynomial
- polyval - evaluate an n-th order polynomial
- roots - the roots of the polynomial coefficients in p
- trapz - trapezoidal integration
-
-
-Credits: The plotting commands were provided by
-John D. Hunter <jdh...@ac...>
-
-Most of the other commands are from the Numeric, MLab and FFT, with
-the exception of those in mlab.py provided by matplotlib.
+matplotlib is written by John D. Hunter (jdh2358 at
+gmail.com).
 """
 from __future__ import generators
 
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
From: <jo...@us...> - 2007年09月28日 15:50:29
Revision: 3899
 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=3899&view=rev
Author: jouni
Date: 2007年09月28日 08:50:01 -0700 (2007年9月28日)
Log Message:
-----------
Catch UnboundLocalError in checkdep_pdftops; it is raised if
no output line of pdftops -v contains the word "version".
Modified Paths:
--------------
 trunk/matplotlib/lib/matplotlib/__init__.py
Modified: trunk/matplotlib/lib/matplotlib/__init__.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/__init__.py	2007年09月28日 12:41:08 UTC (rev 3898)
+++ trunk/matplotlib/lib/matplotlib/__init__.py	2007年09月28日 15:50:01 UTC (rev 3899)
@@ -270,7 +270,7 @@
 v = line.split()[-1]
 float(v)
 return v
- except (IndexError, ValueError):
+ except (IndexError, ValueError, UnboundLocalError):
 return None
 
 def compare_versions(a, b):
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 3553
 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=3553&view=rev
Author: dsdale
Date: 2007年07月17日 09:37:14 -0700 (2007年7月17日)
Log Message:
-----------
add some comments to new RcParams class
Modified Paths:
--------------
 trunk/matplotlib/lib/matplotlib/__init__.py
Modified: trunk/matplotlib/lib/matplotlib/__init__.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/__init__.py	2007年07月17日 15:35:41 UTC (rev 3552)
+++ trunk/matplotlib/lib/matplotlib/__init__.py	2007年07月17日 16:37:14 UTC (rev 3553)
@@ -531,13 +531,14 @@
 class RcParams(dict):
 
 """A dictionary object including validation
+ 
+ validating functions are defined and associated with rc parameters in
+ rcsetup.py
 """
 
 validate = dict([ (key, converter) for key, (default, converter) in \
 defaultParams.iteritems() ])
 
- fail_on_error = False
- 
 def __setitem__(self, key, val):
 try:
 if key in _deprecated_map.keys():
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
From: <ds...@us...> - 2007年10月19日 15:41:30
Revision: 3969
 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=3969&view=rev
Author: dsdale
Date: 2007年10月19日 08:41:25 -0700 (2007年10月19日)
Log Message:
-----------
whitespace cleanup
Modified Paths:
--------------
 trunk/matplotlib/lib/matplotlib/__init__.py
Modified: trunk/matplotlib/lib/matplotlib/__init__.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/__init__.py	2007年10月19日 15:37:41 UTC (rev 3968)
+++ trunk/matplotlib/lib/matplotlib/__init__.py	2007年10月19日 15:41:25 UTC (rev 3969)
@@ -149,13 +149,10 @@
 # --verbose-silent or --verbose-helpful
 _commandLineVerbose = None
 
-
 for arg in sys.argv[1:]:
 if not arg.startswith('--verbose-'): continue
 _commandLineVerbose = arg[10:]
 
-
-
 def __init__(self):
 self.set_level('silent')
 self.fileo = sys.stdout
@@ -195,8 +192,6 @@
 return True
 return False
 
-
-
 def wrap(self, fmt, func, level='helpful', always=True):
 """
 return a callable function that wraps func and reports it
@@ -225,6 +220,7 @@
 
 verbose=Verbose()
 
+
 def checkdep_dvipng():
 try:
 stdin, stdout = os.popen4('dvipng -version')
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
From: <jd...@us...> - 2007年11月27日 18:34:45
Revision: 4472
 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4472&view=rev
Author: jdh2358
Date: 2007年11月27日 10:34:38 -0800 (2007年11月27日)
Log Message:
-----------
tagged version 91.0 for release
Modified Paths:
--------------
 trunk/matplotlib/lib/matplotlib/__init__.py
Modified: trunk/matplotlib/lib/matplotlib/__init__.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/__init__.py	2007年11月27日 18:07:01 UTC (rev 4471)
+++ trunk/matplotlib/lib/matplotlib/__init__.py	2007年11月27日 18:34:38 UTC (rev 4472)
@@ -51,11 +51,11 @@
 pylab (if pylab is imported).
 
 matplotlib is written by John D. Hunter (jdh2358 at
-gmail.com).
+gmail.com and a host of others).
 """
 from __future__ import generators
 
-__version__ = '0.90.1'
+__version__ = '0.91.0'
 __revision__ = '$Revision$'
 __date__ = '$Date$'
 
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
From: <ds...@us...> - 2008年01月14日 13:21:30
Revision: 4868
 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4868&view=rev
Author: dsdale
Date: 2008年01月14日 05:21:23 -0800 (2008年1月14日)
Log Message:
-----------
minor bugfix in default rcParams
Modified Paths:
--------------
 trunk/matplotlib/lib/matplotlib/__init__.py
Modified: trunk/matplotlib/lib/matplotlib/__init__.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/__init__.py	2008年01月14日 13:15:17 UTC (rev 4867)
+++ trunk/matplotlib/lib/matplotlib/__init__.py	2008年01月14日 13:21:23 UTC (rev 4868)
@@ -561,8 +561,10 @@
 
 fname = matplotlib_fname()
 if not os.path.exists(fname):
+ # this should never happen, default in mpl-data should always be found
 message = 'could not find rc file; returning defaults'
- ret = dict([ (key, tup[0]) for key, tup in defaultParams.items()])
+ ret = RcParams([ (key, default) for key, (default, converter) in \
+ defaultParams.iteritems() ])
 warnings.warn(message)
 return ret
 
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /