Skip to content

Commit 2e5e9ea

Browse files
committed
removed tz info from dates; updated htdocs
svn path=/trunk/matplotlib/; revision=249
1 parent 87130f9 commit 2e5e9ea

16 files changed

+145
-98
lines changed

.matplotlibrc

Lines changed: 30 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# - a scalar grayscale intensity such as 0.75
2121

2222
#### CONFIGURATION BEGINS HERE
23-
backend : GTK # the default backend
23+
backend : GTKAgg # the default backend
2424
numerix : Numeric # Numeric or numarray
2525
interactive : False # see http://matplotlib.sourceforge.net/interactive.html
2626

@@ -34,43 +34,46 @@ lines.linestyle : - # solid line
3434
lines.color : b # blue; color format or hex string
3535
lines.markersize : 6 # markersize, in points
3636
lines.antialiased : True # render lines in antialised (no jaggies)
37-
lines.data_clipping : False # Use data clipping in addition to viewport
37+
lines.data_clipping : True # Use data clipping in addition to viewport
3838
# clipping. Useful if you plot long data
3939
# sets with only a fraction in the viewport
4040

4141
### FONT
42+
#
4243
# font properties used by text.Text. see
43-
# http://matplotlib.sourceforge.net/matplotlib.Font.html for more information
44-
# on font properties. The 6 font properties used for font matching are given
45-
# below with their default values.
44+
# http://matplotlib.sourceforge.net/matplotlib.fonts.html for more
45+
# information on font properties. The 6 font properties used for font
46+
# matching are given below with their default values.
4647
#
4748
# The font.family property has five values: 'serif' (e.g. Times),
48-
# 'sans-serif' (e.g. Helvetica), 'cursive' (e.g. Zapf-Chancery), 'fantasy'
49-
# (e.g. Western), and 'monospace' (e.g. Courier). Each of these font families
50-
# has a default list of font names in decreasing order of priority associated
51-
# with them.
49+
# 'sans-serif' (e.g. Helvetica), 'cursive' (e.g. Zapf-Chancery),
50+
# 'fantasy' (e.g. Western), and 'monospace' (e.g. Courier). Each of
51+
# these font families has a default list of font names in decreasing
52+
# order of priority associated with them.
5253
#
53-
# The font.style property has three values: normal (or roman), italic or
54-
# oblique. The oblique style will be used for italic, if it is not present.
54+
# The font.style property has three values: normal (or roman), italic
55+
# or oblique. The oblique style will be used for italic, if it is not
56+
# present.
5557
#
56-
# The font.variant property has two values: normal or small-caps. For TrueType
57-
# fonts, which are scalable fonts, small-caps is equivalent to using a font
58-
# size of 'smaller', or about 83% of the current font size.
58+
# The font.variant property has two values: normal or small-caps. For
59+
# TrueType fonts, which are scalable fonts, small-caps is equivalent
60+
# to using a font size of 'smaller', or about 83% of the current font
61+
# size.
5962
#
60-
# The font.weight property has effectively 13 values: normal, bold, bolder,
61-
# lighter, 100, 200, 300, ..., 900. Normal is the same as 400, and bold is
62-
# 700. bolder and lighter are relative values with respect to the current
63-
# weight.
63+
# The font.weight property has effectively 13 values: normal, bold,
64+
# bolder, lighter, 100, 200, 300, ..., 900. Normal is the same as
65+
# 400, and bold is 700. bolder and lighter are relative values with
66+
# respect to the current weight.
6467
#
65-
# The font.stretch property has 11 values: ultra-condensed, extra-condensed,
66-
# condensed, semi-condensed, normal, semi-expanded, expanded, extra-expanded,
67-
# ultra-expanded, wider, and narrower. This property is not currently
68-
# implemented.
68+
# The font.stretch property has 11 values: ultra-condensed,
69+
# extra-condensed, condensed, semi-condensed, normal, semi-expanded,
70+
# expanded, extra-expanded, ultra-expanded, wider, and narrower. This
71+
# property is not currently implemented.
6972
#
70-
# The font.size property has 11 values: xx-small, x-small, small, medium,
71-
# large, x-large, xx-large, larger, smaller, length (such as 12pt), and
72-
# percentage. larger and smaller are relative values. percentage is not yet
73-
# implemented.
73+
# The font.size property has 11 values: xx-small, x-small, small,
74+
# medium, large, x-large, xx-large, larger, smaller, length (such as
75+
# 12pt), and percentage. larger and smaller are relative values.
76+
# percentage is not yet implemented.
7477
#
7578
font.family : sans-serif
7679
font.style : normal
@@ -96,7 +99,7 @@ text.color : k # black
9699
# default fontsizes for ticklabels, and so on
97100
axes.facecolor : w # background color; white
98101
axes.edgecolor : k # edge color; black
99-
axes.linewidth : 1.0 # edge linewidth
102+
axes.linewidth : 0.5 # edge linewidth
100103
axes.grid : False # display grid or not
101104
axes.titlesize : 14 # fontsize of the axes title
102105
axes.labelsize : 12 # fontsize of the x any y labels

