Thanks to visit codestin.com
Credit goes to github.com

Skip to content

BUG: Cannot pick empty vline #3591

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 67 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
126fb9c
BUG : fix list comprehensions over class members
tacaswell Sep 3, 2014
32c11af
BUG : fix glaring syntax error
tacaswell Sep 4, 2014
99c04e9
BLD/BUG/DOC : made pytz a required dependency
tacaswell Sep 6, 2014
f40bf14
DOC : removed freetype version caveats
tacaswell Sep 6, 2014
ac62606
BLD : updated message when to pytz found
tacaswell Sep 6, 2014
3a9757c
BUG : fix encoding of png data
tacaswell Sep 6, 2014
0a41d83
Allow running from non-ascii directory on Windows
mdboom Sep 12, 2014
81760d7
Remove backticks around None. This is not a ref
jenshnielsen Sep 16, 2014
630f867
Fix formatting in docstring for dates
jenshnielsen Sep 16, 2014
592ac13
Merge pull request #3521 from jenshnielsen/more_doc_fixes
tacaswell Sep 16, 2014
ef72f6d
Clarify matplotlib/PyCXX incompatibility
mdboom Sep 16, 2014
0575dc5
Merge pull request #3492 from mdboom/clarify-pycxx
mdboom Sep 16, 2014
a6dc25d
BUG: Take the absolute difference between times when determining the …
cimarronm Sep 16, 2014
3424506
BUG : fix eps corruption when using clipping
tacaswell Sep 16, 2014
cb36b28
Merge pull request #3526 from tacaswell/fix_eps_clip_paths
efiring Sep 17, 2014
301fa0a
Only insert links to pdfs if we are actually generating these. This s…
jenshnielsen Sep 17, 2014
1b11e2f
Merge pull request #3487 from mdboom/use-getcwdu
tacaswell Sep 17, 2014
75fbc9e
Merge pull request #3530 from jenshnielsen/travis_docs
tacaswell Sep 18, 2014
d10e26e
Merge pull request #3510 from blink1073/fix-setupext
tacaswell Sep 18, 2014
4234f0f
BUG : fix handling of flierprop by boxplot
tacaswell Sep 18, 2014
8158393
BUG/DOC : Correct default value listed in docstring
tacaswell Sep 18, 2014
8496e06
Merge pull request #3369 from e-q/legendFrameAlpha
tacaswell Sep 18, 2014
ebe5333
Merge pull request #3535 from tacaswell/boxplot_doc
WeatherGod Sep 18, 2014
46f0d4b
BUG : fixes whis over-writing in boxplot_stats
tacaswell Sep 18, 2014
350413c
Fix marker clipping rectangle.
mdboom Sep 18, 2014
53b6797
Merge pull request #3534 from tacaswell/bxp_whis_fix
WeatherGod Sep 18, 2014
cfc92e2
Merge pull request #3464 from tacaswell/nbagg_py3k
pelson Sep 18, 2014
014c112
DEP : update six minimum version
tacaswell Sep 18, 2014
34230a7
TST: Added test for inverted limit with autodatelocator
cimarronm Sep 19, 2014
63c52f8
STY/TST: pep8 fixes for test_dates
cimarronm Sep 19, 2014
402e895
Merge pull request #3524 from cimarronm/autodatelocaltor_3522
tacaswell Sep 19, 2014
31f305e
Extended the nbagg backend to support animation.
pelson Sep 19, 2014
11748bf
DOC : fix main-page tags
tacaswell Sep 19, 2014
4706ee0
Merge pull request #3543 from tacaswell/fix_mainpage
mdboom Sep 19, 2014
b4fb455
Fix warning in lines.py
jenshnielsen Sep 18, 2014
fd558d9
Indent correctly in mlab
jenshnielsen Sep 19, 2014
b9ac3fc
silence warnings in art3d
jenshnielsen Sep 19, 2014
7dca5a0
Fix warnings in cbook
jenshnielsen Sep 19, 2014
52714d8
Fix warnings in _axes
jenshnielsen Sep 19, 2014
f28c204
fix rendering of warnings in mlab
jenshnielsen Sep 21, 2014
602176e
Improve rendering of title docs
jenshnielsen Sep 21, 2014
33a8a76
Merge pull request #3539 from tacaswell/six_fix
jenshnielsen Sep 21, 2014
2f1fcde
docstring in trirefine
jenshnielsen Sep 21, 2014
3e4620a
Fixed firefox keyboard focus bug with nbagg backend.
pelson Sep 22, 2014
1b96117
Updated nbagg backend to default to a transparent figure patch.
pelson Sep 22, 2014
03ceef7
Merge pull request #3548 from jenshnielsen/autodoc_fixes
mdboom Sep 22, 2014
a62e7f3
Merge pull request #3545 from mdehoon/setfont_informative_error_message
tacaswell Sep 22, 2014
b35fae6
DOC: Fixed comment documentation to match with code on timer interval…
cimarronm Sep 22, 2014
0ce5259
Merge pull request #3555 from cimarronm/timer_example_docfix
tacaswell Sep 23, 2014
6872174
Install texlive and other dependencies when building docs.
jenshnielsen Sep 21, 2014
aa583e4
Fixed the webagg backend to handle figures with transparency.
pelson Sep 24, 2014
d37e613
PEP8 : whitespace fix
tacaswell Sep 24, 2014
ee2dde7
Merge pull request #3559 from jenshnielsen/texlive_travis
tacaswell Sep 24, 2014
f9feefe
Merge pull request #3559 from pelson/nbagg_enhancments
tacaswell Sep 24, 2014
2775a7f
BUG : don't assume label in boxpplot_stat
tacaswell Sep 25, 2014
b30d50d
Fixed the differencing of images for the webagg/nbagg backends.
pelson Sep 25, 2014
236355c
pyplot: Fix exception in `_backend_selection` during import
wmanley Sep 19, 2014
6bcffbe
TST : modified tests to pass
tacaswell Sep 27, 2014
7602e3d
BUG : deal with empty list passed to boxplot
tacaswell Sep 27, 2014
ec894f6
Merge pull request #3479 from tacaswell/build_dep_updates
mdboom Sep 27, 2014
20741b5
Merge pull request #3514 from mdboom/large-ticks
tacaswell Sep 27, 2014
2645afb
Merge pull request #3533 from tacaswell/fix_flierprop
mdboom Sep 27, 2014
6f6afc5
Merge pull request #3571 from tacaswell/bxp_empty
mdboom Sep 27, 2014
ccc7afb
Merge pull request #3567 from pelson/nbagg_diff_image_fix
mdboom Sep 27, 2014
40720ef
Merge pull request #3566 from tacaswell/fix_bxp_label
mdboom Sep 27, 2014
7e6be9d
Merge pull request #3585 from matplotlib/v1.4.0-doc
jenshnielsen Sep 28, 2014
5e2b03c
Fix crash in picking for zero-length path collection
mdboom Sep 29, 2014
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ matrix:
install:
- pip install -q --use-mirrors nose python-dateutil numpy pep8 pyparsing pillow
- sudo apt-get update && sudo apt-get -qq install inkscape libav-tools
# We use --no-install-recommends to avoid pulling in additional large latex docs that we don't need
- if [[ $BUILD_DOCS == true ]]; then sudo apt-get install -qq --no-install-recommends dvipng texlive-latex-base texlive-latex-extra texlive-fonts-recommended graphviz; fi
- if [[ $BUILD_DOCS == true ]]; then pip install sphinx numpydoc linkchecker; fi
- python setup.py install

