Skip to content

Commit 9dfec01

Browse files
committed
Merge branch 'master' of git://github.com/matplotlib/matplotlib into fixForIssue4977MacOSX
Get the PDF versions of the icons.
2 parents bf88246 + 00e381f commit 9dfec01

File tree

503 files changed

+35949
-29511
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

503 files changed

+35949
-29511
lines changed

.travis.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,8 @@ matrix:
4343
env: TEST_ARGS=--pep8
4444
- python: 2.7
4545
env: BUILD_DOCS=true MOCK=mock
46-
- python: "3.5.0b4"
46+
- python: "3.5.0rc2"
4747
env: PRE=--pre
48-
allow_failures:
49-
- python : "3.5.0b4"
5048

5149
before_install:
5250
- source tools/travis_tools.sh

INSTALL

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,14 @@ the latest *tar.gz* release file from `the download page
135135
to develop matplotlib or just need the latest bugfixed version, grab
136136
the latest git version :ref:`install-from-git`.
137137

138+
The standard environment variables `CC`, `CXX`, `PKG_CONFIG` are respected.
139+
This means you can set them if your toolchain is prefixed. This may be used for
140+
cross compiling.
141+
142+
export CC=x86_64-pc-linux-gnu-gcc
143+
export CXX=x86_64-pc-linux-gnu-g++
144+
export PKG_CONFIG=x86_64-pc-linux-gnu-pkg-config
145+
138146
Once you have satisfied the requirements detailed below (mainly
139147
python, numpy, libpng and freetype), you can build matplotlib::
140148

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
`color_cycle` deprecated
2+
````````````````````````
3+
4+
In light of the new property cycling feature,
5+
the Axes method *set_color_cycle* is now deprecated.
6+
Calling this method will replace the current property cycle with
7+
one that cycles just the given colors.
8+
9+
Similarly, the rc parameter *axes.color_cycle* is also deprecated in
10+
lieu of the new *axes.prop_cycle* parameter. Having both parameters in
11+
the same rc file is not recommended as the result cannot be
12+
predicted. For compatibility, setting *axes.color_cycle* will
13+
replace the cycler in *axes.prop_cycle* with a color cycle.
14+
Accessing *axes.color_cycle* will return just the color portion
15+
of the property cycle, if it exists.
16+
17+
Timeline for removal has not been set.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
New API for custom Axes view changes
2+
````````````````````````````````````
3+
4+
Interactive pan and zoom were previously implemented using a Cartesian-specific
5+
algorithm that was not necessarily applicable to custom Axes. Three new private
6+
methods, :meth:`~matplotlib.axes._base._AxesBase._get_view`,
7+
:meth:`~matplotlib.axes._base._AxesBase._set_view`, and
8+
:meth:`~matplotlib.axes._base._AxesBase._set_view_from_bbox`, allow for custom
9+
``Axes`` classes to override the pan and zoom algorithms. Implementors of
10+
custom ``Axes`` who override these methods may provide suitable behaviour for
11+
both pan and zoom as well as the view navigation buttons on the interactive
12+
toolbars.

doc/users/whats_new.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,16 @@ IPython's ``HTML`` display class::
9898
from IPython.display import HTML
9999
HTML(anim.to_html5_video())
100100

101+
Prefixed pkg-config for building
102+
--------------------------------
103+
104+
Handling of `pkg-config` has been fixed in so far as it is now possible to set
105+
it using the environment variable `PKG_CONFIG`. This is important if your
106+
toolchain is prefixed. This is done in a simpilar way as setting `CC` or `CXX`
107+
before building. An example follows.
108+
109+
export PKG_CONFIG=x86_64-pc-linux-gnu-pkg-config
110+
101111

102112
.. _whats-new-1-4:
103113

doc/users/whats_new/rcparams.rst

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
Added ``axes.prop_cycle`` key to rcParams
2+
`````````````````````````````````````````
3+
This is a more generic form of the now-deprecated ``axes.color_cycle`` param.
4+
Now, we can cycle more than just colors, but also linestyles, hatches,
5+
and just about any other artist property. Cycler notation is used for
6+
defining proprty cycles. Adding cyclers together will be like you are
7+
`zip()`-ing together two or more property cycles together::
8+
9+
axes.prop_cycle: cycler('color', 'rgb') + cycler('lw', [1, 2, 3])
10+
11+
You can even multiply cyclers, which is like using `itertools.product()`
12+
on two or more property cycles. Remember to use parentheses if writing
13+
a multi-line `prop_cycle` parameter.
14+
15+
..plot:: mpl_examples/color/color_cycle_demo.py
16+
117
Added ``errorbar.capsize`` key to rcParams
218
``````````````````````````````````````````
319
Controls the length of end caps on error bars. If set to zero, errorbars
@@ -45,7 +61,9 @@ default), ``'left'``, ``'right'``, ``'bottom'``, ``'top'`` and ``'none'``.
4561
Added "toolmanager" to "toolbar" possible values
4662
````````````````````````````````````````````````
4763

48-
The new value enables the use of ``ToolManager``
64+
The new value enables the use of ``ToolManager``. Note at the moment we
65+
release this for feedback and should get treated as experimental until further
66+
notice.
4967

5068

5169
Added ``axes.labelpad``

doc/users/whats_new/toolmanager.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@ The `Toolbars` are replaced for `ToolContainers` that are just GUI interfaces to
1212

1313

1414
.. note::
15-
For the moment the `ToolManager` is working only with `GTK3` and `Tk` backends.
16-
Make sure you are using one of those.
15+
At the moment we release this primarily for feedback purposes and should
16+
get treated as experimental until further notice as API changes will occur.
17+
For the moment the `ToolManager` works only with the `GTK3` and `Tk` backends.
18+
Make sure you use one of those.
1719
Port for the rest of the backends is comming soon.
1820

1921
To activate the `ToolManager` include the following at the top of your file:

doc/users/whats_new/updated_widgets.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,16 @@ A MultiCursor object can be disabled (and enabled) after it has been created wit
1111
Example::
1212

1313
multi_cursor.active = False
14+
15+
16+
Improved RectangleSelector and new EllipseSelector Widget
17+
`````````````````````````````````````````````````````````
18+
19+
Adds an `interactive` keyword which enables visible handles for manipulating the shape after it has been drawn.
20+
21+
Adds keyboard modifiers for:
22+
23+
- Moving the existing shape (default key = 'space')
24+
- Making the shape square (default 'shift')
25+
- Make the initial point the center of the shape (default 'control')
26+
- Square and center can be combined

examples/animation/dynamic_image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def f(x, y):
1515
x = np.linspace(0, 2 * np.pi, 120)
1616
y = np.linspace(0, 2 * np.pi, 100).reshape(-1, 1)
1717

18-
im = plt.imshow(f(x, y), cmap=plt.get_cmap('jet'))
18+
im = plt.imshow(f(x, y), cmap=plt.get_cmap('viridis'), animated=True)
1919

2020

2121
def updatefig(*args):

examples/animation/dynamic_image2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def f(x, y):
2121
for i in range(60):
2222
x += np.pi / 15.
2323
y += np.pi / 20.
24-
im = plt.imshow(f(x, y))
24+
im = plt.imshow(f(x, y), cmap='viridis', animated=True)
2525
ims.append([im])
2626

2727
ani = animation.ArtistAnimation(fig, ims, interval=50, blit=True,

0 commit comments

Comments
 (0)