LICENSE/LICENSE

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
LICENSE AGREEMENT FOR MATPLOTLIB 0.53b
1+
LICENSE AGREEMENT FOR MATPLOTLIB 0.53
22
--------------------------------------
33

44
1. This LICENSE AGREEMENT is between the John D. Hunter ("JDH"), and
@@ -9,30 +9,30 @@ documentation.
99
2. Subject to the terms and conditions of this License Agreement, JDH
1010
hereby grants Licensee a nonexclusive, royalty-free, world-wide
1111
license to reproduce, analyze, test, perform and/or display publicly,
12-
prepare derivative works, distribute, and otherwise use matplotlib 0.53b
12+
prepare derivative works, distribute, and otherwise use matplotlib 0.53
1313
alone or in any derivative version, provided, however, that JDH's
1414
License Agreement and JDH's notice of copyright, i.e., "Copyright (c)
1515
2002, 2003 John D. Hunter; All Rights Reserved" are retained in
16-
matplotlib 0.53b alone or in any derivative version prepared by
16+
matplotlib 0.53 alone or in any derivative version prepared by
1717
Licensee.
1818

1919
3. In the event Licensee prepares a derivative work that is based on
20-
or incorporates matplotlib 0.53b or any part thereof, and wants to make
20+
or incorporates matplotlib 0.53 or any part thereof, and wants to make
2121
the derivative work available to others as provided herein, then
2222
Licensee hereby agrees to include in any such work a brief summary of
23-
the changes made to matplotlib 0.53b.
23+
the changes made to matplotlib 0.53.
2424

25-
4. JDH is making matplotlib 0.53b available to Licensee on an "AS IS"
25+
4. JDH is making matplotlib 0.53 available to Licensee on an "AS IS"
2626
basis. JDH MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
2727
IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, JDH MAKES NO AND
2828
DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS
29-
FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF MATPLOTLIB 0.53b WILL NOT
29+
FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF MATPLOTLIB 0.53 WILL NOT
3030
INFRINGE ANY THIRD PARTY RIGHTS.
3131

3232
5. JDH SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF
33-
MATPLOTLIB 0.53b FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES
33+
MATPLOTLIB 0.53 FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES
3434
OR LOSS AS A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING
35-
MATPLOTLIB 0.53b, OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE
35+
MATPLOTLIB 0.53, OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE
3636
POSSIBILITY THEREOF.
3737

3838
6. This License Agreement will automatically terminate upon a material
@@ -44,6 +44,6 @@ Licensee. This License Agreement does not grant permission to use JDH
4444
trademarks or trade name in a trademark sense to endorse or promote
4545
products or services of Licensee, or any third party.
4646

47-
8. By copying, installing or otherwise using matplotlib 0.53b, Licensee
47+
8. By copying, installing or otherwise using matplotlib 0.53, Licensee
4848
agrees to be bound by the terms and conditions of this License
4949
Agreement.

MANIFEST

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ GOALS
55
INSTALL
66
INTERACTIVE
77
KNOWN_BUGS
8+
MANIFEST
89
MANIFEST.in
910
Makefile
1011
README
@@ -189,6 +190,7 @@ examples/embedding_in_wx.py
189190
examples/errorbar_demo.py
190191
examples/figtext.py
191192
examples/fill_demo.py
193+
examples/finance_demo.py
192194
examples/font_properties_demo.py
193195
examples/fonts_demo.py
194196
examples/ftface_props.py

Makefile

Lines changed: 13 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
# Copyright (C) 2003 <jdhunter@ace.bsd.uchicago.edu>
33
# $Header$
44
# $Log$
5+
# Revision 1.28 2004/04/20 22:53:37 jdh2358
6+
# removed tz info from dates; updated htdocs
7+
#
58
# Revision 1.27 2004/04/20 11:32:35 jdh2358
69
# added finance module
710
#
@@ -85,43 +88,12 @@
8588
#
8689

8790
PYTHON = /usr/local/bin/python2.3
88-
PYDOC = /usr/local/bin/pydoc
8991
VERSION = `${PYTHON} setup.py --version`
9092

