~ubuntu-branches/ubuntu/gutsy/matplotlib/gutsy

« back to all changes in this revision

Viewing changes to API_CHANGES

  • Committer: Bazaar Package Importer
  • Author(s): Michael Bienia
  • Date: 2007-07-31 23:04:56 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070731230456-lfmr0h69yh1i37w1
Tags: 0.90.1-2ubuntu1
* Merge from Debian unstable. Remaining changes:
  + debian/rules:
    - Check only the files for the python version which just got installed
      (fixes FTBFS).
    - Modify Maintainer value to match DebianMaintainerField spec.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
0.90.1 released
 
2
 
 
3
    The file dviread.py has a (very limited and fragile) dvi reader
 
4
    for usetex support. The API might change in the future so don't
 
5
    depend on it yet.
 
6
 
 
7
    Removed deprecated support for a float value as a gray-scale;
 
8
    now it must be a string, like '0.5'.  Added alpha kwarg to
 
9
    ColorConverter.to_rgba_list.
 
10
 
 
11
    New method set_bounds(vmin, vmax) for formatters, locators sets
 
12
    the viewInterval and dataInterval from floats.
 
13
 
 
14
    Removed deprecated colorbar_classic.
 
15
 
 
16
    Line2D.get_xdata and get_ydata valid_only=False kwarg is replaced
 
17
    by orig=True.  When True, it returns the original data, otherwise
 
18
    the processed data (masked, converted)
 
19
 
 
20
    Some modifications to the units interface.
 
21
    units.ConversionInterface.tickers renamed to
 
22
    units.ConversionInterface.axisinfo and it now returns a
 
23
    units.AxisInfo object rather than a tuple.  This will make it
 
24
    easier to add axis info functionality (eg I added a default label
 
25
    on this iteration) w/o having to change the tuple length and hence
 
26
    the API of the client code everytime new functionality is added.
 
27
    Also, units.ConversionInterface.convert_to_value is now simply
 
28
    named units.ConversionInterface.convert.
 
29
 
 
30
    Axes.errorbar uses Axes.vlines and Axes.hlines to draw its error
 
31
    limits int he vertical and horizontal direction.  As you'll see
 
32
    in the changes below, these funcs now return a LineCollection
 
33
    rather than a list of lines.  The new return signature for
 
34
    errorbar is  ylins, caplines, errorcollections where
 
35
    errorcollections is a xerrcollection, yerrcollection
 
36
 
 
37
    Axes.vlines and Axes.hlines now create and returns a LineCollection, not a list
 
38
    of lines.  This is much faster.  The kwarg signature has changed,
 
39
    so consult the docs
 
40
 
 
41
    MaxNLocator accepts a new Boolean kwarg ('integer') to force
 
42
    ticks to integer locations.
 
43
 
 
44
    Commands that pass an argument to the Text constructor or to
 
45
    Text.set_text() now accept any object that can be converted
 
46
    with '%s'.  This affects xlabel(), title(), etc.
 
47
 
 
48
    Barh now takes a **kwargs dict instead of most of the old
 
49
    arguments. This helps ensure that bar and barh are kept in sync,
 
50
    but as a side effect you can no longer pass e.g. color as a
 
51
    positional argument.
 
52
 
 
53
    ft2font.get_charmap() now returns a dict that maps character codes
 
54
    to glyph indices (until now it was reversed)
 
55
 
 
56
    Moved data files into lib/matplotlib so that setuptools' develop
 
57
    mode works. Re-organized the mpl-data layout so that this source
 
58
    structure is maintained in the installation. (I.e. the 'fonts' and
 
59
    'images' sub-directories are maintained in site-packages.).
 
60
    Suggest removing site-packages/matplotlib/mpl-data and
 
61
    ~/.matplotlib/ttffont.cache before installing
 
62
 
 
63
0.90.0 released
 
64
 
 
65
    All artists now implement a "pick" method which users should not
 
66
    call.  Rather, set the "picker" property of any artist you want to
 
67
    pick on (the epsilon distance in points for a hit test) and
 
68
    register with the "pick_event" callback.  See
 
69
    examples/pick_event_demo.py for details
 
70
 
 
71
    Bar, barh, and hist have "log" binary kwarg: log=True
 
72
    sets the ordinate to a log scale.
 
73
 
 
74
    Boxplot can handle a list of vectors instead of just
 
75
    an array, so vectors can have different lengths.
 
76
 
 
77
    Plot can handle 2-D x and/or y; it plots the columns.
 
78
 
 
79
    Added linewidth kwarg to bar and barh.
 
80
 
 
81
    Made the default Artist._transform None (rather than invoking
 
82
    identity_transform for each artist only to have it overridden
 
83
    later).  Use artist.get_transform() rather than artist._transform,
 
84
    even in derived classes, so that the default transform will be
 
85
    created lazily as needed
 
86
 
 
87
    New LogNorm subclass of Normalize added to colors.py.
 
88
    All Normalize subclasses have new inverse() method, and
 
89
    the __call__() method has a new clip kwarg.
 
90
 
 
91
    Changed class names in colors.py to match convention:
 
92
    normalize -> Normalize, no_norm -> NoNorm.  Old names
 
93
    are still available for now.
 
94
 
 
95
    Removed obsolete pcolor_classic command and method.
 
96
 
 
97
    Removed lineprops and markerprops from the Annotation code and
 
98
    replaced them with an arrow configurable with kwarg arrowprops.
 
99
    See examples/annotation_demo.py - JDH
 
100
 
 
101
0.87.7 released
 
102
 
1
103
    Completely reworked the annotations API because I found the old
2
104
    API cumbersome.  The new design is much more legible and easy to
3
105
    read.  See matplotlib.text.Annotation and
6
108
    markeredgecolor and markerfacecolor cannot be configured in
7
109
    matplotlibrc any more. Instead, markers are generally colored
8
110
    automatically based on the color of the line, unless marker colors
9
 
    are explicitely set as kwargs - NN    
 
111
    are explicitely set as kwargs - NN
10
112
 
11
113
    Changed default comment character for load to '#' - JDH
12
114