Expand Down
21 changes: 8 additions & 13 deletions INSTALL
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ Required Dependencies
using pip, easy_install or installing from source, the installer
will attempt to download and install `pyparsing` from PyPI.

six 1.3 or later
six 1.4 or later
Python 2/3 compatibility library. This is also a dependency of
:term:`dateutil`.

Expand All @@ -201,6 +201,11 @@ libpng 1.2 (or later)
<http://www.libpng.org/pub/png/libpng.html>`__). libpng requires
zlib.

`pytz`
Used to manipulate time-zone aware datetimes.



Optional GUI framework
^^^^^^^^^^^^^^^^^^^^^^

Expand Down Expand Up @@ -240,18 +245,8 @@ Optional dependencies
selection of image file formats.


:term:`freetype` 2.4 or later
library for reading true type font files. Matplotlib in known
to work with freetype 2.3, and the required version will be reduced
in 1.4.1. If you need to build from source on a system which only has
freetype 2.3 available, please edit L945 of `setupext.py` to reduce
`min_version` to 2.3.

`pytz`
Required if you want to manipulate datetime objects which are time-zone
aware. An exception will be raised if you try to make time-zone aware
plots with out `pytz` installed. It will become a required dependency
in 1.4.1.
:term:`freetype` 2.3 or later
library for reading true type font files.