9193
DISTFILES = API_CHANGES KNOWN_BUGS INSTALL README TODO license \
9294
CHANGELOG Makefile GOALS INTERACTIVE \
9395
MANIFEST.in matplotlib examples setup.py
9496

95-
MODULES = \
96-
matplotlib.afm \
97-
matplotlib.artist \
98-
matplotlib.axes \
99-
matplotlib.axis \
100-
matplotlib.backend_bases \
101-
matplotlib.backends.backend_agg \
102-
matplotlib.backends.backend_gd \
103-
matplotlib.backends.backend_gtk \
104-
matplotlib.backends.backend_gtkgd \
105-
matplotlib.backends.backend_paint \
106-
matplotlib.backends.backend_ps \
107-
matplotlib.backends.backend_template \
108-
matplotlib.backends.backend_tkagg \
109-
matplotlib.backends.backend_wx \
110-
matplotlib.cbook \
111-
matplotlib.colors \
112-
matplotlib.figure \
113-
matplotlib.image \
114-
matplotlib.legend \
115-
matplotlib.lines \
116-
matplotlib.matlab \
117-
matplotlib.mathtext \
118-
matplotlib.mlab \
119-
matplotlib.numerix \
120-
matplotlib.patches \
121-
matplotlib.table \
122-
matplotlib.text \
123-
matplotlib.transforms \
124-
12597
RELEASE = matplotlib-${VERSION}
12698

12799

@@ -132,27 +104,21 @@ clean:
132104
find examples \( -name "*.png" -o -name "*.ps" -o -name "*.jpg" -o -name "*.eps" \) | xargs rm -f
133105
find . \( -name "#*" -o -name ".#*" -o -name ".*~" -o -name "*~"\) | xargs rm -f
134106

