Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
145 commits
Select commit Hold shift + click to select a range
20d7d81
Contour kwarg for negative_linestyles
andrew-fennell May 22, 2022
e0b46e8
DOC: do not suggest to sudo pip install Matplotlib
tacaswell May 9, 2022
3a11183
Bump docker/setup-qemu-action from 1 to 2
dependabot[bot] May 9, 2022
c497bb8
Fix some possible encoding issues for non-utf8 systems.
anntzer May 9, 2022
1d8aeed
DOC: Fix charset declaration in redirects
QuLogic May 10, 2022
de4b003
enable sca on subfigure axes
rcomer May 6, 2022
60d0c21
Specify that style files are utf-8.
anntzer May 10, 2022
b257779
Add test to close legend issue
oscargus May 9, 2022
ea06735
Suppress exception chaining in FontProperties.
anntzer May 12, 2022
5dd14a7
Suppress traceback chaining for tex subprocess failures.
anntzer May 12, 2022
709412c
Factor out errorevery parsing for 2D and 3D errorbars.
anntzer May 12, 2022
752ee10
Demonstrate both usetex and non-usetex in demo_text_path.py.
anntzer May 10, 2022
e86dc6c
Fix missing section header for nightly builds
QuLogic May 14, 2022
e0fa742
Fix issue with hist and float16 data
oscargus May 14, 2022
34b71ac
Fix variable initialization due to jump bypassing it
Biswa96 May 15, 2022
925136f
Add rrulewrapper to docs
oscargus May 14, 2022
77c4d78
ENH: Use rcParams savefig.directory on macosx backend
greglucas Jan 10, 2022
343a6a4
TST: macosx savefig respects rcParam setting
greglucas Jan 10, 2022
84f0bb8
TST: fully parameterize test_lazy_linux_headless
tacaswell Apr 8, 2022
8249525
Use contourpy for quad contour calculations
ianthomas23 Feb 26, 2022
ca6fa20
Review comments
ianthomas23 May 18, 2022
d9195ef
Cleanup Annotation.update_position.
anntzer Oct 3, 2021
e4e49d6
doc: mathtext example use axhspan instead of fill_between
megies May 18, 2022
e587af2
FIX: fix check_1d to also check for ndim
jklymak May 5, 2022
be9684d
Update setupext.py
wqh17101 Apr 1, 2022
2274996
Update setupext.py
wqh17101 Apr 1, 2022
891db5d
Update setupext.py
wqh17101 Apr 1, 2022
5e12d59
Update setupext.py
wqh17101 Apr 1, 2022
84c0c55
Update setupext.py
wqh17101 Apr 2, 2022
09577ac
Pathlibify autotools invocation in build.
anntzer May 18, 2022
41f5284
Slight refactor of _c_internal_utils to linewrap it better.
anntzer May 18, 2022
f52a307
Fix installing contourpy on CI
QuLogic May 19, 2022
3e5d885
TST: forgive more failures on pyside2 / pyside6 cross imports
tacaswell May 18, 2022
b652c62
TST: use enum for signal values
tacaswell May 18, 2022
db046ff
DOC: put the gallery keywords in the meta tag [skip actions] [skip az…
jklymak Feb 5, 2022
4da3f84
DOC: remove all keywords except codex
jklymak Feb 21, 2022
8dcddf6
MNT: Remove dummy_threading because threading is always available
greglucas May 19, 2022
5d2c11e
Slightly simplify tcl/tk load in extension.
anntzer May 17, 2022
b3e6d4b
MNT: Remove deprecated axis.cla()
greglucas May 20, 2022
e82ef37
MNT: Remove positional argument handling in LineCollection
greglucas May 20, 2022
4f2e224
MNT: Remove key_press and button_press from FigureManager
greglucas May 20, 2022
d796a3e
MNT: Deprecate date_ticker_factory (#23081)
oscargus May 21, 2022
99ea602
more explicit in windows doc build instructions (#23067)
story645 May 22, 2022
e750933
Move test that fig.add_axes() needs parameters
timhoffm May 21, 2022
0ebe870
Normalize tk load failures to ImportErrors.
anntzer May 21, 2022
1e073b9
Fix width/height inversion in dviread debug helper.
anntzer May 21, 2022
947bbb4
Ensure updated monkey-patching of sphinx-gallery EXAMPLE_HEADER (#23092)
timhoffm May 22, 2022
9c0bda5
Improve error for invalid format strings / mispelled data keys.
anntzer May 21, 2022
5fc7e66
Tweak check for IPython pylab mode. (#23097)
anntzer May 22, 2022
9f21c57
Remove unneeded cutout for webagg in show().
anntzer May 22, 2022
5547f85
Derive new_figure_manager from FigureCanvas.new_manager.
anntzer May 21, 2022
655cec6
FIX: enable install_repl_displayhook when switching backends
tacaswell May 17, 2022
0943b0f
CI: try unreasonably long timeout
tacaswell May 19, 2022
c737df2
Fix _g_sig_digits for value<0 and delta=0.
anntzer May 23, 2022
c993cf2
Reuse subprocess_run_helper in test_pylab_integration.
anntzer May 23, 2022
6bc3373
Try to unbreak CI by xfailing OSX Tk tests (#23095)
timhoffm May 24, 2022
9d200f0
DOC fixed duplicate/wrong default
davidgilbertson May 24, 2022
023891d
MNT: Remove get/set window title methods from FigureCanvas
greglucas May 20, 2022
951bc72
MNT: Remove deprecated get_label_coords from contourLabeler
greglucas May 21, 2022
10ce401
MNT: Remove return_all kwarg from gridspec get_position
greglucas May 22, 2022
ae50bef
MNT: Remove minimum_descent from TextArea
greglucas May 22, 2022
5ad7f8c
MNT: Make optional parameters to Axes keyword only
greglucas May 22, 2022
4859278
MNT: Remove the renamed parameter s to signal in callback registry
greglucas May 22, 2022
281a942
MNT: Remove align from sphinxext.plot_directive
greglucas May 22, 2022
9b43c91
MNT: Remove ability to pass URLs to imread()
greglucas May 22, 2022
d8c6a4a
MNT: Remove network marker from pytest
greglucas May 22, 2022
68baace
MNT: Remove deprecated widget properties
greglucas May 22, 2022
fc8bc8e
MNT: Remove properties and methods from Subplot
greglucas May 22, 2022
1a6377e
Handle NaN in bar labels and error bars
oscargus Apr 28, 2022
39735ac
Remove redundant rcparam default
oscargus May 24, 2022
f8675f8
Fix spelling errors
jsoref May 18, 2022
2359b70
DEV: ignore spelling fixes
jsoref May 18, 2022
c3a5246
Remove newline from start of deprecation warnings
QuLogic May 25, 2022
f7632d8
Make module deprecation messages consistent
QuLogic May 25, 2022
6ece796
Unpin coverage again
QuLogic May 25, 2022
00705b6
Update requirements/testing/all.txt
tacaswell May 25, 2022
216b1e2
Drop pytest warning config in nightly tests
QuLogic May 25, 2022
5e166f0
Tell Pytest to only look in `lib` by default
QuLogic May 25, 2022
bde32f8
DOCS Fix typos
davidgilbertson May 25, 2022
c4ca46d
Update axes_grid.py
davidgilbertson May 25, 2022
223586e
Update tutorials/toolkits/axes_grid.py
davidgilbertson May 25, 2022
a3d761d
Update interactive_guide.rst
davidgilbertson May 26, 2022
18ac29c
MNT: Clean up macosx backend set_message
greglucas Nov 25, 2021
0b5dba1
FIX: Disable cursorRect updates from within macosx backend
greglucas May 1, 2022
c6f84b1
Fix format error in switcher.json
timhoffm May 26, 2022
5cbff7c
DOCS remove duplicate text (#23149)
davidgilbertson May 27, 2022
253e505
Update artist.py (#23150)
davidgilbertson May 27, 2022
81d493d
No longer call draw_if_interactive in parasite_axes. (#23156)
anntzer May 27, 2022
b414dc8
Minor fix for astropy units support broken in earlier PR
oscargus May 26, 2022
2e80f85
Tweak subprocess_run_helper.
anntzer May 23, 2022
d20f37a
Added my (open access) book (#23161)
rougier May 30, 2022
9f08de5
DOC: Add stackplot to plot types listing and added blues to grid styl…
story645 May 18, 2022
821acfb
Fix typo in gradient_bar example
davidgilbertson May 31, 2022
c0e4097
DOC: Fix a few typos in fill_between_alpha example
davidgilbertson May 31, 2022
e3da1fe
Deprecate passing most Legend arguments positionally (#23166)
QuLogic May 31, 2022
d1865e8
Restore accidentally removed pytest.ini and tests.py.
anntzer May 27, 2022
d8423e9
Improve docstring of triplot() and PatchCollection
timhoffm Jun 1, 2022
5c98c14
Make sure SubFigure has _cachedRenderer
oscargus Jun 1, 2022
3507c58
DOC: Migrate from sphinx-panels to sphinx-design
QuLogic May 31, 2022
d74ed7d
DOC: Use sphinx-design's buttons
QuLogic May 31, 2022
814d7ba
Corrected for artist.Artist.set_agg_filter
May 31, 2022
5933662
Corrected docstring for artist.Artist.set_agg_filter
May 31, 2022
3f73d58
ENH: update ticks when requesting labels
jklymak May 31, 2022
63659fd
TST: simple test
jklymak May 31, 2022
af5edfb
DOC: add change note
jklymak May 31, 2022
b930102
Move towards having get_shared_{x,y}_axes return immutable views.
anntzer Nov 10, 2021
b05151c
FIX: allow float markevery with nans in line data in _mark_every_path()
rc Feb 21, 2022
522832c
Cleanup documentation generation for pyplot
timhoffm Mar 19, 2022
7c23b1f
Point the version switcher to a name listed in switcher.json
timhoffm May 29, 2022
adba836
Init FigureCanvasAgg._lastKey at class-level.
anntzer Jun 1, 2022
de82eaa
Simplify webagg blitting.
anntzer Jun 1, 2022
639c784
MNT: Remove keyword arguments to gca()
greglucas May 20, 2022
b4906e0
MNT: make renderer always optional
jklymak Mar 31, 2022
69dc5ec
MNT: change default dates to 1970-01-01 to -02
jklymak Jun 2, 2022
e6c9ae4
TST: fix the tests
jklymak Jun 2, 2022
9f6d467
DOC: add behavior change
jklymak Jun 2, 2022
eeb2a47
Add tests for date module
oscargus May 8, 2022
b1d483e
Rework tricontour and tricontourf documentation
timhoffm Jun 4, 2022
cf09d36
DOC: link the trasnforms tutorial from the module
jklymak Jun 7, 2022
91ccf1d
DOC: changed dash reference to public link
story645 Jun 8, 2022
7c198ca
DOC: recommend numpy random number generator class
rcomer Jun 8, 2022
79690c5
DOC: Fix version switcher links to documentation
melissawm Jun 8, 2022
53d3a9e
DOC: account for configuration changes in pydata-sphinx-theme
tacaswell Jun 9, 2022
9a3bb3a
BLD: pin pydata-sphinx-theme forward
tacaswell Jun 9, 2022
985441c
Fix the vertical alignment of overunder symbols.
tfpf Jun 6, 2022
f69a698
Image comparison test for overunder symbol alignment.
tfpf Jun 7, 2022
101e32a
Expire BoxStyle._Base deprecation.
anntzer Jun 10, 2022
2527c6f
ENH: simple compressed layout
jklymak Jan 22, 2022
7de97f6
honour panchor keyword for colorbar on subplot
rcomer Jun 4, 2022
a3690c5
MNT: Move locally defined test marks
oscargus May 14, 2022
30e3f9c
Correct docs and use keyword arguments in _mathtext.py
oscargus Jun 2, 2022
315c0ca
Fix invalid value in radio buttons example
timhoffm Jun 10, 2022
a31b3a8
Only import setuptools_scm when we are in a matplotlib git repo
timhoffm May 26, 2022
74f8459
Add tests, improve error messages, and use argument checks to simplif…
oscargus Jun 2, 2022
eab5dc7
Remove *math* parameter of various mathtext internal APIs.
anntzer Jan 12, 2022
d41d513
Rename test markers
oscargus Jun 11, 2022
1188b3c
Don't allow `r"$\left\\|\right.$"`, as in TeX.
anntzer Jun 11, 2022
1f548db
Small simplifications to mathtext tests.
anntzer Jun 11, 2022
27f8a5d
Rename ncol parameter to ncols
oscargus Jun 3, 2022
6cb3d92
Support not embedding glyphs in svg mathtests.
anntzer Apr 17, 2022
3c479e2
Fix argument checking for set_interpolation_stage
oscargus Jun 11, 2022
d8c7443
Add a helper to generate mathtext error strings.
anntzer Jun 11, 2022
db36ba5
DOC: remove Blue Book url
rcomer Jun 12, 2022
95cc6f4
Add note about Inkscape install on Windows
oscargus Jun 12, 2022
9e67dae
Added tests for contour linestyles and negative_linestyles
andrew-fennell Jun 14, 2022
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
Next Next commit
Contour kwarg for negative_linestyles
  • Loading branch information
andrew-fennell committed May 23, 2022
commit 20d7d81abdeb68099d04f325babe443f548bff10
24 changes: 21 additions & 3 deletions lib/matplotlib/contour.py
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ def __init__(self, ax, *args,
hatches=(None,), alpha=None, origin=None, extent=None,
cmap=None, colors=None, norm=None, vmin=None, vmax=None,
extend='neither', antialiased=None, nchunk=0, locator=None,
transform=None,
transform=None, negative_linestyles=None,
**kwargs):
"""
Draw contour lines or filled regions, depending on
Expand Down Expand Up @@ -809,6 +809,13 @@ def __init__(self, ax, *args,

self._transform = transform

self.negative_linestyles = negative_linestyles
# If negative_linestyles was not defined as a kwarg,
# define negative_linestyles with rcParams
if self.negative_linestyles is None:
self.negative_linestyles = \
mpl.rcParams['contour.negative_linestyle']

kwargs = self._process_args(*args, **kwargs)
self._process_levels()

Expand Down Expand Up @@ -1299,11 +1306,10 @@ def _process_linestyles(self):
if linestyles is None:
tlinestyles = ['solid'] * Nlev
if self.monochrome:
neg_ls = mpl.rcParams['contour.negative_linestyle']
eps = - (self.zmax - self.zmin) * 1e-15
for i, lev in enumerate(self.levels):
if lev < eps:
tlinestyles[i] = neg_ls
tlinestyles[i] = self.negative_linestyles
else:
if isinstance(linestyles, str):
tlinestyles = [linestyles] * Nlev
Expand Down Expand Up @@ -1764,6 +1770,18 @@ def _initialize_x_y(self, z):
iterable is shorter than the number of contour levels
it will be repeated as necessary.

negative_linestyles : *None* or str, optional
{'solid', 'dashed', 'dashdot', 'dotted'}
*Only applies to* `.contour`.

If *negative_linestyles* is *None*, the default is 'dashed' for
negative contours.

*negative_linestyles* can also be an iterable of the above
strings specifying a set of linestyles to be used. If this
iterable is shorter than the number of contour levels
it will be repeated as necessary.

hatches : list[str], optional
*Only applies to* `.contourf`.

Expand Down