Required libraries that ship with matplotlib
Expand Down
4 changes: 2 additions & 2 deletions doc/_templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ <h1>Introduction</h1>
For a sampling, see the <a href="{{ pathto('users/screenshots') }}">screenshots</a>, <a href="{{ pathto('gallery') }}">thumbnail</a> gallery, and
<a href="examples/index.html">examples</a> directory</p>

<p>For simple plotting the <pre>pyplot</pre> interface provides a
<p>For simple plotting the <tt>pyplot</tt> interface provides a
MATLAB-like interface, particularly when combined
with <pre>IPython</pre>. For the power user, you have full control
with <tt>IPython</tt>. For the power user, you have full control
of line styles, font properties, axes properties, etc, via an object
oriented interface or via a set of functions familiar to MATLAB
users.</p>
Expand Down
6 changes: 3 additions & 3 deletions examples/event_handling/timers.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ def update_title(axes):
x = np.linspace(-3, 3)
ax.plot(x, x*x)

# Create a new timer object. Set the interval 500 milliseconds (1000 is default)
# and tell the timer what function should be called.
# Create a new timer object. Set the interval to 100 milliseconds
# (1000 is default) and tell the timer what function should be called.
timer = fig.canvas.new_timer(interval=100)
timer.add_callback(update_title, ax)
timer.start()