107+
108+
release: ${DISTFILES}
109+
${PYTHON} license.py ${VERSION};\
110+
${PYTHON} setup.py sdist --formats=gztar,zip;
111+
112+
pyback:
113+
tar cvfz pyback.tar.gz *.py matplotlib/*.py examples/*.py matplotlib/backends/*.py unit/*.py
114+
135115
htmldocs:
136-
cp build/lib.linux-i686-2.3/matplotlib/*.so matplotlib/;\
137-
cp build/lib.linux-i686-2.3/matplotlib/backends/*.so matplotlib/backends/;\
138-
rm -rf htdocs/matplotlib;\
139-
cp -a matplotlib htdocs/;\
140-
rm htdocs/matplotlib/backends/*.so;\
116+
141117
cp examples/*.py htdocs/examples;\
142118
cp .matplotlibrc NUMARRAY_ISSUES API_CHANGES htdocs/;\
143-
rm -f docs/*.html;\
144-
${PYDOC} -w ${MODULES};\
145-
mv *.html docs/
146119
cd htdocs;\
147120
${PYTHON} process_docs.py;\
148121
${PYTHON} convert.py;\
149122
tar cfz site.tar.gz *.html screenshots tut examples gd .matplotlibrc NUMARRAY_ISSUES API_CHANGES;\
150123
cd ..;\
151-
rm matplotlib/backends/*.so;\
152-
153-
release: ${DISTFILES}
154-
${PYTHON} license.py ${VERSION};\
155-
${PYTHON} setup.py sdist --formats=gztar,zip;
156-
157-
pyback:
158-
tar cvfz pyback.tar.gz *.py matplotlib/*.py examples/*.py matplotlib/backends/*.py unit/*.py
124+
cp -a matplotlib htdocs/;

TODO

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,4 +315,8 @@
315315

316316
-- decreasing log axes needs fix
317317

318-
-- overflow error in math.floor(ld) on stock_demo in OSX
318+
-- overflow error in math.floor(ld) on stock_demo in OSX
319+
320+
-- DONE modify pcolor to allow custom cmap
321+
322+
-- Check for empty quote data returns

examples/alignment_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,5 +82,5 @@
8282
transy=ax.yaxis.transAxis)
8383

8484
axis('off')
85-
savefig('alignment_test', dpi=300)
85+
#savefig('alignment_test', dpi=300)
8686
show()

examples/backend_driver.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
'date_demo2.py',
2222
'fill_demo.py',
2323
'figtext.py',
24+
'finance_demo.py',
2425
'histogram_demo.py',
2526
'image_demo.py',
2627
'image_demo2.py',

examples/date_demo1.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
controlling major and minor ticks
55
66
All matplotlib date plotting is done by converting date instances into
7-
seconds since the epoch, gmtime. The conversion, tick locating and
8-
formatting is done behind the scenes so this is most transparent to
9-
you. The dates module provides several converter classes that you can
10-
pass to the date plotting functions which will convert your dates as
7+
seconds since the epoch. The conversion, tick locating and formatting
8+
is done behind the scenes so this is most transparent to you. The
9+
dates module provides several converter classes that you can pass to
10+
the date plotting functions which will convert your dates as
1111
necessary. Currently epoch dates (already converted) are supported
1212
with EpochCOnverter, python2.3 datetime instances are supported with
1313
PyDatetimeConverter, and it won't be much work to add an mx.Datetime

examples/date_demo2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
pydates = PyDatetimeConverter()
2323

24-
mondays = WeekdayLocator(SATURDAY) # every monday
24+
mondays = WeekdayLocator(MONDAY) # every monday
2525
months = MonthLocator(1) # every month
2626
monthsFmt = DateFormatter('%b %d')
2727

examples/finance_demo.py

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
from matplotlib.matlab import *
2+
from matplotlib.dates import PyDatetimeConverter, MONDAY
3+
from matplotlib.ticker import DateFormatter, WeekdayLocator, HourLocator, DayLocator
4+
from matplotlib.finance import quotes_historical_yahoo, candlestick,\
5+
plot_day_summary
6+
7+
import datetime
8+
9+
# you can specify dates in any format you have a converter for.
10+
# matplotlib will convert everything under the hood to seconds since
11+
# the epoch, but you shouldn't have to deal with this
12+
date1 = datetime.date( 2004, 2, 1 )
13+
date2 = datetime.date( 2004, 4, 12 )
14+
15+
# quotes in Eastern time zone
16+
converter = PyDatetimeConverter()
17+
18+
19+
mondays = WeekdayLocator(MONDAY) # major ticks on the mondays
20+
hours = DayLocator() # minor ticks on the days
21+
weekFormatter = DateFormatter('%b %d') # Eg, Jan 12
22+
dayFormatter = DateFormatter('%d') # Eg, 12
23+
24+
quotes = quotes_historical_yahoo(
25+
'INTC', date1, date2, converter)
26+
27+
ax = subplot(111)
28+
ax.xaxis.set_major_locator(mondays)
29+
ax.xaxis.set_minor_locator(hours)
30+
ax.xaxis.set_major_formatter(weekFormatter)
31+
#ax.xaxis.set_minor_formatter(dayFormatter)
32+
33+
#plot_day_summary(ax, quotes, ticksize=0.4, converter=converter)
34+
candlestick(ax, quotes, width=0.6, converter=converter)
35+
36+
show()
37+

examples/image_demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@ def bivariate_normal(X, Y, sigmax=1.0, sigmay=1.0,
3131

3232

3333
axis('off')
34-
savefig('test')
34+
#savefig('test')
3535
show()
3636

examples/psd_demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
figure(2)
1818
psd(s, 512, 1/dt)
1919

20-
savefig('psd_demo.png')
20+
#savefig('psd_demo.png')
2121
show()
2222

2323

examples/simple_plot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
ylabel('voltage (mV)')
1010
title('About as simple as it gets, folks')
1111
grid(True)
12-
savefig('simple_plot',dpi=300)
12+
#savefig('simple_plot',dpi=300)
1313
show()

examples/text_themes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ def f(t):
2020
xlabel('time (s)', font, fontangle='italic')
2121
ylabel('voltage (mV)', font)
2222

23-
savefig('text_themes')
23+
#savefig('text_themes')
2424
show()

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@
2727
# high quality image renderer to render to all the GUI windows
2828

2929
# build GTK GUI with Agg renderer ; requires pygtk src distros installed
30-
BUILD_GTKAGG = 1
30+
BUILD_GTKAGG = 0
3131

3232
# build TK GUI with Agg renderer ; requires Tkinter Python extension
3333
# and Tk includes
34-
BUILD_TKAGG = 1
34+
BUILD_TKAGG = 0
3535

3636
# build a small extension to manage the focus on win32 platforms.
3737
BUILD_WINDOWING = 0
@@ -85,7 +85,7 @@
8585
build_image(ext_modules, packages, BUILD_IMAGE)
8686

8787
setup(name="matplotlib",
88-
version= '0.53b',
88+
version= '0.53',
8989
description = "Matlab style python plotting package",
9090
author = "John D. Hunter",
9191
author_email="jdhunter@ace.bsd.uchicago.edu",

0 commit comments

Comments
 (0)