From: <jd...@us...> - 2008-10-16 18:32:25
|
Revision: 6224 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6224&view=rev Author: jdh2358 Date: 2008-10-16 18:32:13 +0000 (Thu, 16 Oct 2008) Log Message: ----------- minor formatting tweaks Modified Paths: -------------- trunk/matplotlib/examples/api/logo2.py trunk/matplotlib/lib/matplotlib/axes.py trunk/matplotlib/lib/matplotlib/mlab.py Modified: trunk/matplotlib/examples/api/logo2.py =================================================================== --- trunk/matplotlib/examples/api/logo2.py 2008-10-16 17:32:39 UTC (rev 6223) +++ trunk/matplotlib/examples/api/logo2.py 2008-10-16 18:32:13 UTC (rev 6224) @@ -9,8 +9,8 @@ import matplotlib.mlab as mlab from pylab import rand -mpl.rcParams['xtick.labelsize'] = 6 -mpl.rcParams['ytick.labelsize'] = 6 +mpl.rcParams['xtick.labelsize'] = 10 +mpl.rcParams['ytick.labelsize'] = 12 mpl.rcParams['axes.edgecolor'] = 'gray' @@ -18,7 +18,7 @@ #figcolor = '#EFEFEF' figcolor = 'white' dpi = 80 -fig = plt.figure(figsize=(6, 1.),dpi=dpi) +fig = plt.figure(figsize=(6, 1.1),dpi=dpi) fig.figurePatch.set_edgecolor(figcolor) fig.figurePatch.set_facecolor(figcolor) @@ -43,29 +43,40 @@ return ax def add_matplotlib_text(ax): - ax.text(0.975, 0.5, 'matplotlib', color='#11557c', fontsize=65, + ax.text(0.95, 0.5, 'matplotlib', color='#11557c', fontsize=65, ha='right', va='center', alpha=1.0, transform=ax.transAxes) def add_polar_bar(): - ax = fig.add_axes([0.05, 0.1, 0.2, 0.8], polar=True) + ax = fig.add_axes([0.025, 0.075, 0.2, 0.85], polar=True) + + ax.axesPatch.set_alpha(axalpha) + ax.set_axisbelow(True) N = 7 arc = 2. * np.pi theta = np.arange(0.0, arc, arc/N) - radii = 10 * np.array([0.2, 0.6, 1.0, 0.7, 0.4, 0.5, 0.8]) + radii = 10 * np.array([0.2, 0.6, 0.8, 0.7, 0.4, 0.5, 0.8]) width = np.pi / 4 * np.array([0.4, 0.4, 0.6, 0.8, 0.2, 0.5, 0.3]) bars = ax.bar(theta, radii, width=width, bottom=0.0) for r, bar in zip(radii, bars): bar.set_facecolor(cm.jet(r/10.)) bar.set_alpha(0.6) + for label in ax.get_xticklabels() + ax.get_yticklabels(): + label.set_visible(False) + + for line in ax.get_ygridlines() + ax.get_xgridlines(): + line.set_lw(0.8) + line.set_alpha(0.9) + line.set_ls('-') + line.set_color('0.5') + + ax.set_yticks(np.arange(1, 9, 2)) + ax.set_rmax(9) + if __name__ == '__main__': main_axes = add_math_background() add_polar_bar() -# add_histogram() -# add_scatter() -# add_pcolor() - #add_pcolor2() add_matplotlib_text(main_axes) fig.savefig('logo2.png', facecolor=figcolor, edgecolor=figcolor, dpi=dpi) plt.show() Modified: trunk/matplotlib/lib/matplotlib/axes.py =================================================================== --- trunk/matplotlib/lib/matplotlib/axes.py 2008-10-16 17:32:39 UTC (rev 6223) +++ trunk/matplotlib/lib/matplotlib/axes.py 2008-10-16 18:32:13 UTC (rev 6224) @@ -3414,7 +3414,7 @@ *maxlags* is a positive integer detailing the number of lags to show. The default value of *None* will return all - :math:`2 \mathrm{len}(x) - 1`` lags. + :math:`2 \mathrm{len}(x) - 1` lags. The return value is a tuple (*lags*, *c*, *linecol*, *b*) where @@ -3425,9 +3425,8 @@ - *b* is the *x*-axis. .. seealso:: - :meth:`~matplotlib.axes.Axes.plot` or - :meth:`~matplotlib.axes.Axes.vlines`: - For documentation on valid kwargs. + :meth:`~matplotlib.axes.Axes.plot` or :meth:`~matplotlib.axes.Axes.vlines`: + For documentation on valid kwargs. **Example:** Modified: trunk/matplotlib/lib/matplotlib/mlab.py =================================================================== --- trunk/matplotlib/lib/matplotlib/mlab.py 2008-10-16 17:32:39 UTC (rev 6223) +++ trunk/matplotlib/lib/matplotlib/mlab.py 2008-10-16 18:32:13 UTC (rev 6224) @@ -1271,7 +1271,7 @@ dtype, the array will have this dtype. default: numpy.float_ .. seealso:: - See :file:`examples/load_demo.py` in the source tree: + See :file:`examples/pylab_examples/load_converter.py` in the source tree: Exercises many of these options. """ @@ -2414,7 +2414,7 @@ files is automatic, if the filename ends in .gz .. seealso:: - :func:`csv2rec` and :func:`rec2csv`: + :func:`csv2rec`: For information about *missing* and *missingd*, which can be used to fill in masked values into your CSV file. """ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |