instance_id
stringlengths
10
57
file_changes
listlengths
1
15
repo
stringlengths
7
53
base_commit
stringlengths
40
40
problem_statement
stringlengths
11
52.5k
patch
stringlengths
251
7.06M
matchms__matchms-583
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "matchms/filtering/metadata_processing/interpret_pepmass.py:_get_mz_intensity_charge" ], "edited_modules": [ "matchms/filtering/metadata_processing/interpret_pepmass.py:_get_mz_intens...
matchms/matchms
d184c1242d14dbdfb2454a9a3d4b35d520c3752d
Pepmass string format breaks code In #551 @kozo2 mentioned a second bug with MSP files. His message: In version 0.24.0, I still encountered an IndexError as shown below. ``` WARNING:pickydict:Key 'exact_mass' will be interpreted as 'parent_mass'. But this entry already exists. Please use 'parent_mass' if you w...
diff --git a/matchms/filtering/metadata_processing/interpret_pepmass.py b/matchms/filtering/metadata_processing/interpret_pepmass.py index 7eec4284..cffe96a1 100644 --- a/matchms/filtering/metadata_processing/interpret_pepmass.py +++ b/matchms/filtering/metadata_processing/interpret_pepmass.py @@ -69,8 +69,14 @@ def _g...
matchms__matchms-598
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "matchms/Spectrum.py:Spectrum.__repr__" ], "edited_modules": [ "matchms/Spectrum.py:Spectrum" ] }, "file": "matchms/Spectrum.py" } ]
matchms/matchms
5a425e6b3f32f84b6303ae168632144f85739dc3
Fix generating empty spectrums **Describe the bug** The following code generate an empty spectrum ``` s = Spectrum(np.array([1.]), np.array([1.])) processing = SpectrumProcessor( [ lambda spec: select_by_mz(spec, 20, 30) ] ) processing.process_spectrums([s]) ``` It raises an error wh...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 98091849..b8ac3693 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## unreleased ### Fixed +- Fix to handle spectra with empty peak arrays. [#598](https://github.com/matchms/m...
matchms__matchms-759
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "matchms/filtering/peak_processing/normalize_intensities.py:normalize_intensities" ], "edited_modules": [ "matchms/filtering/peak_processing/normalize_intensities.py:normalize_intensi...
matchms/matchms
61c837f3a8e0d7ed946910bcf167937360809a9f
load_from_usi API call is deprecated **Describe the bug** `load_from_usi` always returns None. **To Reproduce** Try to load any USI. Tested on the USI from the README and the documentation: ```python from matchms.importing import load_from_usi load_from_usi("mzspec:GNPS:GNPS-LIBRARY:accession:CCMSLIB00000424840") l...
diff --git a/matchms/filtering/peak_processing/normalize_intensities.py b/matchms/filtering/peak_processing/normalize_intensities.py index b80ac38e..1cf3a4d1 100644 --- a/matchms/filtering/peak_processing/normalize_intensities.py +++ b/matchms/filtering/peak_processing/normalize_intensities.py @@ -21,9 +21,8 @@ def nor...
materialsvirtuallab__monty-634
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "monty/json.py:MontyEncoder.default", "monty/json.py:MontyDecoder.process_decoded" ], "edited_modules": [ "monty/json.py:MontyEncoder", "monty/json.py:MontyDecoder" ...
materialsvirtuallab/monty
df6fc1d26c437b818fe106d5f1a4d86d963c96c6
[Bug]: `Path` objects cause issues with JSON serialization ### Email (Optional) _No response_ ### Version 2024.2.6 ### Which OS(es) are you using? - [ ] MacOS - [ ] Windows - [ ] Linux ### What happened? It would be nice to natively support the `pathlib.Path` object seeing as it is a first-party import in Python...
diff --git a/monty/json.py b/monty/json.py index 0684956..e82ebf6 100644 --- a/monty/json.py +++ b/monty/json.py @@ -13,6 +13,7 @@ from enum import Enum from hashlib import sha1 from importlib import import_module from inspect import getfullargspec +from pathlib import Path from uuid import UUID try: @@ -380,6 +...
materialsvirtuallab__monty-635
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "monty/shutil.py:compress_file", "monty/shutil.py:decompress_file" ], "edited_modules": [ "monty/shutil.py:compress_file", "monty/shutil.py:decompress_file" ] ...
materialsvirtuallab/monty
2fab913f9e0c1fc8e1e14a6c39aae4b601e1459b
[Feature Request]: `compress_file` and `decompress_file` allow specify target path ### Problem Would it be a good idea to allow user to optionally specific the output file path for `compress_file` and `decompress_file`? I could help implement this if so. Or is there any reason not to do so? Thanks ### Pro...
diff --git a/monty/io.py b/monty/io.py index df7f1ff..98f3857 100644 --- a/monty/io.py +++ b/monty/io.py @@ -17,7 +17,7 @@ from typing import IO, Generator, Union def zopen(filename: Union[str, Path], *args, **kwargs) -> IO: - r""" + """ This function wraps around the bz2, gzip, lzma, xz and standard py...
materialsvirtuallab__monty-688
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "monty/json.py:MontyEncoder.default", "monty/json.py:MontyDecoder.process_decoded" ], "edited_modules": [ "monty/json.py:MontyEncoder", "monty/json.py:MontyDecoder" ...
materialsvirtuallab/monty
0c4abd3f3256696be8aeaaf9e0c60d21faa2e476
datetime serialization/deserialization broken datetime objects with time zone info break the serializatin because `__str__` doesn't output in the format that monty expects. Example: `datetime.datetime(2018, 12, 19, 21, 45, 41, 99000, tzinfo=datetime.timezone.utc).__str__()` yields `"2018-12-19 21:45:41.099000+00:00"...
diff --git a/monty/json.py b/monty/json.py index 759758b..defecf3 100644 --- a/monty/json.py +++ b/monty/json.py @@ -644,7 +644,7 @@ class MontyEncoder(json.JSONEncoder): try: if pydantic is not None and isinstance(o, pydantic.BaseModel): - d = o.dict() + d = o.mode...
materialsvirtuallab__monty-703
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/monty/shutil.py:gzip_dir" ], "edited_modules": [ "src/monty/shutil.py:gzip_dir" ] }, "file": "src/monty/shutil.py" } ]
materialsvirtuallab/monty
069ee2c997c2c0f11a8b18df3758e8e9ebb60cc9
[Dev] Unit test for `tempfile` alters test file in place Unit test for `tempfile` (`test_tempfile.py`) alters test file `3000_lines.txt.gz` in place (because of re-gzip), could lead to repeated commit of this file, for example in fd6b16ddde887573d1f8b986d00bdf5a2407f840. Triggered by the following test: https://gith...
diff --git a/src/monty/shutil.py b/src/monty/shutil.py index 37d28a3..98047f5 100644 --- a/src/monty/shutil.py +++ b/src/monty/shutil.py @@ -54,11 +54,14 @@ def gzip_dir(path: str | Path, compresslevel: int = 6) -> None: compresslevel (int): Level of compression, 1-9. 9 is default for GzipFile, 6 ...
materialsvirtuallab__monty-728
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/monty/json.py:jsanitize" ], "edited_modules": [ "src/monty/json.py:jsanitize" ] }, "file": "src/monty/json.py" } ]
materialsvirtuallab/monty
a3d35a63d911127a2bb0a8331f3b6265d249151c
[Bug]: The `jsanitize` function does not behave as expected with `recursive_msonable=True` ### Email (Optional) _No response_ ### Version 2024.10.21 ### Which OS(es) are you using? - [ ] MacOS - [X] Windows - [X] Linux ### What happened? Currently, `jsanitize(recursive_msonable=True)` does not (a...
diff --git a/src/monty/json.py b/src/monty/json.py index d0626d3..7674ccf 100644 --- a/src/monty/json.py +++ b/src/monty/json.py @@ -992,7 +992,13 @@ def jsanitize( if recursive_msonable: try: - return obj.as_dict() + return jsanitize( + obj.as_dict(), + ...
mathandy__svgpathtools-170
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "svgpathtools/document.py:Document.add_path" ], "edited_modules": [ "svgpathtools/document.py:Document" ] }, "file": "svgpathtools/document.py" } ]
mathandy/svgpathtools
c84c897bf2121ed86ceed45b4e027785351c2fd5
Document does not add path to empty group When the passed group element has no children, `Document.add_path` incorrectly adds the path to the root element. Example: ```python doc = Document() empty = doc.add_group(group_attribs={"id": "empty"}) doc.add_path("M 0,0 L 1,1", group=empty) print(doc) ``` Output: ...
diff --git a/svgpathtools/document.py b/svgpathtools/document.py index f88f5ba..1dd9077 100644 --- a/svgpathtools/document.py +++ b/svgpathtools/document.py @@ -289,7 +289,7 @@ class Document: # If given a list of strings (one or more), assume it represents # a sequence of nested group names - ...
mathause__mplotutils-121
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "mplotutils/map_layout.py:_set_map_layout_axes" ], "edited_modules": [ "mplotutils/map_layout.py:_set_map_layout_axes" ] }, "file": "mplotutils/map_layout.py" } ]
mathause/mplotutils
882b68d892ca4fe5b6b281f6ac7a443ea96e0e93
enable set_map_layout for subfigures I doubt this is possible. Currently subfigs can only have relative sizes, and it seems not possible to change them after the fact. Also the can be nested or vertical (I guess it would only work if they would span the whole width of the figure). ```python %matplotlib import ...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 2b56449..6b4777e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,8 @@ ### Enhancements - Enable passing `AxesGrid` (from `mpl_toolkits.axes_grid1`) to `set_map_layout` ([#116](https://github.com/mathause/mplotutils/pull/116)). +- Raise more informative error ...
mathause__mplotutils-136
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "mplotutils/_colorbar.py:colorbar" ], "edited_modules": [ "mplotutils/_colorbar.py:colorbar" ] }, "file": "mplotutils/_colorbar.py" } ]
mathause/mplotutils
52068a62b13eaa1b2a1b3a80627a0d3df4b6a390
`mpu.colorbar` overwrites gca `mpu.colorbar` creates a new axes and hijacks `plt.gca()` - see if we can avoid this. Probably using `plt.sca()`. ```python import mplotutils as mpu import cartopy.crs as ccrs import xarray as xr import matplotlib.pyplot as plt air = xr.tutorial.open_dataset("air_temperature")....
diff --git a/CHANGELOG.md b/CHANGELOG.md index 8dbf094..cbe9cc7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,6 +30,10 @@ - `set_map_layout` now raises an explicit error when the figure contains SubFigure ([#121](https://github.com/mathause/mplotutils/pull/121)). - Test upstream dependencies and fix compatibili...
mathause__mplotutils-26
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "mplotutils/colorbar_utils.py:_resize_colorbar_vert", "mplotutils/colorbar_utils.py:_resize_colorbar_horz" ], "edited_modules": [ "mplotutils/colorbar_utils.py:_resize_colorba...
mathause/mplotutils
b9048b86b8758a31b4462c589b2921899ae45fc4
fix compatibility of mpu.colorbar with mpl >= 3.4 mpu.colorbar - in combination with `aspect` and `bbox_inches="tight"` no longer works properly (the resulting bbox is too large) for matplotlib >= 3.4. ```python import cartopy import cartopy.crs as ccrs import matplotlib import matplotlib.pyplot as plt import...
diff --git a/README.md b/README.md index b87dccb..18642fa 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,13 @@ helper functions for cartopy and matplotlib ### 0.3.0 (unreleased) +#### Bug fixes + + * Fixed compatibility of `mpu.colorbar` with `bbox_inches="tight"` for matplotlib 3.4 and + newer [#26](https://...
mathause__mplotutils-32
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "mplotutils/cartopy_utils.py:infer_interval_breaks" ], "edited_modules": [ "mplotutils/cartopy_utils.py:infer_interval_breaks" ] }, "file": "mplotutils/cartopy_utils.py"...
mathause/mplotutils
f90f19113f797459b8f5515bfc23efae3168ac37
deprecate infer_interval_breaks This is no longer needed with new matplotlib versions (check from which versions on). So these functions should be removed. https://github.com/mathause/mplotutils/blob/b9048b86b8758a31b4462c589b2921899ae45fc4/mplotutils/cartopy_utils.py#L40
diff --git a/.github/workflows/ci-additional.yaml b/.github/workflows/ci-additional.yaml index 7708b84..c8119a1 100644 --- a/.github/workflows/ci-additional.yaml +++ b/.github/workflows/ci-additional.yaml @@ -83,7 +83,7 @@ jobs: fetch-depth: 0 # Fetch all history for all branches and tags. - name: C...
mathause__mplotutils-61
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "mplotutils/map_layout.py:set_map_layout" ], "edited_modules": [ "mplotutils/map_layout.py:set_map_layout" ] }, "file": "mplotutils/map_layout.py" } ]
mathause/mplotutils
a12b0242b93773de282b30adf2e050a8a6be7be2
aspect ratio requires draw for cartopy maps The following leads to a wrong figure size: ``` f, axs = plt.subplots(2, 1, subplot_kw=dict(projection=ccrs.Robinson())) f.subplots_adjust(hspace=0, wspace=0, top=1, bottom=0, left=0, right=1) mpu.set_map_layout(axs, width=17) # width is in cm print("Size (w x h): ",...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 023cb81..3afab67 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,8 @@ ### Bug fixes +- Fixed a bug in `set_map_layout`: the data ratio of a cartopy `GeoAxesSubplot` requires + a `draw` to be correct ([#61](https://github.com/mathause/mplotutils/pull/61)). - ...
matheuscas__pycpfcnpj-16
[ { "changes": { "added_entities": [ "pycpfcnpj/gen.py:cpf_with_punctuation", "pycpfcnpj/gen.py:cnpj_with_punctuation" ], "added_modules": [ "pycpfcnpj/gen.py:cpf_with_punctuation", "pycpfcnpj/gen.py:cnpj_with_punctuation" ], "edited_entities": null, ...
matheuscas/pycpfcnpj
775aa198de297538d77fcaf2df7ef4d0e94efbd2
Generates numbers with punctuation marks After the release 1.1, that handles input numbers with punctuation marks, it would be also nice generate numbers with correct punctuation marks to each type of number, CPF and CNPJ.
diff --git a/README.md b/README.md index 2bb5252..9bbf26f 100644 --- a/README.md +++ b/README.md @@ -58,6 +58,19 @@ Expected output: >>> 49384063495 >>> 20788274885880 ``` + +And you also can generate CPF or CǸPJ with punctuation marks. :) + +```python +from pycpfcnpj import gen +gen.cpf_with_punctuation() +gen.cnpj...
mathysgrapotte__stimulus-py-72
[ { "changes": { "added_entities": [ "src/stimulus/data/encoding/encoders.py:TextOneHotEncoder.encode_multiprocess" ], "added_modules": null, "edited_entities": [ "src/stimulus/data/encoding/encoders.py:AbstractEncoder.encode_multiprocess", "src/stimulus/data/encodi...
mathysgrapotte/stimulus-py
324d40d7e1cd1256fec1a05df2d89eac7198b03e
bug: type management in TextOneHotEncoder is not correct in encode_all(); encode_multiprocess returns a np array, but encoded data is expected to be a torch.tensor. (removing type: ignore[assigment] and running make check-types will reveal the error) We should deal with this by either defining encode_multiprocess i...
diff --git a/.gitignore b/.gitignore index aa7df12..9fea047 100644 --- a/.gitignore +++ b/.gitignore @@ -23,6 +23,3 @@ uv.lock .mypy_cache/ .ruff_cache/ __pycache__/ - -# cursor -.cursorrules diff --git a/CHANGELOG.md b/CHANGELOG.md index 353d2de..b6b5b3d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,24 @@...
matplotlib__matplotlib-13402
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "lib/matplotlib/cbook/__init__.py:_reshape_2D" ], "edited_modules": [ "lib/matplotlib/cbook/__init__.py:_reshape_2D" ] }, "file": "lib/matplotlib/cbook/__init__.py" } ...
matplotlib/matplotlib
5d56c1c81a8528696d07d075ffd242dbd1845942
boxplot broken for empty inputs <!--To help us understand and resolve your issue, please fill out the form to the best of your ability.--> <!--You can feel free to delete the sections that do not apply.--> ### Bug report **Bug summary** <!--A short 1-2 sentences that succinctly describes the bug--> **Code ...
diff --git a/lib/matplotlib/cbook/__init__.py b/lib/matplotlib/cbook/__init__.py index a7b11f5d1d..5e3bc1955b 100644 --- a/lib/matplotlib/cbook/__init__.py +++ b/lib/matplotlib/cbook/__init__.py @@ -1416,6 +1416,8 @@ def _reshape_2D(X, name): """ # Iterate over columns for ndarrays, over rows otherwise. ...
matplotlib__matplotlib-13432
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "lib/matplotlib/artist.py:ArtistInspector.get_aliases" ], "edited_modules": [ "lib/matplotlib/artist.py:ArtistInspector" ] }, "file": "lib/matplotlib/artist.py" } ]
matplotlib/matplotlib
9f0afd2d17380166591a927e512983767182ddbb
Doc: Alias names disappeared from documentation <!--To help us understand and resolve your issue, please fill out the form to the best of your ability.--> <!--You can feel free to delete the sections that do not apply.--> ### Bug report **Bug summary** An older version of the documentation lists all the alias...
diff --git a/lib/matplotlib/artist.py b/lib/matplotlib/artist.py index bf096888ea..e5fce7c010 100644 --- a/lib/matplotlib/artist.py +++ b/lib/matplotlib/artist.py @@ -1209,7 +1209,7 @@ class ArtistInspector(object): continue propname = re.search("`({}.*)`".format(name[:4]), # get_.*/set_....
matplotlib__matplotlib-13457
[ { "changes": { "added_entities": [ "lib/matplotlib/offsetbox.py:AnnotationBbox.get_window_extent", "lib/matplotlib/offsetbox.py:AnnotationBbox.get_tightbbox" ], "added_modules": null, "edited_entities": null, "edited_modules": [ "lib/matplotlib/offsetbox.py:...
matplotlib/matplotlib
90200c6fd5a044233d02559d6c40c37dc70d6a31
Annotations get cropped out of figures saved with bbox_inches='tight' <!--To help us understand and resolve your issue, please fill out the form to the best of your ability.--> <!--You can feel free to delete the sections that do not apply.--> ### Bug report **Bug summary** <!--A short 1-2 sentences that succ...
diff --git a/lib/matplotlib/offsetbox.py b/lib/matplotlib/offsetbox.py index 19fceb313a..7bcf3f3dea 100644 --- a/lib/matplotlib/offsetbox.py +++ b/lib/matplotlib/offsetbox.py @@ -1544,6 +1544,24 @@ class AnnotationBbox(martist.Artist, mtext._AnnotationBase): """Return the fontsize in points.""" return...
matplotlib__matplotlib-13596
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "lib/matplotlib/axes/_axes.py:Axes.bxp" ], "edited_modules": [ "lib/matplotlib/axes/_axes.py:Axes" ] }, "file": "lib/matplotlib/axes/_axes.py" }, { "changes": { ...
matplotlib/matplotlib
e809b50a27931a004fb9eb4c13221022bade6d00
boxplot doesn't normalize properties before applying them <!--To help us understand and resolve your issue, please fill out the form to the best of your ability.--> <!--You can feel free to delete the sections that do not apply.--> ### Bug report **Bug summary** Per title and example below. **Code for repr...
diff --git a/doc/_templates/layout.html b/doc/_templates/layout.html index 017214b076..2da65d8fd8 100644 --- a/doc/_templates/layout.html +++ b/doc/_templates/layout.html @@ -162,11 +162,7 @@ parents[-1].link|e }}" /> {%- endif %} {%- endblock %} {%- block extrahead %} -{%- if '+' in release %} - <link rel="c...
matplotlib__matplotlib-13603
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "lib/matplotlib/tight_layout.py:get_tight_layout_figure" ], "edited_modules": [ "lib/matplotlib/tight_layout.py:get_tight_layout_figure" ] }, "file": "lib/matplotlib/tig...
matplotlib/matplotlib
da701ae6c60c92a4df709b66caf010b8f15b8c06
text in colorbar does not work correctly with tight layout <!--To help us understand and resolve your issue, please fill out the form to the best of your ability.--> <!--You can feel free to delete the sections that do not apply.--> ### Bug report **Bug summary** <!--A short 1-2 sentences that succinctly desc...
diff --git a/doc/_templates/layout.html b/doc/_templates/layout.html index 017214b076..2da65d8fd8 100644 --- a/doc/_templates/layout.html +++ b/doc/_templates/layout.html @@ -162,11 +162,7 @@ parents[-1].link|e }}" /> {%- endif %} {%- endblock %} {%- block extrahead %} -{%- if '+' in release %} - <link rel="c...
matplotlib__matplotlib-13708
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "lib/matplotlib/text.py:Text.contains", "lib/matplotlib/text.py:Annotation.contains" ], "edited_modules": [ "lib/matplotlib/text.py:Text", "lib/matplotlib/text.py:Anno...
matplotlib/matplotlib
4236b571cb2f0b741c40788d471d3aa553421e7b
Annotation.contains and FancyArrow.contains return incorrect values <!--To help us understand and resolve your issue, please fill out the form to the best of your ability.--> <!--You can feel free to delete the sections that do not apply.--> ### Bug report Consider the following example: ``` from pylab import ...
diff --git a/lib/matplotlib/text.py b/lib/matplotlib/text.py index b5a3567dfe..8450b60d08 100644 --- a/lib/matplotlib/text.py +++ b/lib/matplotlib/text.py @@ -200,7 +200,10 @@ class Text(Artist): if not self.get_visible() or self._renderer is None: return False, {} - l, b, w, h = self.get...
matplotlib__matplotlib-13741
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "lib/matplotlib/axes/_base.py:_AxesBase._update_title_position" ], "edited_modules": [ "lib/matplotlib/axes/_base.py:_AxesBase" ] }, "file": "lib/matplotlib/axes/_base.p...
matplotlib/matplotlib
e974bf06cde643b4d3867ca15c9f901b57e762ec
title doesn't move for ticklables.... <!--To help us understand and resolve your issue, please fill out the form to the best of your ability.--> <!--You can feel free to delete the sections that do not apply.--> ### Bug report Per https://stackoverflow.com/questions/55289921/matplotlib-matshow-xtick-labels-on-to...
diff --git a/lib/matplotlib/axes/_base.py b/lib/matplotlib/axes/_base.py index 95d534bf15..a61be157e0 100644 --- a/lib/matplotlib/axes/_base.py +++ b/lib/matplotlib/axes/_base.py @@ -2535,8 +2535,9 @@ class _AxesBase(martist.Artist): top = 0 for ax in axs: try: - ...
matplotlib__matplotlib-14295
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "lib/matplotlib/backends/_backend_tk.py:ConfigureSubplotsTk.destroy" ], "edited_modules": [ "lib/matplotlib/backends/_backend_tk.py:ConfigureSubplotsTk" ] }, "file": "li...
matplotlib/matplotlib
7d924401eba780a935d99a2aacc31f2432763d44
symlog looses some points since 3.1.0 (example given) ### Bug report **Bug summary** Since I updated to 3.1.0, symlog looses some points, at least when drawing a scatter plot **Code for reproduction** ```python import matplotlib.pyplot as plt import numpy as np x = [1.0000e+00, 2.0000e+00, 3.0000e+00,...
diff --git a/doc/users/prev_whats_new/whats_new_3.1.0.rst b/doc/users/prev_whats_new/whats_new_3.1.0.rst index c1bfc146a9..3fda0812b3 100644 --- a/doc/users/prev_whats_new/whats_new_3.1.0.rst +++ b/doc/users/prev_whats_new/whats_new_3.1.0.rst @@ -107,7 +107,7 @@ An example can be found in :ref:`automatedlegendcreation`...
matplotlib__matplotlib-14313
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "lib/matplotlib/colors.py:_to_rgba_no_colorcycle", "lib/matplotlib/colors.py:to_rgba_array" ], "edited_modules": [ "lib/matplotlib/colors.py:_to_rgba_no_colorcycle", "...
matplotlib/matplotlib
65e53edf2162ae688d9cd6c15cb0e16b6abb7264
scatter() fails on nan-containing input when providing edgecolor ### Bug report **Bug summary** Providing ``ax.scatter()`` with coordinates containing ``np.nan`` fails when providing ``edgecolor`` argument (but works when omitting it). Probably related to #12801 and #12422 introduced in 3.1.0, as it runs as expec...
diff --git a/lib/matplotlib/colors.py b/lib/matplotlib/colors.py index 859f29b905..f90fb35a0d 100644 --- a/lib/matplotlib/colors.py +++ b/lib/matplotlib/colors.py @@ -152,7 +152,7 @@ def to_rgba(c, alpha=None): Parameters ---------- - c : Matplotlib color + c : Matplotlib color or ``np.ma.masked`` ...
matplotlib__matplotlib-14397
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "lib/matplotlib/axes/_axes.py:Axes.pcolorfast" ], "edited_modules": [ "lib/matplotlib/axes/_axes.py:Axes" ] }, "file": "lib/matplotlib/axes/_axes.py" } ]
matplotlib/matplotlib
52aa26b61608c14f990fa404b9a416f93f08a4be
pcolorfast misbehaves when changing axis limits <!--To help us understand and resolve your issue, please fill out the form to the best of your ability.--> <!--You can feel free to delete the sections that do not apply.--> ### Bug report With a figure that contains a `pcolorfast` plot, when I limit the range of a...
diff --git a/lib/matplotlib/axes/_axes.py b/lib/matplotlib/axes/_axes.py index 59b4b6d06e..ceacd014ef 100644 --- a/lib/matplotlib/axes/_axes.py +++ b/lib/matplotlib/axes/_axes.py @@ -6309,6 +6309,9 @@ optional. ret.set_clim(vmin, vmax) elif np.ndim(C) == 2: # C.ndim == 3 is RGB(A) so doesn't need...
matplotlib__matplotlib-14429
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "lib/matplotlib/units.py:_is_natively_supported", "lib/matplotlib/units.py:ConversionInterface.is_numlike" ], "edited_modules": [ "lib/matplotlib/units.py:_is_natively_support...
matplotlib/matplotlib
918b6916e3c1325cd6d1779ba937628ab53457e7
matplotlib.units.ConversionError on scatter of dates with a NaN in the first position ### Bug report **Bug summary** When on a scatter plot the first number on the y values is a nan, and the x values are dates, I get the error: `matplotlib.units.ConversionError: Failed to convert value(s) to axis units: masked...
diff --git a/lib/matplotlib/units.py b/lib/matplotlib/units.py index f56032b4c8..b5c9f724b4 100644 --- a/lib/matplotlib/units.py +++ b/lib/matplotlib/units.py @@ -64,6 +64,8 @@ def _is_natively_supported(x): if np.iterable(x): # Assume lists are homogeneous as other functions in unit system. for ...
matplotlib__matplotlib-14567
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "lib/matplotlib/axes/_base.py:_AxesBase.autoscale_view" ], "edited_modules": [ "lib/matplotlib/axes/_base.py:_AxesBase" ] }, "file": "lib/matplotlib/axes/_base.py" }, ...
matplotlib/matplotlib
f68b4ea6bc3f4abe7971aed722ad11250de4f3c5
UnicodeDecodeError when making a plot using the 'classic' style and text.usetex=True ### Bug report When making a plot using the 'classic' style, matplotlib overrides the default value for `text.latex.unicode`, setting it to `False`. This causes a problem for any plot that has negative numbers in any label, because ...
diff --git a/lib/matplotlib/axes/_base.py b/lib/matplotlib/axes/_base.py index 081618fa80..28c4c9caa8 100644 --- a/lib/matplotlib/axes/_base.py +++ b/lib/matplotlib/axes/_base.py @@ -2428,7 +2428,6 @@ class _AxesBase(martist.Artist): case, use :meth:`matplotlib.axes.Axes.relim` prior to calling autosc...
matplotlib__matplotlib-14579
[ { "changes": { "added_entities": [ "lib/matplotlib/axis.py:_make_getset_interval" ], "added_modules": [ "lib/matplotlib/axis.py:_make_getset_interval" ], "edited_entities": [ "lib/matplotlib/axis.py:XAxis.get_view_interval", "lib/matplotlib/axis.py:X...
matplotlib/matplotlib
63d96d2861c6b4c42da83067689dbe7b6d33582b
Calling invert_yaxis() on a 3D plot has either no effect or removes ticks <!--To help us understand and resolve your issue, please fill out the form to the best of your ability.--> <!--You can feel free to delete the sections that do not apply.--> ### Bug report **Bug summary** Using version 3.1.0, ax.invert_...
diff --git a/lib/matplotlib/axis.py b/lib/matplotlib/axis.py index a2b487da78..e6293a8db8 100644 --- a/lib/matplotlib/axis.py +++ b/lib/matplotlib/axis.py @@ -1890,6 +1890,36 @@ class Axis(martist.Artist): raise NotImplementedError() +def _make_getset_interval(method_name, lim_name, attr_name): + """ + ...
matplotlib__matplotlib-14686
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "lib/matplotlib/axes/_axes.py:Axes.indicate_inset" ], "edited_modules": [ "lib/matplotlib/axes/_axes.py:Axes" ] }, "file": "lib/matplotlib/axes/_axes.py" } ]
matplotlib/matplotlib
22efae66618f5ce7234cfc05094e68ce960e14e0
indicate_inset rectangles is sensitive to axis-flipping **Bug summary** If an axis of the root axes are flipped (e.g. if `imshow` was used), the inset axes lines may cross over each other. I believe this is because the function looks at the data coordinates of the root axes, but only the figure bounding box of the i...
diff --git a/.circleci/config.yml b/.circleci/config.yml index 5b2fc3cdd7..41bdd19913 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -75,9 +75,7 @@ mpl-run: &mpl-install doc-run: &doc-build name: Build documentation - command: | - make html O=-T - rm -r build/html/_sources + command: make...
matplotlib__matplotlib-14998
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "lib/matplotlib/spines.py:Spine.get_window_extent", "lib/matplotlib/spines.py:Spine._calc_offset_transform", "lib/matplotlib/spines.py:Spine.set_position", "lib/matplotlib/spines....
matplotlib/matplotlib
0f54425419b4f91781d2de47b5c315bbfa0540c3
setting spine position on a log plot fails ### Bug report **Bug summary** When changing the spine position to a specific data value on a log (or, semi-log) plot using matplotlib.spines.set_position(), the axis is not showing. Rather, the axis is set to a location far outside the plot. The following code demonstrate...
diff --git a/lib/matplotlib/spines.py b/lib/matplotlib/spines.py index 23b9402fc9..d5a900ceba 100644 --- a/lib/matplotlib/spines.py +++ b/lib/matplotlib/spines.py @@ -10,7 +10,8 @@ import matplotlib.path as mpath class Spine(mpatches.Patch): - """an axis spine -- the line noting the data area boundaries + ""...
matplotlib__matplotlib-15020
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "lib/matplotlib/patches.py:ConnectionPatch._check_xy" ], "edited_modules": [ "lib/matplotlib/patches.py:ConnectionPatch" ] }, "file": "lib/matplotlib/patches.py" } ]
matplotlib/matplotlib
1f003b0504ae71c0bdf47c6c1dc644d39e39dcc5
ConnectionPatch hidden by plots A ConnectionPatch is sometimes not shown on one of the plots, depending on the position of the axesA and axesB subplots. A reproducing example, with only minor changes to the ConnnectionPatch example from the docs: ```python from matplotlib.patches import ConnectionPatch import m...
diff --git a/lib/matplotlib/patches.py b/lib/matplotlib/patches.py index da89c6a0ae..1556eae2cc 100644 --- a/lib/matplotlib/patches.py +++ b/lib/matplotlib/patches.py @@ -4454,7 +4454,11 @@ class ConnectionPatch(FancyArrowPatch): if b or (b is None and self.coords1 == "data"): x, y = self.xy1 ...
matplotlib__matplotlib-15149
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "lib/matplotlib/style/core.py:use" ], "edited_modules": [ "lib/matplotlib/style/core.py:use" ] }, "file": "lib/matplotlib/style/core.py" } ]
matplotlib/matplotlib
8ed7c78725f948cf99ef65df53d4b9b23fc39d6a
Make plt.style.use accept path-like objects in addition to string `plt.style.use(style)` accepts a `str`, `dict`, or `list`. The `str `can be either the name of a style or a path/URL to a style file. I propose that this also accept a pathlike object (`pathlib.Path`) so that it is unneccesary to cast it like `plt.style....
diff --git a/lib/matplotlib/__init__.py b/lib/matplotlib/__init__.py index b7cac2a11f..81792d2dc6 100644 --- a/lib/matplotlib/__init__.py +++ b/lib/matplotlib/__init__.py @@ -948,7 +948,7 @@ def rc_params_from_file(fname, fail_on_error=False, use_default_template=True): Parameters ---------- - fname : st...
matplotlib__matplotlib-15283
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "lib/matplotlib/rcsetup.py:validate_fontweight" ], "edited_modules": [ "lib/matplotlib/rcsetup.py:validate_fontweight" ] }, "file": "lib/matplotlib/rcsetup.py" }, { ...
matplotlib/matplotlib
8d179398f937a5c4b9763a4c54ff4059bb62c079
Colorbar tick placement issues with ImageGrid and LogNorm <!--To help us understand and resolve your issue, please fill out the form to the best of your ability.--> <!--You can feel free to delete the sections that do not apply.--> ### Bug report **Bug summary** The colorbar tick marks are all compressed onto...
diff --git a/doc/api/prev_api_changes/api_changes_3.2.0/deprecations.rst b/doc/api/prev_api_changes/api_changes_3.2.0/deprecations.rst index 0ce65b7014..4774515da5 100644 --- a/doc/api/prev_api_changes/api_changes_3.2.0/deprecations.rst +++ b/doc/api/prev_api_changes/api_changes_3.2.0/deprecations.rst @@ -45,10 +45,14 ...
matplotlib__matplotlib-15297
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "doc/conf.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "doc/sphinxext/missing_re...
matplotlib/matplotlib
030157c49a887d0d63780258a57ec86b00f71d4d
Check if canvas is clean or dirty I would like a attribute or a method to check if a canvas (or figure) is clean or dirty, i.e. if anything has been drawn on it.
diff --git a/doc/_static/mpl.css b/doc/_static/mpl.css index 6273661704..c844558099 100644 --- a/doc/_static/mpl.css +++ b/doc/_static/mpl.css @@ -349,7 +349,7 @@ div.footer { padding: 3px 8px 3px 0; clear: both; font-size: 0.8em; - text-align: right; + text-align: center; } div.footer a { diff...
matplotlib__matplotlib-15519
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "lib/matplotlib/image.py:_resample" ], "edited_modules": [ "lib/matplotlib/image.py:_resample" ] }, "file": "lib/matplotlib/image.py" } ]
matplotlib/matplotlib
09c83816ac57f5c954b31cbfb9e7ad54e2ecbbca
antialiased image check seems wrong when used on zoomed image <!--To help us understand and resolve your issue, please fill out the form to the best of your ability.--> <!--You can feel free to delete the sections that do not apply.--> ### Bug report **Bug summary** The new antialiased image code appears to n...
diff --git a/lib/matplotlib/image.py b/lib/matplotlib/image.py index 86391d4314..db3bf36cfe 100644 --- a/lib/matplotlib/image.py +++ b/lib/matplotlib/image.py @@ -176,11 +176,10 @@ def _resample( if interpolation == 'antialiased': # don't antialias if upsampling by an integer number or # if zoomi...
matplotlib__matplotlib-15695
[ { "changes": { "added_entities": [ "lib/matplotlib/texmanager.py:TexManager._get_preamble" ], "added_modules": null, "edited_entities": [ "lib/matplotlib/texmanager.py:TexManager.make_tex", "lib/matplotlib/texmanager.py:TexManager.make_tex_preview" ], ...
matplotlib/matplotlib
3c58e2a0e94aae913d9b730a9908ceede0c1d178
Setting plt.rc('text', usetex=True) after ticker.ScalarFormatter(useMathText=True) causes Error <!--To help us understand and resolve your issue, please fill out the form to the best of your ability.--> <!--You can feel free to delete the sections that do not apply.--> ### Bug report **Bug summary** If I call...
diff --git a/lib/matplotlib/texmanager.py b/lib/matplotlib/texmanager.py index 3847a1a093..bdbb38d711 100644 --- a/lib/matplotlib/texmanager.py +++ b/lib/matplotlib/texmanager.py @@ -192,6 +192,22 @@ class TexManager: """Return a string containing user additions to the tex preamble.""" return rcParams...
matplotlib__matplotlib-15709
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "lib/mpl_toolkits/mplot3d/axes3d.py:Axes3D.plot" ], "edited_modules": [ "lib/mpl_toolkits/mplot3d/axes3d.py:Axes3D" ] }, "file": "lib/mpl_toolkits/mplot3d/axes3d.py" }...
matplotlib/matplotlib
1e043bce951509fe278ab5800b42a835ffa6f817
mplot3D scalar arguments for plot function Hi, `ax.plot` in 2D case allows to use scalar arguments for `x` and `y`, so `ax.plot( 1, 1, ls='', marker='o')` is valid code. But in 3D case it does not and assumes that arguments are always **array-like**. I know this is a rare case, but it looks like inconsistent for `plot...
diff --git a/lib/mpl_toolkits/mplot3d/axes3d.py b/lib/mpl_toolkits/mplot3d/axes3d.py index d4a2699b93..a7241b427a 100644 --- a/lib/mpl_toolkits/mplot3d/axes3d.py +++ b/lib/mpl_toolkits/mplot3d/axes3d.py @@ -1438,7 +1438,7 @@ class Axes3D(Axes): zs = kwargs.pop('zs', 0) # Match length - zs...
matplotlib__matplotlib-15769
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "examples/images_contours_and_fields/pcolor_demo.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entitie...
matplotlib/matplotlib
b83d9d64d7609c6faa1ec54e2cfa102b11a0369d
Scatterplot: should vmin/vmax be ignored when a norm is specified? ### Bug report **Bug summary** The `scatter` documentation says: > *vmin* and *vmax* are ignored if you pass a *norm* instance. However, it seems that this is not the case. Is the documentation correct of the behaviour? **Code for reprodu...
diff --git a/doc/api/next_api_changes/deprecations.rst b/doc/api/next_api_changes/deprecations.rst index 6742b2e762..9616039e20 100644 --- a/doc/api/next_api_changes/deprecations.rst +++ b/doc/api/next_api_changes/deprecations.rst @@ -88,3 +88,11 @@ Setting :rc:`text.latex.preamble` or :rc:`pdf.preamble` to non-strings...
matplotlib__matplotlib-15783
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "lib/matplotlib/axes/_axes.py:Axes.hist" ], "edited_modules": [ "lib/matplotlib/axes/_axes.py:Axes" ] }, "file": "lib/matplotlib/axes/_axes.py" }, { "changes": {...
matplotlib/matplotlib
c9a551d2c34c0587147b4373806621edb988a7e1
Invalid polygon in stepfilled histogram when bottom is set ### Bug report **Bug summary** The polygon perimeter created by `hist()` with `histtype='stepfilled'` in combination with a non-None `bottom` argument has an invalid starting point. This leads to a skewed lower edge of the first bin. **Code for repro...
diff --git a/doc/_templates/search.html b/doc/_templates/search.html index 54f1d3338e..40e6a2df71 100644 --- a/doc/_templates/search.html +++ b/doc/_templates/search.html @@ -7,13 +7,13 @@ {% block body %} <h1 id="search-documentation">{{ _('Search') }}</h1> <p> - {% trans %}Searching for multiple words only ...
matplotlib__matplotlib-15826
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "lib/mpl_toolkits/mplot3d/axes3d.py:Axes3D.bar3d" ], "edited_modules": [ "lib/mpl_toolkits/mplot3d/axes3d.py:Axes3D" ] }, "file": "lib/mpl_toolkits/mplot3d/axes3d.py" ...
matplotlib/matplotlib
8b9f61d001a363c74a2832f8e7c435b6b59c176b
bar3d color length bug ### Bug report **Bug summary** When the length of the color string passed into the bar3d function, matches the length of the length of array x, it is treated as an array of N colors for coloring each bar individually (https://matplotlib.org/mpl_toolkits/mplot3d/api.html#mpl_toolkits.mplot3...
diff --git a/lib/mpl_toolkits/mplot3d/axes3d.py b/lib/mpl_toolkits/mplot3d/axes3d.py index 584e12461d..ebf03f7bf2 100644 --- a/lib/mpl_toolkits/mplot3d/axes3d.py +++ b/lib/mpl_toolkits/mplot3d/axes3d.py @@ -2507,13 +2507,15 @@ class Axes3D(Axes): if color is None: color = [self._get_patches_for_fi...
matplotlib__matplotlib-15966
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "lib/matplotlib/axes/_base.py:_AxesBase.__init__" ], "edited_modules": [ "lib/matplotlib/axes/_base.py:_AxesBase" ] }, "file": "lib/matplotlib/axes/_base.py" }, { ...
matplotlib/matplotlib
621f298a9ee059b5dca6a1ef20a361d6911a1751
Guard `plt.subplot` kwargs a bit better? <!--To help us understand and resolve your issue, please fill out the form to the best of your ability.--> <!--You can feel free to delete the sections that do not apply.--> ### Bug report A user on [stackoverflow](https://stackoverflow.com/questions/59377017/matplotlib-s...
diff --git a/lib/matplotlib/axes/_base.py b/lib/matplotlib/axes/_base.py index 5872da84f3..68a82ddd83 100644 --- a/lib/matplotlib/axes/_base.py +++ b/lib/matplotlib/axes/_base.py @@ -438,8 +438,12 @@ class _AxesBase(martist.Artist): self._sharex = sharex self._sharey = sharey if sharex is not...
matplotlib__matplotlib-16006
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "lib/matplotlib/category.py:StrCategoryFormatter.__call__" ], "edited_modules": [ "lib/matplotlib/category.py:StrCategoryFormatter" ] }, "file": "lib/matplotlib/category...
matplotlib/matplotlib
a070ad53324c5a8478db85f4fa0e980eeb3d2ece
Categoricals not showing up in the preview window As reported by @wuweihust on gitter, string categorical tick labels don't show up in the preview window of an interactive plot: ```python %matplotlib notebook import matplotlib.pyplot as plt fig, ax = plt.subplots() ax.plot(['hi', 'bye', 'why'], [3,1,2]) ``` <i...
diff --git a/INSTALL.rst b/INSTALL.rst index b0ebe1d44f..88f5800166 100644 --- a/INSTALL.rst +++ b/INSTALL.rst @@ -159,9 +159,7 @@ FreeType and Qhull Matplotlib depends on `FreeType <https://www.freetype.org/>`_ (>= 2.3), a font rendering library, and on `Qhull <http://www.qhull.org/>`_ (>= 2015.2), a library for co...
matplotlib__matplotlib-16340
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "lib/matplotlib/axes/_base.py:_AxesBase.set_xmargin", "lib/matplotlib/axes/_base.py:_AxesBase.set_ymargin", "lib/matplotlib/axes/_base.py:_AxesBase.margins" ], "edited_modules...
matplotlib/matplotlib
a57ea3da92d8e12ef908e07b8eeeb57318bda052
ordering issues between `set_xmargin` and `set_xscale` As of 2.0b4, the order in which calls to `set(xmargin=...)` and `set(xscale=...)` are made result in different plots: ``` from matplotlib import pyplot as plt fig, axs = plt.subplots(2) axs[0].plot([1, 2], [1, 2]) axs[1].plot([1, 2], [1, 2]) axs[0].set(xscale="log...
diff --git a/lib/matplotlib/axes/_base.py b/lib/matplotlib/axes/_base.py index 8f60cfeddf..00804b8ecf 100644 --- a/lib/matplotlib/axes/_base.py +++ b/lib/matplotlib/axes/_base.py @@ -2294,6 +2294,7 @@ class _AxesBase(martist.Artist): if m <= -0.5: raise ValueError("margin must be greater than -0.5...
matplotlib__matplotlib-16366
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "lib/matplotlib/dviread.py:DviFont._height_depth_of" ], "edited_modules": [ "lib/matplotlib/dviread.py:DviFont" ] }, "file": "lib/matplotlib/dviread.py" } ]
matplotlib/matplotlib
18ed621c6f7a00270ecc150260ae8d0a17d891bd
Vertical alignment of tick labels with usetex=True If I set ``` plt.rc('text', usetex=True) ``` the vertical alignment of tick labels is incorrect. For negative ticks, the tick labels are quite visibly lower than the positive marks. See the screenshot for an example. A minimal working example: from matplotlib i...
diff --git a/lib/matplotlib/dviread.py b/lib/matplotlib/dviread.py index aab0e978f0..ca975530dc 100644 --- a/lib/matplotlib/dviread.py +++ b/lib/matplotlib/dviread.py @@ -566,6 +566,12 @@ class DviFont: result.append(0) else: result.append(_mul2012(value, self._scale)) + ...
matplotlib__matplotlib-16469
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "lib/matplotlib/__init__.py:_preprocess_data" ], "edited_modules": [ "lib/matplotlib/__init__.py:_preprocess_data" ] }, "file": "lib/matplotlib/__init__.py" }, { ...
matplotlib/matplotlib
0358ab8ea1dd613e9ce233d97d832f41d74563a9
incorrect cbar minor ticks for extend regions when x/ytick.minor.visible is True <!--To help us understand and resolve your issue, please fill out the form to the best of your ability.--> <!--You can feel free to delete the sections that do not apply.--> ### Bug report **Bug summary** Colorbars have their own `...
diff --git a/doc/api/next_api_changes/deprecations.rst b/doc/api/next_api_changes/deprecations.rst index cd4714c844..7e9e32c394 100644 --- a/doc/api/next_api_changes/deprecations.rst +++ b/doc/api/next_api_changes/deprecations.rst @@ -199,8 +199,3 @@ The change from "nonpos" to "nonpositive" also affects `~.scale.LogTr...
matplotlib__matplotlib-16484
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "lib/matplotlib/backends/backend_svg.py:RendererSVG._draw_text_as_text" ], "edited_modules": [ "lib/matplotlib/backends/backend_svg.py:RendererSVG" ] }, "file": "lib/mat...
matplotlib/matplotlib
a0eb716eeeaba3f5595b6cd3f8e063e81660331b
font-stretch property missing in svg export ### Bug report **Bug summary** <!--A short 1-2 sentences that succinctly describes the bug--> **Code for reproduction** <!--A minimum code snippet required to reproduce the bug. Please make sure to minimize the number of dependencies required, and provide any ne...
diff --git a/lib/matplotlib/backends/backend_svg.py b/lib/matplotlib/backends/backend_svg.py index a697b6c19d..eaa0f9e0c5 100644 --- a/lib/matplotlib/backends/backend_svg.py +++ b/lib/matplotlib/backends/backend_svg.py @@ -1027,11 +1027,12 @@ class RendererSVG(RendererBase): font.set_text(s, 0.0, flags=LOA...
matplotlib__matplotlib-16745
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "lib/matplotlib/quiver.py:Quiver.set_UVC" ], "edited_modules": [ "lib/matplotlib/quiver.py:Quiver" ] }, "file": "lib/matplotlib/quiver.py" } ]
matplotlib/matplotlib
2f85640a2c3a91a39ae5de62c9a574fea06bd929
Breaking change in 3.2: quiver.set_UVC does not support single numbers any more <!--To help us understand and resolve your issue, please fill out the form to the best of your ability.--> <!--You can feel free to delete the sections that do not apply.--> ### Bug report **Bug summary** In prior versions of matp...
diff --git a/lib/matplotlib/quiver.py b/lib/matplotlib/quiver.py index 8f2ad56f02..91127b2968 100644 --- a/lib/matplotlib/quiver.py +++ b/lib/matplotlib/quiver.py @@ -585,7 +585,7 @@ class Quiver(mcollections.PolyCollection): if C is not None: C = ma.masked_invalid(C, copy=True).ravel() f...
matplotlib__matplotlib-16761
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "lib/matplotlib/quiver.py:Quiver.set_UVC" ], "edited_modules": [ "lib/matplotlib/quiver.py:Quiver" ] }, "file": "lib/matplotlib/quiver.py" } ]
matplotlib/matplotlib
ea34bd14d388c97f0fc5ad9c0e8a4347b1d6e4fc
Breaking change in 3.2: quiver.set_UVC does not support single numbers any more <!--To help us understand and resolve your issue, please fill out the form to the best of your ability.--> <!--You can feel free to delete the sections that do not apply.--> ### Bug report **Bug summary** In prior versions of matp...
diff --git a/lib/matplotlib/quiver.py b/lib/matplotlib/quiver.py index 1d24072fc3..29dad2ad91 100644 --- a/lib/matplotlib/quiver.py +++ b/lib/matplotlib/quiver.py @@ -600,7 +600,7 @@ class Quiver(mcollections.PolyCollection): if C is not None: C = ma.masked_invalid(C, copy=True).ravel() f...
matplotlib__matplotlib-16999
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "lib/matplotlib/axes/_axes.py:Axes.axline", "lib/matplotlib/axes/_axes.py:Axes.specgram" ], "edited_modules": [ "lib/matplotlib/axes/_axes.py:Axes" ] }, "file": ...
matplotlib/matplotlib
da8789b56f58aff98520279b3a464d7548d252a9
Thin line color distortion on large scale ### Bug report Distortion of color in thin lines (1px), when viewed on a large scale. On small scale lines look as they should. <!--A short 1-2 sentences that succinctly describes the bug--> **Code for reproduction** Image with labels on my google drive https://dri...
diff --git a/doc/api/next_api_changes/deprecations.rst b/doc/api/next_api_changes/deprecations.rst index 567aaa0707..b2e266ed1e 100644 --- a/doc/api/next_api_changes/deprecations.rst +++ b/doc/api/next_api_changes/deprecations.rst @@ -415,10 +415,3 @@ parent figure, though they can be later removed with ``ax.remove()``...
matplotlib__matplotlib-17017
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "lib/matplotlib/collections.py:Collection.get_datalim" ], "edited_modules": [ "lib/matplotlib/collections.py:Collection" ] }, "file": "lib/matplotlib/collections.py" }...
matplotlib/matplotlib
a451e2c7577e10f052e77d3b2751a3f154cae095
Issues with autoscaling and transforms with 3.2+ ### Bug report **Bug summary** I am encountering a few seemingly related issues but can't exactly define what's happening. They broadly relate to unexpected changes in how plots are scaled and appear in the context of using the transform objects attached to the Axe...
diff --git a/lib/matplotlib/collections.py b/lib/matplotlib/collections.py index 390866fb80..eab47a160f 100644 --- a/lib/matplotlib/collections.py +++ b/lib/matplotlib/collections.py @@ -219,7 +219,7 @@ class Collection(artist.Artist, cm.ScalarMappable): # get_path_collection_extents handles nan but not ma...
matplotlib__matplotlib-17223
[ { "changes": { "added_entities": [ "lib/matplotlib/backend_bases.py:_check_savefig_extra_args" ], "added_modules": [ "lib/matplotlib/backend_bases.py:_check_savefig_extra_args" ], "edited_entities": null, "edited_modules": null }, "file": "lib/matplotl...
matplotlib/matplotlib
15c0d7c39806836766c55e843d744c25758e9cd3
Savefig does not issue a warning on a non-existent keyword n [Original report at SourceForge, opened Tue Feb 8 16:27:19 2011](https://sourceforge.net/tracker/?func=detail&aid=3175903&group_id=80706&atid=560720) savefig does not issue a warning on a non-existent keyword name Example Savefig('filename.png', NonExistan...
diff --git a/lib/matplotlib/backend_bases.py b/lib/matplotlib/backend_bases.py index 6b4182f326..6f8d47a3c0 100644 --- a/lib/matplotlib/backend_bases.py +++ b/lib/matplotlib/backend_bases.py @@ -29,11 +29,14 @@ from contextlib import contextmanager, suppress from enum import Enum, IntEnum import functools import imp...
matplotlib__matplotlib-17245
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "lib/matplotlib/axes/_axes.py:Axes._parse_scatter_color_args" ], "edited_modules": [ "lib/matplotlib/axes/_axes.py:Axes" ] }, "file": "lib/matplotlib/axes/_axes.py" } ...
matplotlib/matplotlib
b94812c6037883bcc7dadfa2fd95cd7d5a1efcfd
Misleading error message in _parse_scatter_color_args <!--To help us understand and resolve your issue, please fill out the form to the best of your ability.--> <!--You can feel free to delete the sections that do not apply.--> ### Bug report Not really a bug, just an annoying error message. In `_axes.py`, lin...
diff --git a/lib/matplotlib/axes/_axes.py b/lib/matplotlib/axes/_axes.py index 63b16c3118..2d3d5e16c1 100644 --- a/lib/matplotlib/axes/_axes.py +++ b/lib/matplotlib/axes/_axes.py @@ -4303,13 +4303,16 @@ class Axes(_AxesBase): try: # Is 'c' acceptable as PathCollection facecolors? colors =...
matplotlib__matplotlib-17338
[ { "changes": { "added_entities": [ "lib/matplotlib/axis.py:Tick.set_url" ], "added_modules": null, "edited_entities": null, "edited_modules": [ "lib/matplotlib/axis.py:Tick" ] }, "file": "lib/matplotlib/axis.py" }, { "changes": { "added_e...
matplotlib/matplotlib
9ccdb1ddcd6250fac950ddcab97c41f59f68dd72
set_url() without effect in the plot for instances of Tick ### Bug report **Bug summary** Using SVG back-end, setting the url attribute in objects of class Tick does nothing regarding the final plot, whereas it does for other objects. **Code for reproduction** It is an extension of the [hyperlinks example](...
diff --git a/lib/matplotlib/axis.py b/lib/matplotlib/axis.py index 7279749377..803643480e 100644 --- a/lib/matplotlib/axis.py +++ b/lib/matplotlib/axis.py @@ -316,6 +316,19 @@ class Tick(martist.Artist): self.label2.set_text(s) self.stale = True + def set_url(self, url): + """ + Set...
matplotlib__matplotlib-17358
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "lib/matplotlib/tri/triinterpolate.py:CubicTriInterpolator.__init__" ], "edited_modules": [ "lib/matplotlib/tri/triinterpolate.py:CubicTriInterpolator" ] }, "file": "lib...
matplotlib/matplotlib
9c89f7aa9c8b4eb7f6d33667c73c8392c9c5d96e
Compressed Triangulation Masking in CubicTriInterpolator ### Bug report **Bug summary** If `tri_analyzer`'s `_get_compressed_triangulation` method masks out triangles, a `ValueError` due to `shape mismatch` occurs because of: ```self._z[node_renum[~node_mask]] = self._z``` since the LHS and the RHS are *not...
diff --git a/lib/matplotlib/tri/triinterpolate.py b/lib/matplotlib/tri/triinterpolate.py index b94b84a18a..fee020135a 100644 --- a/lib/matplotlib/tri/triinterpolate.py +++ b/lib/matplotlib/tri/triinterpolate.py @@ -400,9 +400,8 @@ class CubicTriInterpolator(TriInterpolator): self._triangles = compressed_triang...
matplotlib__matplotlib-17391
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "lib/matplotlib/__init__.py:get_data_path", "lib/matplotlib/__init__.py:_get_data_path", "lib/matplotlib/__init__.py:RcParams.__getitem__", "lib/matplotlib/__init__.py:_rc_params_...
matplotlib/matplotlib
4a8aa8ce227e4b823305e2adb616facd1435764b
plot save and plot show ``` /usr/local/lib/python3.8/dist-packages/matplotlib/backends/backend_agg.py:214: RuntimeWarning: Glyph 13 missing from current font. font.set_text(s, 0.0, flags=flags) /usr/local/lib/python3.8/dist-packages/matplotlib/backends/backend_agg.py:183: RuntimeWarning: Glyph 13 missing from curr...
diff --git a/.flake8 b/.flake8 index be20a44301..23692c208d 100644 --- a/.flake8 +++ b/.flake8 @@ -63,8 +63,10 @@ per-file-ignores = lib/matplotlib/mathtext.py: E221, E251 lib/matplotlib/pylab.py: F401, F403 lib/matplotlib/pyplot.py: F401, F811 + lib/matplotlib/rcsetup.py: E501 lib/matplotlib/sty...
matplotlib__matplotlib-17422
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "lib/matplotlib/projections/polar.py:PolarAxes.draw" ], "edited_modules": [ "lib/matplotlib/projections/polar.py:PolarAxes" ] }, "file": "lib/matplotlib/projections/pola...
matplotlib/matplotlib
8673167d4c44dc2ede02fedd718dadf7f88e102d
Issue rendering polar plot (agg backend?) with rorigin set <!--To help us understand and resolve your issue, please fill out the form to the best of your ability.--> <!--You can feel free to delete the sections that do not apply.--> ### Bug report When saving a png of a polar plot with the r-origin set "by hand,...
diff --git a/lib/matplotlib/projections/polar.py b/lib/matplotlib/projections/polar.py index 902946c6b3..0649a03c8f 100644 --- a/lib/matplotlib/projections/polar.py +++ b/lib/matplotlib/projections/polar.py @@ -949,6 +949,7 @@ class PolarAxes(Axes): @cbook._delete_parameter("3.3", "args") @cbook._delete_param...
matplotlib__matplotlib-17492
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "lib/matplotlib/axes/_axes.py:Axes.scatter" ], "edited_modules": [ "lib/matplotlib/axes/_axes.py:Axes" ] }, "file": "lib/matplotlib/axes/_axes.py" } ]
matplotlib/matplotlib
49593b73854e10ace8f3c05343220328def6a328
How to change the thickness of the marker "x" when using scatter? I'm trying to change the thickness of the marker "x" when using scatter, but I found the "linewidths" parameter doesn't work for Matplotlib version 3.1.0. But when I switch to Matplotlib version 1.3.1, "linewidths" parameter works well. Why? Is there s...
diff --git a/lib/matplotlib/axes/_axes.py b/lib/matplotlib/axes/_axes.py index cc36b68717..556883ad00 100644 --- a/lib/matplotlib/axes/_axes.py +++ b/lib/matplotlib/axes/_axes.py @@ -4492,7 +4492,12 @@ default: :rc:`scatter.edgecolors` marker_obj.get_transform()) if not marker_obj.is_filled(): ...
matplotlib__matplotlib-17499
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "lib/matplotlib/axes/_axes.py:Axes._parse_scatter_color_args" ], "edited_modules": [ "lib/matplotlib/axes/_axes.py:Axes" ] }, "file": "lib/matplotlib/axes/_axes.py" } ...
matplotlib/matplotlib
fb9e72309aeefb51d1a56ecbdb1e7399d105ff06
Scatter produce multiple colors for a single RGB/RGBA input ### Bug report **Bug summary** Scatter [docs](https://matplotlib.org/3.2.1/api/_as_gen/matplotlib.axes.Axes.scatter.html?highlight=scatter#matplotlib.axes.Axes.scatter) say that in order to provide a single RGB/RGBA color for all scatter elements, it is ...
diff --git a/lib/matplotlib/axes/_axes.py b/lib/matplotlib/axes/_axes.py index 1eb12b4ca9..e41cfba674 100644 --- a/lib/matplotlib/axes/_axes.py +++ b/lib/matplotlib/axes/_axes.py @@ -4281,19 +4281,26 @@ class Axes(_AxesBase): except ValueError: pass # Failed to convert to float array; mus...
matplotlib__matplotlib-17543
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "lib/matplotlib/axes/_axes.py:Axes.scatter" ], "edited_modules": [ "lib/matplotlib/axes/_axes.py:Axes" ] }, "file": "lib/matplotlib/axes/_axes.py" }, { "changes"...
matplotlib/matplotlib
5e046f72ae82788788c7e9b9354b87b131891cd8
The markers are not hollow when I use ax.scatter() and set markers.MarkerStyle()'s fillstyle to 'none'. My usage is wrong? <!--To help us understand and resolve your issue, please fill out the form to the best of your ability.--> <!--You can feel free to delete the sections that do not apply.--> <!--A short 1-2 sen...
diff --git a/lib/matplotlib/axes/_axes.py b/lib/matplotlib/axes/_axes.py index f1a16cbd65..81f8aa4ee4 100644 --- a/lib/matplotlib/axes/_axes.py +++ b/lib/matplotlib/axes/_axes.py @@ -4393,8 +4393,9 @@ default: :rc:`scatter.edgecolors` - 'none': No patch boundary will be drawn. - A color or seq...
matplotlib__matplotlib-17560
[ { "changes": { "added_entities": [ "examples/lines_bars_and_markers/stackplot_demo.py:layers" ], "added_modules": [ "examples/lines_bars_and_markers/stackplot_demo.py:layers" ], "edited_entities": [ "examples/lines_bars_and_markers/stackplot_demo.py:gaussian...
matplotlib/matplotlib
02194b6379e499d560cffa77d1f09f3f7a8e68ee
Matplotlib 3.2.1 savefig empty image when fig size matches data size exactly ### Bug report **Bug summary** Saving a figure to an image file with the same pixel dimensions as data loaded with imshow does not work in 3.2.1, producing an empty image. If the dimensions are changed by even one pixel, normal behavior ...
diff --git a/examples/lines_bars_and_markers/stackplot_demo.py b/examples/lines_bars_and_markers/stackplot_demo.py index 6c9acfcacc..8df6d4f4cc 100644 --- a/examples/lines_bars_and_markers/stackplot_demo.py +++ b/examples/lines_bars_and_markers/stackplot_demo.py @@ -1,71 +1,63 @@ """ -=========================== -Stac...
matplotlib__matplotlib-17578
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "lib/matplotlib/dviread.py:DviFont._height_depth_of" ], "edited_modules": [ "lib/matplotlib/dviread.py:DviFont" ] }, "file": "lib/matplotlib/dviread.py" } ]
matplotlib/matplotlib
af7beaa35cec464547c212699b2843117c411d22
Vertical alignment of tick labels containing minus in font size other than 10 with usetex=True ### Bug report **Bug summary** When TeX is used to typset text, minus signs cause a vertical offset in tick labels for certain font sizes. This is related to #6323, which was fixed but only for given font sizes. The ...
diff --git a/lib/matplotlib/dviread.py b/lib/matplotlib/dviread.py index 0d66cee9d2..2977a6c731 100644 --- a/lib/matplotlib/dviread.py +++ b/lib/matplotlib/dviread.py @@ -595,11 +595,12 @@ class DviFont: result.append(0) else: result.append(_mul2012(value, self._scale)) - ...
matplotlib__matplotlib-17602
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "lib/matplotlib/backend_bases.py:FigureCanvasBase.print_figure" ], "edited_modules": [ "lib/matplotlib/backend_bases.py:FigureCanvasBase" ] }, "file": "lib/matplotlib/ba...
matplotlib/matplotlib
43a4c2b90f8602ad8d13e89bcb49b11a8a05c36d
Saving issue with pdf backend <!--To help us understand and resolve your issue, please fill out the form to the best of your ability.--> <!--You can feel free to delete the sections that do not apply.--> ### Bug report **Bug summary** <!--A short 1-2 sentences that succinctly describes the bug--> The anima...
diff --git a/lib/matplotlib/backend_bases.py b/lib/matplotlib/backend_bases.py index 1d72b1fcef..bc540dee94 100644 --- a/lib/matplotlib/backend_bases.py +++ b/lib/matplotlib/backend_bases.py @@ -2073,8 +2073,9 @@ class FigureCanvasBase: # Some code (e.g. Figure.show) differentiates between having *no* ...
matplotlib__matplotlib-17649
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "lib/matplotlib/cbook/__init__.py:_setattr_cm" ], "edited_modules": [ "lib/matplotlib/cbook/__init__.py:_setattr_cm" ] }, "file": "lib/matplotlib/cbook/__init__.py" } ...
matplotlib/matplotlib
4249e187c114b222440db81505eca3cebb76bcf2
more conservative setattr_cm broke mplcairo Trying to run tight_layout with mplcairo broke since https://github.com/matplotlib/matplotlib/pull/17620 with ``` ValueError: trying to set draw_gouraud_triangles which is not a method, property, or instance level attribute ``` because the check `isinstance(cls_orig, type...
diff --git a/lib/matplotlib/cbook/__init__.py b/lib/matplotlib/cbook/__init__.py index 05631ef4ca..873d46c999 100644 --- a/lib/matplotlib/cbook/__init__.py +++ b/lib/matplotlib/cbook/__init__.py @@ -2035,20 +2035,28 @@ def _setattr_cm(obj, **kwargs): origs = {} for attr in kwargs: orig = getattr(obj,...
matplotlib__matplotlib-17781
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "lib/matplotlib/axes/_axes.py:Axes._fill_between_x_or_y" ], "edited_modules": [ "lib/matplotlib/axes/_axes.py:Axes" ] }, "file": "lib/matplotlib/axes/_axes.py" }, { ...
matplotlib/matplotlib
ff54be0f57ad60b1fe8dec8b3c0099233609fd38
Surprising datetime autoscaling after passing empty data <!--To help us understand and resolve your issue, please fill out the form to the best of your ability.--> <!--You can feel free to delete the sections that do not apply.--> ### Bug report **Bug summary** The automatic limits for datetime axes depend in...
diff --git a/lib/matplotlib/axes/_axes.py b/lib/matplotlib/axes/_axes.py index eaf94407e1..251cc32f36 100644 --- a/lib/matplotlib/axes/_axes.py +++ b/lib/matplotlib/axes/_axes.py @@ -5291,9 +5291,7 @@ default: :rc:`scatter.edgecolors` np.column_stack([ind[where], dep2[where]])]) if...
matplotlib__matplotlib-17784
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "lib/matplotlib/axis.py:Axis.set_ticklabels" ], "edited_modules": [ "lib/matplotlib/axis.py:Axis" ] }, "file": "lib/matplotlib/axis.py" }, { "changes": { "...
matplotlib/matplotlib
56d4f69923d5a4bb1158c7d61fbc7e24bd10d9b9
ax.set_xticklabels([]) for categorical plots is broken in 3.3.0rc1 ### Bug report **Bug summary** #17266 requires tick labels set by `FixedFormatter` to be equal to the ticks set by `FixedLocator`. `FixedLocator` is used in many cases where categorical data is plotted, e.g. `bar` and `box plot`. A way of removing...
diff --git a/.mailmap b/.mailmap index ad8b7a0c83..90de157c95 100644 --- a/.mailmap +++ b/.mailmap @@ -161,7 +161,6 @@ Matthew Emmett <memmett@gmail.com> Matthew Emmett <memmett@gmail.com> <memmett@unc.edu> Matthias Bussonnier <bussonniermatthias@gmail.com> -Matthias Bussonnier <bussonniermatthias@gmail.com> <mbuss...
matplotlib__matplotlib-17821
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "lib/matplotlib/cbook/__init__.py:_reshape_2D" ], "edited_modules": [ "lib/matplotlib/cbook/__init__.py:_reshape_2D" ] }, "file": "lib/matplotlib/cbook/__init__.py" } ...
matplotlib/matplotlib
621123dd04d02544d574be52a806135435e72f6e
Regression: _reshape_2D no longer preserves the shape of lists of lists of one scalar each In Matplotlib 3.2.1, the following code worked: ``` from matplotlib.pyplot import boxplot boxplot([[1],[2],[3]], positions=[1,2,3]) ``` However, in Matplotlib 3.3.0 the same code throws the following error: ``` Value...
diff --git a/lib/matplotlib/cbook/__init__.py b/lib/matplotlib/cbook/__init__.py index 53b21f45ac..dd8b6aed9b 100644 --- a/lib/matplotlib/cbook/__init__.py +++ b/lib/matplotlib/cbook/__init__.py @@ -1372,12 +1372,12 @@ def _reshape_2D(X, name): result = [] is_1d = True for xi in X: + if isinstance...
matplotlib__matplotlib-17850
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "lib/matplotlib/axes/_axes.py:Axes.scatter" ], "edited_modules": [ "lib/matplotlib/axes/_axes.py:Axes" ] }, "file": "lib/matplotlib/axes/_axes.py" }, { "changes"...
matplotlib/matplotlib
3515d2597dbc4dc4519cf6910fa00070229a563f
Problems caused by changes to logic of scatter coloring in matplotlib 3.3.0.rc1 ### Bug report **Bug summary** Not a bug as much as a change in behavior that causes downstream issues. https://github.com/matplotlib/matplotlib/pull/17543 changes the values set for the `facecolors` and `edgecolors` of "unfilled" ...
diff --git a/.appveyor.yml b/.appveyor.yml index bf8519a54e..2aad7be9d8 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -18,7 +18,7 @@ environment: PYTHONIOENCODING: UTF-8 PYTEST_ARGS: -raR --numprocesses=auto --timeout=300 --durations=25 --cov-report= --cov=lib --log-level=DEBUG - PINN...
matplotlib__matplotlib-17869
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "examples/color/color_demo.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edite...
matplotlib/matplotlib
ec0132f66170dabc6352ba79d839b1dd9eb02157
datetime plotting broken on master <!--To help us understand and resolve your issue, please fill out the form to the best of your ability.--> <!--You can feel free to delete the sections that do not apply.--> ### Bug report On master branch, plotting datetimes appears to be broken. This error bisects to a793bde0...
diff --git a/examples/color/color_demo.py b/examples/color/color_demo.py index 0ad1c11edf..40a0e926b8 100644 --- a/examples/color/color_demo.py +++ b/examples/color/color_demo.py @@ -6,27 +6,23 @@ Color Demo Matplotlib recognizes the following formats to specify a color: 1) an RGB or RGBA tuple of float values in `...
matplotlib__matplotlib-17892
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "lib/matplotlib/cbook/__init__.py:_check_in_list" ], "edited_modules": [ "lib/matplotlib/cbook/__init__.py:_check_in_list" ] }, "file": "lib/matplotlib/cbook/__init__.py...
matplotlib/matplotlib
ec0132f66170dabc6352ba79d839b1dd9eb02157
Earlier validation of color inputs <!--To help us understand and resolve your issue, please fill out the form to the best of your ability.--> <!--You can feel free to delete the sections that do not apply.--> ### Bug report **Bug summary** Currently Line2D only validates `color` at draw time, which can lead t...
diff --git a/lib/matplotlib/cbook/__init__.py b/lib/matplotlib/cbook/__init__.py index dd8b6aed9b..034605e7dc 100644 --- a/lib/matplotlib/cbook/__init__.py +++ b/lib/matplotlib/cbook/__init__.py @@ -2242,21 +2242,38 @@ def _check_isinstance(_types, **kwargs): type_name(type(v)))) -def _check_in...
matplotlib__matplotlib-17909
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "lib/matplotlib/rcsetup.py" } ]
matplotlib/matplotlib
c54a5a9b45eff7148e73e9134f206126842307e1
rcParams restrictions on frame_formats are out of sync with supported values (HTMLWriter) <!--To help us understand and resolve your issue, please fill out the form to the best of your ability.--> <!--You can feel free to delete the sections that do not apply.--> ### Bug report jshtml animation uses `HTMLWriter`...
diff --git a/lib/matplotlib/rcsetup.py b/lib/matplotlib/rcsetup.py index 7abde99877..3c8bcf7d9c 100644 --- a/lib/matplotlib/rcsetup.py +++ b/lib/matplotlib/rcsetup.py @@ -747,7 +747,8 @@ def validate_movie_writer(s): validate_movie_frame_fmt = ValidateInStrings( - 'animation.frame_format', ['png', 'jpeg', 'tiff...
matplotlib__matplotlib-17969
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": [ "lib/matplotlib/axes/_axes.py:Axes" ] }, "file": "lib/matplotlib/axes/_axes.py" }, { "changes": { "added_entities": null, "added_modules": ...
matplotlib/matplotlib
73f8cea0d2f1ee12f306db1b156eaeaec70fdbca
Setting `Date` metadata to `None` does not remove the date metadata from the SVG file ### Bug report See title. The new metadata support for SVG backend does not seem to honor a `None` Date metadata. **Code for reproduction** ```python plot([1, 2], [2, 3]) savefig("a.svg", metadata={'Date': None}) ``` **...
diff --git a/lib/matplotlib/axes/_axes.py b/lib/matplotlib/axes/_axes.py index a094cb81a4..f2eddf9749 100644 --- a/lib/matplotlib/axes/_axes.py +++ b/lib/matplotlib/axes/_axes.py @@ -5307,10 +5307,8 @@ default: :rc:`scatter.edgecolors` "x", x, y1, y2, where=where, interpolate=interpolate, step...
matplotlib__matplotlib-18030
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "lib/matplotlib/collections.py:PolyCollection.set_verts" ], "edited_modules": [ "lib/matplotlib/collections.py:PolyCollection" ] }, "file": "lib/matplotlib/collections.p...
matplotlib/matplotlib
03aebfbb8ab3adc8f9a393b1ee51687aca77148d
Optimisation in set_verts causes error if `verts` have irregular sizes ### Bug report [This optimisation](https://github.com/matplotlib/matplotlib/pull/16689/commits/95977d6443a2430307f2379ea7450f15d21bcd57#diff-506c6bd01694bddbd8999f2c6e920705R1104) fails if `verts` is an ndarray containing lists of varying sizes (...
diff --git a/lib/matplotlib/collections.py b/lib/matplotlib/collections.py index 513886f90c..f4c9901578 100644 --- a/lib/matplotlib/collections.py +++ b/lib/matplotlib/collections.py @@ -1109,7 +1109,7 @@ class PolyCollection(_CollectionWithSizes): verts : list of array-like The sequence of polygo...
matplotlib__matplotlib-18042
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "lib/matplotlib/axes/_axes.py:Axes.scatter" ], "edited_modules": [ "lib/matplotlib/axes/_axes.py:Axes" ] }, "file": "lib/matplotlib/axes/_axes.py" } ]
matplotlib/matplotlib
0a83b9c00a8b7828b4d900c717d314e45bf3c4f1
pyplot.scatter raises obscure error when mistakenly passed a third string param This came up when I tried to pass a third param to `pyplot.scatter()`, specifically a string to represent the marker shape, by analogy to the third param in `pyplot.plot()`. It turned out that this is possible, but with the `marker` named p...
diff --git a/lib/matplotlib/axes/_axes.py b/lib/matplotlib/axes/_axes.py index f5cae21c0e..65be1924aa 100644 --- a/lib/matplotlib/axes/_axes.py +++ b/lib/matplotlib/axes/_axes.py @@ -4447,8 +4447,12 @@ default: :rc:`scatter.edgecolors` s = (20 if rcParams['_internal.classic_mode'] else rc...
matplotlib__matplotlib-18080
[ { "changes": { "added_entities": [ "lib/matplotlib/cbook/__init__.py:format_approx" ], "added_modules": [ "lib/matplotlib/cbook/__init__.py:format_approx" ], "edited_entities": null, "edited_modules": null }, "file": "lib/matplotlib/cbook/__init__.py" ...
matplotlib/matplotlib
3e439a4c9960e97550a3f75365f51110cf154dc2
Error with greek letters in pdf export when using usetex=True and mathptmx When I export a pdf with savefig I have errors in the greek letters, but only in the pdf the png export is fine. I use the option "usetex=True" and the package "mathptmx". ```python import matplotlib.pyplot as plt from matplotlib import ...
diff --git a/lib/matplotlib/cbook/__init__.py b/lib/matplotlib/cbook/__init__.py index f6813b9573..eb89212016 100644 --- a/lib/matplotlib/cbook/__init__.py +++ b/lib/matplotlib/cbook/__init__.py @@ -2383,3 +2383,11 @@ def _setup_new_guiapp(): except OSError: _c_internal_utils.Win32_SetCurrentProcessExplic...
matplotlib__matplotlib-18089
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "lib/matplotlib/cbook/__init__.py:format_approx" ], "edited_modules": [ "lib/matplotlib/cbook/__init__.py:format_approx" ] }, "file": "lib/matplotlib/cbook/__init__.py" ...
matplotlib/matplotlib
b5eca56cb6ef3edac1739df9fce235af1e5e3ced
3.3.0 regression in png backend with colorbar() ### Bug report **Bug summary** With multiple subplots with one of them being a color plot with `colorbar()`, png backends emits significantly different image from everything else (qt5, pdf, svg). This was not the case in 3.2.2. **Code for reproduction** ```pyt...
diff --git a/lib/matplotlib/cbook/__init__.py b/lib/matplotlib/cbook/__init__.py index eb89212016..f6813b9573 100644 --- a/lib/matplotlib/cbook/__init__.py +++ b/lib/matplotlib/cbook/__init__.py @@ -2383,11 +2383,3 @@ def _setup_new_guiapp(): except OSError: _c_internal_utils.Win32_SetCurrentProcessExplic...
matplotlib__matplotlib-18173
[ { "changes": { "added_entities": [ "lib/matplotlib/backend_bases.py:_Mode._navigate_mode" ], "added_modules": null, "edited_entities": [ "lib/matplotlib/backend_bases.py:NavigationToolbar2.pan", "lib/matplotlib/backend_bases.py:NavigationToolbar2.zoom" ], ...
matplotlib/matplotlib
1df9efc67611b35a6a64bf93a533bbf9ec78fabf
Regression in get_navigate_mode() return value <!--To help us understand and resolve your issue, please fill out the form to the best of your ability.--> <!--You can feel free to delete the sections that do not apply.--> ### Bug report #17135 simplified pan/zoom toggling. The values of the `_Mode` enum are re...
diff --git a/lib/matplotlib/backend_bases.py b/lib/matplotlib/backend_bases.py index 2dd41cdf56..b295fd5797 100644 --- a/lib/matplotlib/backend_bases.py +++ b/lib/matplotlib/backend_bases.py @@ -2784,6 +2784,10 @@ class _Mode(str, Enum): def __str__(self): return self.value + @property + def _navi...
matplotlib__matplotlib-18184
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "lib/matplotlib/_pylab_helpers.py:Gcf.destroy_fig" ], "edited_modules": [ "lib/matplotlib/_pylab_helpers.py:Gcf" ] }, "file": "lib/matplotlib/_pylab_helpers.py" } ]
matplotlib/matplotlib
7b562264b38b64f34979d06ef97c8cdcc222e8e6
Figure can not be closed if it has associated Agg canvas ### Bug report ** plt.fignum_exists() returns True after figure is closed** Code snippet below closes figure after creating `FigureCanvasAgg`, and it works with matplotlib-3.2.1 but fails with matplotlib-3.3.0 **Code for reproduction** ```python impo...
diff --git a/lib/matplotlib/_pylab_helpers.py b/lib/matplotlib/_pylab_helpers.py index 907e69957c..26ba7a1712 100644 --- a/lib/matplotlib/_pylab_helpers.py +++ b/lib/matplotlib/_pylab_helpers.py @@ -71,9 +71,10 @@ class Gcf: @classmethod def destroy_fig(cls, fig): """Destroy figure *fig*.""" - ...
matplotlib__matplotlib-18243
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "lib/matplotlib/cbook/__init__.py:_reshape_2D" ], "edited_modules": [ "lib/matplotlib/cbook/__init__.py:_reshape_2D" ] }, "file": "lib/matplotlib/cbook/__init__.py" } ...
matplotlib/matplotlib
c9bf76ccec1581f42074a4fcb775144cbd058b02
_reshape_2D function behavior changed, breaks hist for some cases in 3.3.0 <!--To help us understand and resolve your issue, please fill out the form to the best of your ability.--> <!--You can feel free to delete the sections that do not apply.--> ### Bug report **Bug summary** <!--A short 1-2 sentences that...
diff --git a/lib/matplotlib/cbook/__init__.py b/lib/matplotlib/cbook/__init__.py index 351a3e2fd5..f7dfa4c02b 100644 --- a/lib/matplotlib/cbook/__init__.py +++ b/lib/matplotlib/cbook/__init__.py @@ -1377,7 +1377,10 @@ def _reshape_2D(X, name): result = [] is_1d = True for xi in X: - if isinstance(...
matplotlib__matplotlib-18266
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "lib/matplotlib/path.py:Path.get_extents" ], "edited_modules": [ "lib/matplotlib/path.py:Path" ] }, "file": "lib/matplotlib/path.py" } ]
matplotlib/matplotlib
792756c60975520e9993379a14711c08459ad11c
scatter(..., marker='') raises on drawing with mpl3.3.1 <!--To help us understand and resolve your issue, please fill out the form to the best of your ability.--> <!--You can feel free to delete the sections that do not apply.--> ### Bug report **Bug summary** `plt.scatter()` raises upon drawing when called w...
diff --git a/lib/matplotlib/path.py b/lib/matplotlib/path.py index 5088596a89..e1daf35eed 100644 --- a/lib/matplotlib/path.py +++ b/lib/matplotlib/path.py @@ -600,7 +600,10 @@ class Path: # as can the ends of the curve xys.append(curve([0, *dzeros, 1])) xys = np.concatenat...
matplotlib__matplotlib-18308
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "lib/matplotlib/axis.py:Axis.set_units" ], "edited_modules": [ "lib/matplotlib/axis.py:Axis" ] }, "file": "lib/matplotlib/axis.py" } ]
matplotlib/matplotlib
ce6ac2d174e396abab9e17577f3721f33bd7d41f
No link to shared axes for Axis.set_units <!--To help us understand and resolve your issue, please fill out the form to the best of your ability.--> <!--You can feel free to delete the sections that do not apply.--> ### Bug report **Bug summary** The `Axis.set_units` method does not emit to linked axes in the...
diff --git a/lib/matplotlib/axis.py b/lib/matplotlib/axis.py index 6d28fae6c2..0ce2f52acf 100644 --- a/lib/matplotlib/axis.py +++ b/lib/matplotlib/axis.py @@ -1530,14 +1530,31 @@ class Axis(martist.Artist): Parameters ---------- u : units tag + + Notes + ----- + The units...
matplotlib__matplotlib-18393
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "lib/matplotlib/axes/_base.py:_AxesBase.__init__" ], "edited_modules": [ "lib/matplotlib/axes/_base.py:_AxesBase" ] }, "file": "lib/matplotlib/axes/_base.py" } ]
matplotlib/matplotlib
f7ae15780857c9ddedd09dd614b68069bcb668cb
twinx not respecting log-scale <!--To help us understand and resolve your issue, please fill out the form to the best of your ability.--> <!--You can feel free to delete the sections that do not apply.--> ### Bug report **Bug summary** <!--A short 1-2 sentences that succinctly describes the bug--> When a new...
diff --git a/lib/matplotlib/axes/_base.py b/lib/matplotlib/axes/_base.py index 5553da618d..02d14f31fc 100644 --- a/lib/matplotlib/axes/_base.py +++ b/lib/matplotlib/axes/_base.py @@ -494,8 +494,8 @@ class _AxesBase(martist.Artist): self._anchor = 'C' self._stale_viewlim_x = False self._stale_...
matplotlib__matplotlib-18408
[ { "changes": { "added_entities": [ "lib/matplotlib/backend_bases.py:_no_output_draw" ], "added_modules": [ "lib/matplotlib/backend_bases.py:_no_output_draw" ], "edited_entities": [ "lib/matplotlib/backend_bases.py:_check_savefig_extra_args" ], "e...
matplotlib/matplotlib
6d629a1f9a6a09a90fd6b7e20f0fa8ed97945055
pgf backend no longer supports fig.draw <!--To help us understand and resolve your issue, please fill out the form to the best of your ability.--> <!--You can feel free to delete the sections that do not apply.--> ### Bug report Because of the cleanups in #15977, the pgf backend no longer supports `fig.draw(fig.ca...
diff --git a/lib/matplotlib/backend_bases.py b/lib/matplotlib/backend_bases.py index a2656c794f..33831c4ba8 100644 --- a/lib/matplotlib/backend_bases.py +++ b/lib/matplotlib/backend_bases.py @@ -1584,6 +1584,12 @@ def _get_renderer(figure, print_method=None): figure.canvas = orig_canvas +def _no_output...
matplotlib__matplotlib-18430
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "lib/matplotlib/axis.py:YAxis.set_label_position" ], "edited_modules": [ "lib/matplotlib/axis.py:YAxis" ] }, "file": "lib/matplotlib/axis.py" } ]
matplotlib/matplotlib
5b835eeeba328cefa99015e8baf939740f604bf5
yaxis.set_label_position("right") resets "horizontalalignment" <!--To help us understand and resolve your issue, please fill out the form to the best of your ability.--> <!--You can feel free to delete the sections that do not apply.--> ### Bug report **Bug summary** <!--A short 1-2 sentences that succinctly ...
diff --git a/lib/matplotlib/axis.py b/lib/matplotlib/axis.py index 264d8b5b99..cfc30d5e99 100644 --- a/lib/matplotlib/axis.py +++ b/lib/matplotlib/axis.py @@ -2339,7 +2339,6 @@ class YAxis(Axis): position : {'left', 'right'} """ self.label.set_rotation_mode('anchor') - self.label.set_h...
matplotlib__matplotlib-18445
[ { "changes": { "added_entities": [ "lib/matplotlib/animation.py:Animation.__del__" ], "added_modules": null, "edited_entities": [ "lib/matplotlib/animation.py:Animation.__init__", "lib/matplotlib/animation.py:Animation._init_draw", "lib/matplotlib/animatio...
matplotlib/matplotlib
296de82f72a3c67b214188c9a00b8923dd92cb11
Warn when a non-started animation is gc'ed. <!--To help us understand and resolve your issue, please fill out the form to the best of your ability.--> <!--You can feel free to delete the sections that do not apply.--> ### Bug report **Bug summary** Animations need to be held in a reference so that they are no...
diff --git a/lib/matplotlib/animation.py b/lib/matplotlib/animation.py index 5ba71a168d..caf42716a4 100644 --- a/lib/matplotlib/animation.py +++ b/lib/matplotlib/animation.py @@ -28,6 +28,7 @@ import subprocess import sys from tempfile import TemporaryDirectory import uuid +import warnings import numpy as np @@...
matplotlib__matplotlib-18446
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "lib/matplotlib/widgets.py:ToolHandles.__init__", "lib/matplotlib/widgets.py:RectangleSelector.__init__", "lib/matplotlib/widgets.py:PolygonSelector.__init__" ], "edited_modul...
matplotlib/matplotlib
bd765e00ae407399964680f86d71ee38700730ca
marker_props is never used in the constructor of RectangleSelector ## Bug report ### Bug summary `marker_props` is never used in the constructor of [`RectangleSelector`](https://matplotlib.org/_modules/matplotlib/widgets.html#RectangleSelector), so the marker properties cannot be changed. ### Code for reproducti...
diff --git a/lib/matplotlib/widgets.py b/lib/matplotlib/widgets.py index 7537bebd25..ca55f842d6 100644 --- a/lib/matplotlib/widgets.py +++ b/lib/matplotlib/widgets.py @@ -1855,9 +1855,11 @@ class ToolHandles: def __init__(self, ax, x, y, marker='o', marker_props=None, useblit=True): self.ax = ax - ...
matplotlib__matplotlib-18540
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "lib/matplotlib/axes/_base.py:_AxesBase.redraw_in_frame" ], "edited_modules": [ "lib/matplotlib/axes/_base.py:_AxesBase" ] }, "file": "lib/matplotlib/axes/_base.py" } ...
matplotlib/matplotlib
1e19aa8e6ffaa72a0f39706d394ada641c27710d
Error in Axes.redraw_in_frame in use of ExitStack: push() takes 2 positional arguments but 3 were given ### Bug report Code that was working in 3.2.1 uses `redraw_in_frame`, now broken in 3.3.0 and 3.3.2, even though this API has not changed. **Bug summary** Use of `Axes.redraw_in_frame` leads to an error call...
diff --git a/lib/matplotlib/axes/_base.py b/lib/matplotlib/axes/_base.py index 40a4af4630..4832a2900f 100644 --- a/lib/matplotlib/axes/_base.py +++ b/lib/matplotlib/axes/_base.py @@ -2828,7 +2828,7 @@ class _AxesBase(martist.Artist): with ExitStack() as stack: for artist in [*self._get_axis_list()...
matplotlib__matplotlib-18633
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "lib/matplotlib/patches.py:Patch.set_linestyle", "lib/matplotlib/patches.py:Patch._bind_draw_path_function" ], "edited_modules": [ "lib/matplotlib/patches.py:Patch" ] ...
matplotlib/matplotlib
ae47ad26eda9c69b182837feaece416c6017d29f
The linestyle 'None', ' ' and '' not supported by PathPatch. The linestyle 'None', ' ' and '' not supported by PathPatch. Line2D support these values, but PathPatch not. the documentation say, that these are acceptable values: http://matplotlib.org/api/patches_api.html#matplotlib.patches.PathPatch ``` python from m...
diff --git a/lib/matplotlib/patches.py b/lib/matplotlib/patches.py index 63be433c54..8dcaea286d 100644 --- a/lib/matplotlib/patches.py +++ b/lib/matplotlib/patches.py @@ -409,6 +409,10 @@ class Patch(artist.Artist): ``'--'`` or ``'dashed'`` dashed line ``'-.'`` or ``'dashdot'`` dash-dotted li...
matplotlib__matplotlib-18754
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "lib/matplotlib/ticker.py:LogLocator.tick_values" ], "edited_modules": [ "lib/matplotlib/ticker.py:LogLocator" ] }, "file": "lib/matplotlib/ticker.py" } ]
matplotlib/matplotlib
a7ac5bb8232cb8ebb7435cc8c1294789f69467f3
One one tick in a log-scale axis <!--To help us understand and resolve your issue, please fill out the form to the best of your ability.--> <!--You can feel free to delete the sections that do not apply.--> ### Bug report For the data in a small range, there is just on tick in the default log scale axis, which m...
diff --git a/lib/matplotlib/ticker.py b/lib/matplotlib/ticker.py index 07cc521a94..7a5e3ea605 100644 --- a/lib/matplotlib/ticker.py +++ b/lib/matplotlib/ticker.py @@ -2479,6 +2479,13 @@ class LogLocator(Locator): if mpl.rcParams['_internal.classic_mode'] else (numdec + 1) // numtic...
matplotlib__matplotlib-18763
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "lib/matplotlib/figure.py:FigureBase._normalize_grid_string" ], "edited_modules": [ "lib/matplotlib/figure.py:FigureBase" ] }, "file": "lib/matplotlib/figure.py" } ]
matplotlib/matplotlib
cf83ec4f46ae03668a1d89273b28147497ab65f2
Compact string notation for subplot_mosaic Instead of ~~~ plt.subplot_mosaic( """ AB CC """) ~~~ should we also allow a short string version ~~~ plt.subplot_mosaic("AB|CC") ~~~ ? Implementing is probably as simple as: ~~~ if '|' in layout and not '\n' in layout: layout = layout....
diff --git a/lib/matplotlib/figure.py b/lib/matplotlib/figure.py index 44e57389cd..8bbb31aa8c 100644 --- a/lib/matplotlib/figure.py +++ b/lib/matplotlib/figure.py @@ -1776,8 +1776,13 @@ default: 'top' @staticmethod def _normalize_grid_string(layout): - layout = inspect.cleandoc(layout) - retur...
matplotlib__matplotlib-18812
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "lib/matplotlib/ticker.py:LogFormatter.__call__", "lib/matplotlib/ticker.py:LogFormatterMathtext.__call__", "lib/matplotlib/ticker.py:LogFormatterSciNotation._non_decade_format" ], ...
matplotlib/matplotlib
06514d22afbe279723b9c8845af5e045d003688d
Log-scale ticker fails at 1e-323 ### Bug report **Bug summary** It seems that log-scale plotting fails whenever `1e-323` is used as a tick. **Code for reproduction** ```python import matplotlib.pyplot as plt plt.semilogy([1, 2], [1, 2e-323]) plt.show() ``` or ```python import matplotlib.pyplot as...
diff --git a/lib/matplotlib/ticker.py b/lib/matplotlib/ticker.py index 7a5e3ea605..21097e282c 100644 --- a/lib/matplotlib/ticker.py +++ b/lib/matplotlib/ticker.py @@ -1070,7 +1070,7 @@ class LogFormatter(Formatter): fx = math.log(x) / math.log(b) is_x_decade = is_close_to_int(fx) exponent = r...
matplotlib__matplotlib-18870
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "lib/matplotlib/cm.py:ScalarMappable.set_array" ], "edited_modules": [ "lib/matplotlib/cm.py:ScalarMappable" ] }, "file": "lib/matplotlib/cm.py" }, { "changes": ...
matplotlib/matplotlib
c22b2eb4946fb6fe13efa5438a1e88067a1b441c
ScalarMappable should copy its input and allow non-arrays <!-- Welcome! Thanks for thinking of a way to improve Matplotlib. Before creating a new feature request please search the issues for relevant feature requests. --> ### Problem Recently I wanted to draw some colormapped vlines. As LineCollection inh...
diff --git a/lib/matplotlib/cm.py b/lib/matplotlib/cm.py index 5326890ff1..bf1f03eb4a 100644 --- a/lib/matplotlib/cm.py +++ b/lib/matplotlib/cm.py @@ -361,12 +361,21 @@ class ScalarMappable: def set_array(self, A): """ - Set the image array from numpy array *A*. + Set the image array from ...
matplotlib__matplotlib-19088
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "lib/matplotlib/axes/_base.py:_AxesBase._update_patch_limits" ], "edited_modules": [ "lib/matplotlib/axes/_base.py:_AxesBase" ] }, "file": "lib/matplotlib/axes/_base.py"...
matplotlib/matplotlib
2cfef7611da4019967dc0d8c846d3c05769ae440
_update_patch_limits should not use CLOSEPOLY verticies for updating <!--To help us understand and resolve your issue, please fill out the form to the best of your ability.--> <!--You can feel free to delete the sections that do not apply.--> ### Bug report **Bug summary** When patch.get_path() contains a CL...
diff --git a/lib/matplotlib/axes/_base.py b/lib/matplotlib/axes/_base.py index c6309b5ab9..f2b5d1ee71 100644 --- a/lib/matplotlib/axes/_base.py +++ b/lib/matplotlib/axes/_base.py @@ -25,6 +25,7 @@ import matplotlib.spines as mspines import matplotlib.font_manager as font_manager import matplotlib.text as mtext impor...
matplotlib__matplotlib-19277
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "examples/misc/svg_filter_line.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "lib...
matplotlib/matplotlib
325fac99548ebacb74206f8c9d5a688eccd5f972
Double specifications of plot attributes ### Describe the issue As a part of a research project, me and two co-authors have been mining GitHub for Jupyter notebooks and studied a number of frequent function calls in the notebooks. It appears that color is specified both using `fmt` and `color` in 125 different calls t...
diff --git a/examples/misc/svg_filter_line.py b/examples/misc/svg_filter_line.py index d4d42d2e7d..d329e6f243 100644 --- a/examples/misc/svg_filter_line.py +++ b/examples/misc/svg_filter_line.py @@ -20,7 +20,7 @@ ax = fig1.add_axes([0.1, 0.1, 0.8, 0.8]) l1, = ax.plot([0.1, 0.5, 0.9], [0.1, 0.9, 0.5], "bo-", ...
matplotlib__matplotlib-19448
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "lib/mpl_toolkits/mplot3d/art3d.py:Patch3D.set_3d_properties", "lib/mpl_toolkits/mplot3d/art3d.py:Patch3D.get_facecolor", "lib/mpl_toolkits/mplot3d/art3d.py:Patch3D.do_3d_projection", ...
matplotlib/matplotlib
a2b924cc517a9f1b55c5b5e55424f9c92d6da2cb
Patch3D object does not return correct face color with get_facecolor <!--To help us understand and resolve your issue, please fill out the form to the best of your ability.--> <!--You can feel free to delete the sections that do not apply.--> ### Bug report **Bug summary** 3D patch does not return correct fac...
diff --git a/lib/mpl_toolkits/mplot3d/art3d.py b/lib/mpl_toolkits/mplot3d/art3d.py index 9856138b27..714d25fedd 100644 --- a/lib/mpl_toolkits/mplot3d/art3d.py +++ b/lib/mpl_toolkits/mplot3d/art3d.py @@ -344,14 +344,10 @@ class Patch3D(Patch): zs = np.broadcast_to(zs, len(verts)) self._segment3d = [jug...
matplotlib__matplotlib-19618
[ { "changes": { "added_entities": [ "lib/matplotlib/backend_bases.py:FigureCanvasBase.callbacks" ], "added_modules": null, "edited_entities": [ "lib/matplotlib/backend_bases.py:FigureCanvasBase.__init__" ], "edited_modules": [ "lib/matplotlib/backend_ba...
matplotlib/matplotlib
aed5a09cb9a09997927f059f55bfa8174852d30a
segfault due to font objects when multi-threading Although we are very much no thread safe, that this is a "segfault" failure so I think it should be addressed. Users should be able to take their toes off with threads, not their whole leg. --- I discovered this in an application my group develops at BNL which is m...
diff --git a/lib/matplotlib/backend_bases.py b/lib/matplotlib/backend_bases.py index 32e069ed69..3798a936ef 100644 --- a/lib/matplotlib/backend_bases.py +++ b/lib/matplotlib/backend_bases.py @@ -1726,13 +1726,15 @@ class FigureCanvasBase: self._button = None # the button pressed self._key = None # t...
matplotlib__matplotlib-19639
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "lib/matplotlib/figure.py:FigureBase.subplot_mosaic" ], "edited_modules": [ "lib/matplotlib/figure.py:FigureBase" ] }, "file": "lib/matplotlib/figure.py" } ]
matplotlib/matplotlib
33c3e72e8b228e5e1244d7792103b920df094866
subplot mosaic 1 element list **Bug summary** Passing in a one element list splits it up as if it was string input, when it should treat it as 1 axes. **Code for reproduction** ```python fig, axd = plt.subplot_mosaic(['triangle']) ``` **Actual outcome** ![image](https://user-images.githubusercontent.com/13004...
diff --git a/lib/matplotlib/figure.py b/lib/matplotlib/figure.py index c1eb20a3f6..44c4369374 100644 --- a/lib/matplotlib/figure.py +++ b/lib/matplotlib/figure.py @@ -1692,6 +1692,8 @@ default: %(va)s """ r0, *rest = inp + if isinstance(r0, str): + raise ValueError(...
matplotlib__matplotlib-19816
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "lib/matplotlib/collections.py:Collection.update_from" ], "edited_modules": [ "lib/matplotlib/collections.py:Collection" ] }, "file": "lib/matplotlib/collections.py" }...
matplotlib/matplotlib
9e4446a8e480ea2210b5fdd4f7d1db2ed6747dbf
BUG: matplotlib 3.4.0 -- Scatter with colormap and legend gives TypeError: object of type 'NoneType' has no len() <!--To help us understand and resolve your issue, please fill out the form to the best of your ability.--> <!--You can feel free to delete the sections that do not apply.--> ### Bug report **Bug summ...
diff --git a/lib/matplotlib/collections.py b/lib/matplotlib/collections.py index bb270b218e..0e1d225c52 100644 --- a/lib/matplotlib/collections.py +++ b/lib/matplotlib/collections.py @@ -944,8 +944,11 @@ class Collection(artist.Artist, cm.ScalarMappable): artist.Artist.update_from(self, other) self....
matplotlib__matplotlib-19849
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "lib/matplotlib/dates.py:_wrap_in_tex" ], "edited_modules": [ "lib/matplotlib/dates.py:_wrap_in_tex" ] }, "file": "lib/matplotlib/dates.py" } ]
matplotlib/matplotlib
b6a6414522f20a1f1b458ebe296b178856662dda
Month names not set as text when using usetex <!--To help us understand and resolve your issue, please fill out the form to the best of your ability.--> <!--You can feel free to delete the sections that do not apply.--> ### Bug report From the image in the release notes for matplotlib 3.4 here: https://matplotl...
diff --git a/lib/matplotlib/dates.py b/lib/matplotlib/dates.py index a2930a86fc..6e35658f95 100644 --- a/lib/matplotlib/dates.py +++ b/lib/matplotlib/dates.py @@ -172,6 +172,7 @@ import datetime import functools import logging import math +import re from dateutil.rrule import (rrule, MO, TU, WE, TH, FR, SA, SU, Y...
matplotlib__matplotlib-19902
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": [ "lib/matplotlib/axes/_base.py:_AxesBase" ] }, "file": "lib/matplotlib/axes/_base.py" } ]
matplotlib/matplotlib
10672f4505bf2d456dff119c4c4588a79938a4a7
Should ArtistList implement `__add__`? <!-- Welcome! Thanks for thinking of a way to improve Matplotlib. Before creating a new feature request please search the issues for relevant feature requests. --> ### Problem ArtistList (#18216) is great :) but I realized that I had a few places in my old programs wh...
diff --git a/doc/thirdpartypackages/index.rst b/doc/thirdpartypackages/index.rst index 6745fccc28..6667e6c23d 100644 --- a/doc/thirdpartypackages/index.rst +++ b/doc/thirdpartypackages/index.rst @@ -5,19 +5,13 @@ Third party packages ******************** Several external packages that extend or build on Matplotlib ...