#Or could start the timer on first figure draw
# Or could start the timer on first figure draw
#def start_timer(evt):
# timer.start()
# fig.canvas.mpl_disconnect(drawid)
Expand Down
6 changes: 5 additions & 1 deletion lib/matplotlib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -745,7 +745,11 @@ def matplotlib_fname():
- Lastly, it looks in `$MATPLOTLIBDATA/matplotlibrc` for a
system-defined copy.
"""
fname = os.path.join(os.getcwd(), 'matplotlibrc')
if six.PY2:
cwd = os.getcwdu()
else:
cwd = os.getcwd()
fname = os.path.join(cwd, 'matplotlibrc')
if os.path.exists(fname):
return fname

Expand Down
77 changes: 48 additions & 29 deletions lib/matplotlib/axes/_axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,10 @@ def set_title(self, label, fontdict=None, loc="center", **kwargs):

Other parameters
----------------
Other keyword arguments are text properties, see
:class:`~matplotlib.text.Text` for a list of valid text
properties.
kwargs : text properties
Other keyword arguments are text properties, see
:class:`~matplotlib.text.Text` for a list of valid text
properties.
"""
try:
title = {'left': self._left_title,
Expand Down Expand Up @@ -2883,7 +2884,7 @@ def xywhere(xs, ys, mask):

return errorbar_container # (l0, caplines, barcols)

def boxplot(self, x, notch=False, sym='b+', vert=True, whis=1.5,
def boxplot(self, x, notch=False, sym=None, vert=True, whis=1.5,
positions=None, widths=None, patch_artist=False,
bootstrap=None, usermedians=None, conf_intervals=None,
meanline=False, showmeans=False, showcaps=True,
Expand Down Expand Up @@ -2919,11 +2920,13 @@ def boxplot(self, x, notch=False, sym='b+', vert=True, whis=1.5,
If False, produces a rectangular box plot.
If True, will produce a notched box plot

sym : str, default = 'b+'
sym : str or None, default = None
The default symbol for flier points.
Enter an empty string ('') if you don't want to show fliers.
If `None`, then the fliers default to 'b+' If you want more
control use the fliersprop kwarg.

vert : bool, default = False
vert : bool, default = True
If True (default), makes the boxes vertical.
If False, makes horizontal boxes.

Expand Down Expand Up @@ -3021,10 +3024,11 @@ def boxplot(self, x, notch=False, sym='b+', vert=True, whis=1.5,
Returns
-------

A dictionary mapping each component of the boxplot
to a list of the :class:`matplotlib.lines.Line2D`
instances created. That dictionary has the following keys
(assuming vertical boxplots):
result : dict
A dictionary mapping each component of the boxplot
to a list of the :class:`matplotlib.lines.Line2D`
instances created. That dictionary has the following keys
(assuming vertical boxplots):

- boxes: the main body of the boxplot showing the quartiles
and the median's confidence intervals if enabled.
Expand All @@ -3043,10 +3047,39 @@ def boxplot(self, x, notch=False, sym='b+', vert=True, whis=1.5,
"""
bxpstats = cbook.boxplot_stats(x, whis=whis, bootstrap=bootstrap,
labels=labels)
# make sure we have a dictionary
if flierprops is None:
flierprops = dict(sym=sym)
else:
flierprops['sym'] = sym
flierprops = dict()
# if non-default sym value, put it into the flier dictionary
# the logic for providing the default symbol ('b+') now lives
# in bxp in the initial value of final_flierprops
# handle all of the `sym` related logic here so we only have to pass
# on the flierprops dict.
if sym is not None:
# no-flier case, which should really be done with
# 'showfliers=False' but none-the-less deal with it to keep back
# compatibility
if sym == '':
# blow away existing dict and make one for invisible markers
flierprops = dict(linestyle='none', marker='',
markeredgecolor='none',
markerfacecolor='none')
# now process the symbol string
else:
# process the symbol string
# discarded linestyle
_, marker, color = _process_plot_format(sym)
# if we have a marker, use it
if marker is not None:
flierprops['marker'] = marker
# if we have a color, use it
if color is not None:
flierprops['color'] = color
# assume that if color is passed in the user want
# filled symbol, if the users want more control use
# flierprops
flierprops['markeredgecolor'] = color
flierprops['markerfacecolor'] = color

# replace medians if necessary:
if usermedians is not None:
Expand Down Expand Up @@ -3288,24 +3321,9 @@ def bxp(self, bxpstats, positions=None, widths=None, vert=True,
final_flierprops = dict(linestyle='none', marker='+',
markeredgecolor='b',
markerfacecolor='none')

# flier (outlier) properties
if flierprops is not None:
sym = flierprops.pop('sym', None)

# watch inverted logic, checks for non-default
# value of `sym`
if not (sym == '' or (sym is None)):
# process the symbol string
# discarded linestyle
_, marker, color = _process_plot_format(sym)
if marker is not None:
flierprops['marker'] = marker
if color is not None:
flierprops['color'] = color
# assume that if color is passed in the user want
# filled symbol
flierprops['markeredgecolor'] = color
flierprops['markerfacecolor'] = color
final_flierprops.update(flierprops)

# median line properties
Expand Down Expand Up @@ -5032,6 +5050,7 @@ def pcolormesh(self, *args, **kwargs):

*edgecolors*: [*None* | ``'None'`` | ``'face'`` | color |
color sequence]

If *None*, the rc setting is used by default.

If ``'None'``, edges will not be visible.
Expand Down
Loading