content stringlengths 1 103k ⌀ | path stringlengths 8 216 | filename stringlengths 2 179 | language stringclasses 15
values | size_bytes int64 2 189k | quality_score float64 0.5 0.95 | complexity float64 0 1 | documentation_ratio float64 0 1 | repository stringclasses 5
values | stars int64 0 1k | created_date stringdate 2023-07-10 19:21:08 2025-07-09 19:11:45 | license stringclasses 4
values | is_test bool 2
classes | file_hash stringlengths 32 32 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
# This style is used for the plot_types gallery. It is considered private.\n\naxes.grid: False\naxes.axisbelow: True\n\nfigure.figsize: 2, 2\n# make it so the axes labels don't show up. Obviously \n# not good style for any quantitative analysis:\nfigure.subplot.left: 0.01\nfigure.subplot.right: 0.99\nfigure.subplot.bo... | .venv\Lib\site-packages\matplotlib\mpl-data\stylelib\_mpl-gallery-nogrid.mplstyle | _mpl-gallery-nogrid.mplstyle | Other | 489 | 0.8 | 0.105263 | 0.266667 | vue-tools | 809 | 2023-08-07T10:58:42.322854 | BSD-3-Clause | false | 13563171d62c92569424808dc1c81fed |
# This style is used for the plot_types gallery. It is considered part of the private API.\n\naxes.grid: True\naxes.axisbelow: True\n\nfigure.figsize: 2, 2\n# make it so the axes labels don't show up. Obviously \n# not good style for any quantitative analysis:\nfigure.subplot.left: 0.01\nfigure.subplot.right: 0.99\nfi... | .venv\Lib\site-packages\matplotlib\mpl-data\stylelib\_mpl-gallery.mplstyle | _mpl-gallery.mplstyle | Other | 504 | 0.8 | 0.105263 | 0.266667 | react-lib | 224 | 2023-10-12T14:12:08.673910 | GPL-3.0 | false | 23f1d4dc684fd9c47c8d76f78f292979 |
import numpy as np\n\nimport matplotlib as mpl\nfrom matplotlib import _api\nfrom matplotlib.axes import Axes\nimport matplotlib.axis as maxis\nfrom matplotlib.patches import Circle\nfrom matplotlib.path import Path\nimport matplotlib.spines as mspines\nfrom matplotlib.ticker import (\n Formatter, NullLocator, Fixed... | .venv\Lib\site-packages\matplotlib\projections\geo.py | geo.py | Python | 17,605 | 0.95 | 0.164384 | 0.084367 | awesome-app | 513 | 2024-11-06T06:23:48.838889 | BSD-3-Clause | false | cbed23f80710855beacd296d8760e758 |
from matplotlib.axes import Axes\nfrom matplotlib.ticker import Formatter\nfrom matplotlib.transforms import Transform\n\nfrom typing import Any, Literal\n\nclass GeoAxes(Axes):\n class ThetaFormatter(Formatter):\n def __init__(self, round_to: float = ...) -> None: ...\n def __call__(self, x: float, po... | .venv\Lib\site-packages\matplotlib\projections\geo.pyi | geo.pyi | Other | 3,775 | 0.85 | 0.419643 | 0.020833 | node-utils | 217 | 2025-03-31T02:49:25.978343 | BSD-3-Clause | false | be43ae1c7bbb484bbd8c90972498a3ca |
import math\nimport types\n\nimport numpy as np\n\nimport matplotlib as mpl\nfrom matplotlib import _api, cbook\nfrom matplotlib.axes import Axes\nimport matplotlib.axis as maxis\nimport matplotlib.markers as mmarkers\nimport matplotlib.patches as mpatches\nfrom matplotlib.path import Path\nimport matplotlib.ticker as ... | .venv\Lib\site-packages\matplotlib\projections\polar.py | polar.py | Python | 56,939 | 0.75 | 0.154143 | 0.086429 | awesome-app | 845 | 2024-03-30T06:27:32.638361 | BSD-3-Clause | false | 3c87ee3312e79360c750ed9be3b461c5 |
import matplotlib.axis as maxis\nimport matplotlib.ticker as mticker\nimport matplotlib.transforms as mtransforms\nfrom matplotlib.axes import Axes\nfrom matplotlib.lines import Line2D\nfrom matplotlib.text import Text\n\nimport numpy as np\nfrom numpy.typing import ArrayLike\nfrom collections.abc import Sequence\nfrom... | .venv\Lib\site-packages\matplotlib\projections\polar.pyi | polar.pyi | Other | 6,636 | 0.85 | 0.345178 | 0.049724 | react-lib | 735 | 2024-05-21T08:53:46.766665 | BSD-3-Clause | false | f434dc4d59e1b4314be8ac4d3d4147c0 |
"""\nNon-separable transforms that map from data space to screen space.\n\nProjections are defined as `~.axes.Axes` subclasses. They include the\nfollowing elements:\n\n- A transformation from data coordinates into display coordinates.\n\n- An inverse of that transformation. This is used, for example, to convert\n m... | .venv\Lib\site-packages\matplotlib\projections\__init__.py | __init__.py | Python | 4,438 | 0.95 | 0.198413 | 0.01087 | vue-tools | 211 | 2023-10-06T17:44:53.701094 | GPL-3.0 | false | 7bbbcddf7ae9f240df1d4caef12e0bd2 |
from .geo import (\n AitoffAxes as AitoffAxes,\n HammerAxes as HammerAxes,\n LambertAxes as LambertAxes,\n MollweideAxes as MollweideAxes,\n)\nfrom .polar import PolarAxes as PolarAxes\nfrom ..axes import Axes\n\nclass ProjectionRegistry:\n def __init__(self) -> None: ...\n def register(self, *project... | .venv\Lib\site-packages\matplotlib\projections\__init__.pyi | __init__.pyi | Other | 673 | 0.85 | 0.4 | 0 | vue-tools | 988 | 2024-02-25T00:01:28.067806 | GPL-3.0 | false | 552dac1c73e7d8b2e8b018c705d1dc24 |
\n\n | .venv\Lib\site-packages\matplotlib\projections\__pycache__\geo.cpython-313.pyc | geo.cpython-313.pyc | Other | 30,150 | 0.95 | 0.007605 | 0.004167 | react-lib | 699 | 2024-06-29T16:28:51.345656 | BSD-3-Clause | false | 3731d4468e125dd19032cd25d975c9ad |
\n\n | .venv\Lib\site-packages\matplotlib\projections\__pycache__\polar.cpython-313.pyc | polar.cpython-313.pyc | Other | 74,110 | 0.75 | 0.035398 | 0.006039 | python-kit | 688 | 2024-06-01T10:55:56.972081 | BSD-3-Clause | false | a982a3e1f37089072b28dfd472bdef6f |
\n\n | .venv\Lib\site-packages\matplotlib\projections\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 5,542 | 0.95 | 0.148148 | 0 | node-utils | 752 | 2024-03-09T18:29:42.072638 | MIT | false | ed0fbea322367c975608d204fe2ebad3 |
"""\nAdd a ``figure-mpl`` directive that is a responsive version of ``figure``.\n\nThis implementation is very similar to ``.. figure::``, except it also allows a\n``srcset=`` argument to be passed to the image tag, hence allowing responsive\nresolution images.\n\nThere is no particular reason this could not be used st... | .venv\Lib\site-packages\matplotlib\sphinxext\figmpl_directive.py | figmpl_directive.py | Python | 9,308 | 0.95 | 0.167832 | 0.146667 | python-kit | 702 | 2024-10-20T16:58:28.668765 | GPL-3.0 | false | dfed8a7497cbfbf7e59576e5ea8897ec |
r"""\nA role and directive to display mathtext in Sphinx\n==================================================\n\nThe ``mathmpl`` Sphinx extension creates a mathtext image in Matplotlib and\nshows it in html output. Thus, it is a true and faithful representation of what\nyou will see if you pass a given LaTeX string to M... | .venv\Lib\site-packages\matplotlib\sphinxext\mathmpl.py | mathmpl.py | Python | 7,871 | 0.95 | 0.119835 | 0.032086 | awesome-app | 664 | 2024-11-11T07:55:00.257639 | BSD-3-Clause | false | 540d927722ca0745424beb82ce039969 |
"""\nA directive for including a Matplotlib plot in a Sphinx document\n================================================================\n\nThis is a Sphinx extension providing a reStructuredText directive\n``.. plot::`` for including a plot in a Sphinx document.\n\nIn HTML output, ``.. plot::`` will include a .png file... | .venv\Lib\site-packages\matplotlib\sphinxext\plot_directive.py | plot_directive.py | Python | 32,542 | 0.95 | 0.186966 | 0.073491 | node-utils | 195 | 2025-02-02T04:03:42.579347 | GPL-3.0 | false | c8263f2c43439ab650dcec04aa4e80da |
"""\nCustom roles for the Matplotlib documentation.\n\n.. warning::\n\n These roles are considered semi-public. They are only intended to be used in\n the Matplotlib documentation.\n\nHowever, it can happen that downstream packages end up pulling these roles into\ntheir documentation, which will result in documen... | .venv\Lib\site-packages\matplotlib\sphinxext\roles.py | roles.py | Python | 4,882 | 0.95 | 0.108844 | 0.046729 | python-kit | 197 | 2025-03-15T04:32:06.564626 | MIT | false | ec158c791cce49e5bf3ddd061c44787f |
\n\n | .venv\Lib\site-packages\matplotlib\sphinxext\__pycache__\figmpl_directive.cpython-313.pyc | figmpl_directive.cpython-313.pyc | Other | 11,115 | 0.95 | 0.039474 | 0 | python-kit | 221 | 2024-04-05T19:52:10.772954 | MIT | false | 0ff9c23ec38bf39e5280e7feb7842dc3 |
\n\n | .venv\Lib\site-packages\matplotlib\sphinxext\__pycache__\mathmpl.cpython-313.pyc | mathmpl.cpython-313.pyc | Other | 11,134 | 0.95 | 0.018634 | 0 | node-utils | 135 | 2023-07-15T06:25:58.749264 | BSD-3-Clause | false | 17d9e3f7c0ee0e70c462ce5f34588d6b |
\n\n | .venv\Lib\site-packages\matplotlib\sphinxext\__pycache__\plot_directive.cpython-313.pyc | plot_directive.cpython-313.pyc | Other | 37,807 | 0.95 | 0.08413 | 0.004425 | awesome-app | 874 | 2025-03-28T09:53:48.954105 | Apache-2.0 | false | 1844e3f67caab5e5bc627113b3856ff5 |
\n\n | .venv\Lib\site-packages\matplotlib\sphinxext\__pycache__\roles.cpython-313.pyc | roles.cpython-313.pyc | Other | 6,152 | 0.95 | 0.05102 | 0.012821 | awesome-app | 925 | 2024-01-27T11:18:36.181807 | GPL-3.0 | false | b2b8a3ce8f9066224d2c5ceed00d6ae5 |
\n\n | .venv\Lib\site-packages\matplotlib\sphinxext\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 195 | 0.7 | 0 | 0 | vue-tools | 701 | 2025-05-17T15:00:47.158030 | Apache-2.0 | false | 580e74157c28a1d9974c451bd8141315 |
"""\nCore functions and attributes for the matplotlib style library:\n\n``use``\n Select style sheet to override the current matplotlib settings.\n``context``\n Context manager to use a style sheet temporarily.\n``available``\n List available style sheets.\n``library``\n A dictionary of style names and matp... | .venv\Lib\site-packages\matplotlib\style\core.py | core.py | Python | 8,362 | 0.95 | 0.130802 | 0.078534 | python-kit | 535 | 2024-11-15T20:35:43.492999 | MIT | false | 7254a2f984e99622fe94a06bb9040af2 |
from collections.abc import Generator\nimport contextlib\n\nfrom matplotlib import RcParams\nfrom matplotlib.typing import RcStyleType\n\nUSER_LIBRARY_PATHS: list[str] = ...\nSTYLE_EXTENSION: str = ...\n\ndef use(style: RcStyleType) -> None: ...\n@contextlib.contextmanager\ndef context(\n style: RcStyleType, after_r... | .venv\Lib\site-packages\matplotlib\style\core.pyi | core.pyi | Other | 521 | 0.85 | 0.142857 | 0 | node-utils | 257 | 2023-12-03T14:30:13.933424 | GPL-3.0 | false | fa513199bfba589e253b3761412ec5dc |
from .core import available, context, library, reload_library, use\n\n\n__all__ = ["available", "context", "library", "reload_library", "use"]\n | .venv\Lib\site-packages\matplotlib\style\__init__.py | __init__.py | Python | 140 | 0.85 | 0 | 0 | react-lib | 364 | 2023-09-21T13:50:28.142219 | GPL-3.0 | false | 17b3817749ce8cca4d7c493c6ba9e8b1 |
\n\n | .venv\Lib\site-packages\matplotlib\style\__pycache__\core.cpython-313.pyc | core.cpython-313.pyc | Other | 9,421 | 0.95 | 0.042945 | 0 | react-lib | 296 | 2023-10-20T10:03:52.047870 | BSD-3-Clause | false | 873b2c4b90e98a350d1a65ef7af82575 |
\n\n | .venv\Lib\site-packages\matplotlib\style\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 335 | 0.7 | 0 | 0 | node-utils | 549 | 2024-12-10T22:28:27.929531 | MIT | false | 1c1f2407e1858bd8d1e5f23f907d7af6 |
"""\nUtilities for comparing image results.\n"""\n\nimport atexit\nimport functools\nimport hashlib\nimport logging\nimport os\nfrom pathlib import Path\nimport shutil\nimport subprocess\nimport sys\nfrom tempfile import TemporaryDirectory, TemporaryFile\nimport weakref\nimport re\n\nimport numpy as np\nfrom PIL import... | .venv\Lib\site-packages\matplotlib\testing\compare.py | compare.py | Python | 19,780 | 0.95 | 0.185958 | 0.140909 | awesome-app | 499 | 2024-10-01T02:07:10.670850 | Apache-2.0 | true | c9567c90f672d7ddd7c9707161bfd0fe |
from collections.abc import Callable\nfrom typing import Literal, overload\n\nfrom numpy.typing import NDArray\n\n__all__ = ["calculate_rms", "comparable_formats", "compare_images"]\n\ndef make_test_filename(fname: str, purpose: str) -> str: ...\ndef get_cache_dir() -> str: ...\ndef get_file_hash(path: str, block_size:... | .venv\Lib\site-packages\matplotlib\testing\compare.pyi | compare.pyi | Other | 1,192 | 0.85 | 0.34375 | 0 | awesome-app | 561 | 2023-10-15T16:12:13.170851 | BSD-3-Clause | true | 48a3bcbbd7b05252a304652181306150 |
import pytest\nimport sys\nimport matplotlib\nfrom matplotlib import _api\n\n\ndef pytest_configure(config):\n # config is initialized here rather than in pytest.ini so that `pytest\n # --pyargs matplotlib` (which would not find pytest.ini) works. The only\n # entries in pytest.ini set minversion (which is ch... | .venv\Lib\site-packages\matplotlib\testing\conftest.py | conftest.py | Python | 6,683 | 0.95 | 0.162921 | 0.087838 | awesome-app | 225 | 2025-05-29T03:50:48.031371 | GPL-3.0 | true | e3230b5a33a723f39ef68dde3b203dc4 |
from types import ModuleType\n\nimport pytest\n\ndef pytest_configure(config: pytest.Config) -> None: ...\ndef pytest_unconfigure(config: pytest.Config) -> None: ...\n@pytest.fixture\ndef mpl_test_settings(request: pytest.FixtureRequest) -> None: ...\n@pytest.fixture\ndef pd() -> ModuleType: ...\n@pytest.fixture\ndef x... | .venv\Lib\site-packages\matplotlib\testing\conftest.pyi | conftest.pyi | Other | 416 | 0.85 | 0.428571 | 0 | node-utils | 834 | 2023-07-28T16:17:08.312561 | MIT | true | 1108d80c0bcadf6b909a509655af01c6 |
import contextlib\nimport functools\nimport inspect\nimport os\nfrom platform import uname\nfrom pathlib import Path\nimport shutil\nimport string\nimport sys\nimport warnings\n\nfrom packaging.version import parse as parse_version\n\nimport matplotlib.style\nimport matplotlib.units\nimport matplotlib.testing\nfrom mat... | .venv\Lib\site-packages\matplotlib\testing\decorators.py | decorators.py | Python | 18,022 | 0.95 | 0.204741 | 0.041775 | awesome-app | 102 | 2024-04-27T07:20:51.865287 | Apache-2.0 | true | 8ff295df2db5eeb63f9f94967da91a67 |
from collections.abc import Callable, Sequence\nfrom pathlib import Path\nfrom typing import Any, TypeVar\nfrom typing_extensions import ParamSpec\n\nfrom matplotlib.figure import Figure\nfrom matplotlib.typing import RcStyleType\n\n_P = ParamSpec("_P")\n_R = TypeVar("_R")\n\ndef remove_ticks_and_titles(figure: Figure)... | .venv\Lib\site-packages\matplotlib\testing\decorators.pyi | decorators.pyi | Other | 872 | 0.85 | 0.16 | 0.045455 | vue-tools | 335 | 2023-11-02T06:39:27.528694 | MIT | true | 737bf4f27782866af1ef9082131d4765 |
class ImageComparisonFailure(AssertionError):\n """\n Raise this exception to mark a test as a comparison between two images.\n """\n | .venv\Lib\site-packages\matplotlib\testing\exceptions.py | exceptions.py | Python | 138 | 0.85 | 0.25 | 0 | awesome-app | 112 | 2023-12-23T21:34:54.638903 | MIT | true | 325cb4147f18a55a435591c1d73007aa |
"""\n========================\nWidget testing utilities\n========================\n\nSee also :mod:`matplotlib.tests.test_widgets`.\n"""\n\nfrom unittest import mock\n\nimport matplotlib.pyplot as plt\n\n\ndef get_ax():\n """Create a plot and return its Axes."""\n fig, ax = plt.subplots(1, 1)\n ax.plot([0, 200... | .venv\Lib\site-packages\matplotlib\testing\widgets.py | widgets.py | Python | 3,480 | 0.95 | 0.10084 | 0.029703 | python-kit | 991 | 2025-06-26T20:42:24.716406 | GPL-3.0 | true | 2f10b5c5d1c45b6356ea837fe24826b3 |
from typing import Any, Literal\n\nfrom matplotlib.axes import Axes\nfrom matplotlib.backend_bases import Event, MouseButton\nfrom matplotlib.widgets import AxesWidget, Widget\n\ndef get_ax() -> Axes: ...\ndef noop(*args: Any, **kwargs: Any) -> None: ...\ndef mock_event(\n ax: Axes,\n button: MouseButton | int | ... | .venv\Lib\site-packages\matplotlib\testing\widgets.pyi | widgets.pyi | Other | 831 | 0.85 | 0.16129 | 0 | awesome-app | 409 | 2025-01-27T12:03:51.952481 | GPL-3.0 | true | 1b1165253556b8a736d6b2966290f449 |
"""\npytest markers for the internal Matplotlib test suite.\n"""\n\nimport logging\nimport shutil\n\nimport pytest\n\nimport matplotlib.testing\nimport matplotlib.testing.compare\nfrom matplotlib import _get_executable_info, ExecutableNotFoundError\n\n\n_log = logging.getLogger(__name__)\n\n\ndef _checkdep_usetex() -> ... | .venv\Lib\site-packages\matplotlib\testing\_markers.py | _markers.py | Python | 1,419 | 0.85 | 0.102041 | 0 | react-lib | 43 | 2025-06-09T05:53:27.087811 | BSD-3-Clause | true | 86be8a5b3a83d4b6f9c60cf1285e2a4f |
"""\nHelper functions for testing.\n"""\nfrom pathlib import Path\nfrom tempfile import TemporaryDirectory\nimport locale\nimport logging\nimport os\nimport subprocess\nimport sys\n\nimport matplotlib as mpl\nfrom matplotlib import _api\n\n_log = logging.getLogger(__name__)\n\n\ndef set_font_settings_for_testing():\n ... | .venv\Lib\site-packages\matplotlib\testing\__init__.py | __init__.py | Python | 6,942 | 0.95 | 0.128205 | 0.056122 | vue-tools | 544 | 2024-12-02T21:14:55.387025 | Apache-2.0 | true | 7cb8b5857d43a48555668a15bb4731bc |
from collections.abc import Callable\nimport subprocess\nfrom typing import Any, IO, Literal, overload\n\ndef set_font_settings_for_testing() -> None: ...\ndef set_reproducibility_for_testing() -> None: ...\ndef setup() -> None: ...\n@overload\ndef subprocess_run_for_testing(\n command: list[str],\n env: dict[str... | .venv\Lib\site-packages\matplotlib\testing\__init__.pyi | __init__.pyi | Other | 1,752 | 0.85 | 0.203704 | 0.037736 | awesome-app | 509 | 2024-10-10T19:26:18.934622 | BSD-3-Clause | true | 53e2c95c0ea1febb3e05d1afae7557db |
"""Duration module."""\n\nimport functools\nimport operator\n\nfrom matplotlib import _api\n\n\nclass Duration:\n """Class Duration in development."""\n\n allowed = ["ET", "UTC"]\n\n def __init__(self, frame, seconds):\n """\n Create a new Duration object.\n\n = ERROR CONDITIONS\n -... | .venv\Lib\site-packages\matplotlib\testing\jpl_units\Duration.py | Duration.py | Python | 3,966 | 0.95 | 0.137681 | 0.009615 | node-utils | 8 | 2024-06-24T05:20:32.004024 | GPL-3.0 | true | 1620def7daea4d62d0d66dd0a3a75618 |
"""Epoch module."""\n\nimport functools\nimport operator\nimport math\nimport datetime as DT\n\nfrom matplotlib import _api\nfrom matplotlib.dates import date2num\n\n\nclass Epoch:\n # Frame conversion offsets in seconds\n # t(TO) = t(FROM) + allowed[ FROM ][ TO ]\n allowed = {\n "ET": {\n "U... | .venv\Lib\site-packages\matplotlib\testing\jpl_units\Epoch.py | Epoch.py | Python | 6,100 | 0.95 | 0.118483 | 0.04878 | awesome-app | 837 | 2024-08-23T04:13:26.654851 | Apache-2.0 | true | 79683f4fd6c228a4d6784f6e989c9cca |
"""EpochConverter module containing class EpochConverter."""\n\nfrom matplotlib import cbook, units\nimport matplotlib.dates as date_ticker\n\n__all__ = ['EpochConverter']\n\n\nclass EpochConverter(units.ConversionInterface):\n """\n Provides Matplotlib conversion functionality for Monte Epoch and Duration\n c... | .venv\Lib\site-packages\matplotlib\testing\jpl_units\EpochConverter.py | EpochConverter.py | Python | 2,944 | 0.95 | 0.191489 | 0.067568 | vue-tools | 225 | 2024-04-25T15:25:58.589183 | GPL-3.0 | true | f7f4e2993f0c15803c4d2b46e8c9b0cb |
"""StrConverter module containing class StrConverter."""\n\nimport numpy as np\n\nimport matplotlib.units as units\n\n__all__ = ['StrConverter']\n\n\nclass StrConverter(units.ConversionInterface):\n """\n A Matplotlib converter class for string data values.\n\n Valid units for string are:\n - 'indexed' : Va... | .venv\Lib\site-packages\matplotlib\testing\jpl_units\StrConverter.py | StrConverter.py | Python | 2,865 | 0.95 | 0.247423 | 0.22973 | node-utils | 654 | 2024-10-02T16:07:09.317901 | GPL-3.0 | true | 7692fde864fd88899e50b6f3497dcd62 |
"""UnitDbl module."""\n\nimport functools\nimport operator\n\nfrom matplotlib import _api\n\n\nclass UnitDbl:\n """Class UnitDbl in development."""\n\n # Unit conversion table. Small subset of the full one but enough\n # to test the required functions. First field is a scale factor to\n # convert the inpu... | .venv\Lib\site-packages\matplotlib\testing\jpl_units\UnitDbl.py | UnitDbl.py | Python | 5,882 | 0.95 | 0.133333 | 0.028571 | react-lib | 977 | 2024-11-03T02:31:36.322173 | MIT | true | 8cfc3878d1ab7f9b3723b4bf0612ed23 |
"""UnitDblConverter module containing class UnitDblConverter."""\n\nimport numpy as np\n\nfrom matplotlib import cbook, units\nimport matplotlib.projections.polar as polar\n\n__all__ = ['UnitDblConverter']\n\n\n# A special function for use with the matplotlib FuncFormatter class\n# for formatting axes with radian units... | .venv\Lib\site-packages\matplotlib\testing\jpl_units\UnitDblConverter.py | UnitDblConverter.py | Python | 2,828 | 0.95 | 0.341176 | 0.239437 | python-kit | 119 | 2023-12-27T04:59:16.718910 | MIT | true | 2576aeae66b60f5d87266ab0ea1bd494 |
"""UnitDblFormatter module containing class UnitDblFormatter."""\n\nimport matplotlib.ticker as ticker\n\n__all__ = ['UnitDblFormatter']\n\n\nclass UnitDblFormatter(ticker.ScalarFormatter):\n """\n The formatter for UnitDbl data types.\n\n This allows for formatting with the unit string.\n """\n\n def __... | .venv\Lib\site-packages\matplotlib\testing\jpl_units\UnitDblFormatter.py | UnitDblFormatter.py | Python | 657 | 0.95 | 0.285714 | 0.15 | awesome-app | 680 | 2024-11-01T06:12:10.584929 | BSD-3-Clause | true | b8c1054ddddce651c5e99582650615f1 |
"""\nA sample set of units for use with testing unit conversion\nof Matplotlib routines. These are used because they use very strict\nenforcement of unitized data which will test the entire spectrum of how\nunitized data might be used (it is not always meaningful to convert to\na float without specific units given).\n... | .venv\Lib\site-packages\matplotlib\testing\jpl_units\__init__.py | __init__.py | Python | 2,684 | 0.95 | 0.065789 | 0.064516 | node-utils | 161 | 2025-04-01T13:11:16.386624 | GPL-3.0 | true | b47657c0b45027604bc04eae91cb2d2d |
\n\n | .venv\Lib\site-packages\matplotlib\testing\jpl_units\__pycache__\Duration.cpython-313.pyc | Duration.cpython-313.pyc | Other | 6,025 | 0.95 | 0.025424 | 0 | python-kit | 298 | 2024-04-14T22:27:25.693225 | MIT | true | 19e5124b62c8ad6a4360f796c64a7116 |
\n\n | .venv\Lib\site-packages\matplotlib\testing\jpl_units\__pycache__\Epoch.cpython-313.pyc | Epoch.cpython-313.pyc | Other | 7,863 | 0.8 | 0 | 0.015038 | vue-tools | 630 | 2025-02-23T02:49:50.293049 | Apache-2.0 | true | 269b74f64019008d692a283cd13a91fb |
\n\n | .venv\Lib\site-packages\matplotlib\testing\jpl_units\__pycache__\EpochConverter.cpython-313.pyc | EpochConverter.cpython-313.pyc | Other | 4,185 | 0.95 | 0.1 | 0 | node-utils | 232 | 2025-01-02T00:35:39.257064 | BSD-3-Clause | true | affafef5ab3fcec7631de1a3e11c0610 |
\n\n | .venv\Lib\site-packages\matplotlib\testing\jpl_units\__pycache__\StrConverter.cpython-313.pyc | StrConverter.cpython-313.pyc | Other | 3,284 | 0.95 | 0.138889 | 0 | react-lib | 560 | 2023-10-14T22:10:52.252159 | BSD-3-Clause | true | 47d2d3009dcf9df8de1e823994dbc95b |
\n\n | .venv\Lib\site-packages\matplotlib\testing\jpl_units\__pycache__\UnitDbl.cpython-313.pyc | UnitDbl.cpython-313.pyc | Other | 7,755 | 0.95 | 0.033898 | 0 | vue-tools | 898 | 2024-10-29T13:23:49.381227 | MIT | true | 1b284d360162b0ac586d48ee6a4ab883 |
\n\n | .venv\Lib\site-packages\matplotlib\testing\jpl_units\__pycache__\UnitDblConverter.cpython-313.pyc | UnitDblConverter.cpython-313.pyc | Other | 3,466 | 0.95 | 0.16 | 0 | python-kit | 378 | 2024-01-17T10:55:50.106830 | GPL-3.0 | true | 9a3c0fce0b057d4480ffe99df542f752 |
\n\n | .venv\Lib\site-packages\matplotlib\testing\jpl_units\__pycache__\UnitDblFormatter.cpython-313.pyc | UnitDblFormatter.cpython-313.pyc | Other | 1,300 | 0.85 | 0.3 | 0 | react-lib | 278 | 2025-06-04T05:02:56.161487 | GPL-3.0 | true | 7af40394aac5877382a1b3751761c83b |
\n\n | .venv\Lib\site-packages\matplotlib\testing\jpl_units\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 3,114 | 0.95 | 0.088889 | 0 | react-lib | 525 | 2024-02-11T03:30:43.340604 | MIT | true | b47924072ee19774978c2618665194b4 |
\n\n | .venv\Lib\site-packages\matplotlib\testing\__pycache__\compare.cpython-313.pyc | compare.cpython-313.pyc | Other | 24,921 | 0.95 | 0.013986 | 0 | vue-tools | 403 | 2024-06-13T16:57:41.134404 | MIT | true | 7ddf2d5fcfb9581ce9f1d11689337bac |
\n\n | .venv\Lib\site-packages\matplotlib\testing\__pycache__\conftest.cpython-313.pyc | conftest.cpython-313.pyc | Other | 7,934 | 0.95 | 0.046512 | 0 | vue-tools | 4 | 2024-03-07T04:38:17.410445 | Apache-2.0 | true | 063f5907b6bc7a98a0c3d25b95312c03 |
\n\n | .venv\Lib\site-packages\matplotlib\testing\__pycache__\decorators.cpython-313.pyc | decorators.cpython-313.pyc | Other | 23,181 | 0.95 | 0.072165 | 0.015385 | node-utils | 965 | 2023-10-18T15:26:33.170087 | Apache-2.0 | true | 3dbda4e69f97d20fcb497272cd5f5a54 |
\n\n | .venv\Lib\site-packages\matplotlib\testing\__pycache__\exceptions.cpython-313.pyc | exceptions.cpython-313.pyc | Other | 547 | 0.7 | 0 | 0 | node-utils | 714 | 2025-01-05T00:17:57.848941 | BSD-3-Clause | true | 423614aee1aadef0b497841d1c8b78f2 |
\n\n | .venv\Lib\site-packages\matplotlib\testing\__pycache__\widgets.cpython-313.pyc | widgets.cpython-313.pyc | Other | 4,233 | 0.95 | 0.064935 | 0 | vue-tools | 463 | 2025-01-11T01:10:47.829351 | Apache-2.0 | true | ab94876bde108adfa1461f9668e7f13f |
\n\n | .venv\Lib\site-packages\matplotlib\testing\__pycache__\_markers.cpython-313.pyc | _markers.cpython-313.pyc | Other | 2,450 | 0.95 | 0.0625 | 0 | vue-tools | 770 | 2025-06-14T07:23:24.340057 | MIT | true | ff3f01b6179604bcf26056fc3500d569 |
\n\n | .venv\Lib\site-packages\matplotlib\testing\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 8,225 | 0.95 | 0.051852 | 0.007874 | python-kit | 163 | 2023-10-27T09:15:28.975123 | GPL-3.0 | true | 6a9fba473b017453a0076fcd645e7aa1 |
from matplotlib.testing.conftest import ( # noqa\n mpl_test_settings, pytest_configure, pytest_unconfigure, pd, text_placeholders, xr)\n | .venv\Lib\site-packages\matplotlib\tests\conftest.py | conftest.py | Python | 138 | 0.95 | 0 | 0 | vue-tools | 414 | 2024-12-25T23:59:01.836192 | MIT | true | b448d04b01026f6b4ce0a8625f23b90c |
from io import BytesIO\nimport pytest\nimport logging\n\nfrom matplotlib import _afm\nfrom matplotlib import font_manager as fm\n\n\n# See note in afm.py re: use of comma as decimal separator in the\n# UnderlineThickness field and re: use of non-ASCII characters in the Notice\n# field.\nAFM_TEST_DATA = b"""StartFontMet... | .venv\Lib\site-packages\matplotlib\tests\test_afm.py | test_afm.py | Python | 3,701 | 0.95 | 0.051095 | 0.042373 | python-kit | 84 | 2023-10-31T03:21:40.176953 | GPL-3.0 | true | f5ad0caace031c3d386345ffd838b318 |
import io\n\nimport numpy as np\nfrom numpy.testing import assert_array_almost_equal\nfrom PIL import features, Image, TiffTags\nimport pytest\n\n\nfrom matplotlib import (\n collections, patheffects, pyplot as plt, transforms as mtransforms,\n rcParams, rc_context)\nfrom matplotlib.backends.backend_agg import Re... | .venv\Lib\site-packages\matplotlib\tests\test_agg.py | test_agg.py | Python | 10,884 | 0.95 | 0.114706 | 0.121673 | python-kit | 23 | 2025-03-26T06:21:13.789778 | GPL-3.0 | true | cadbff8488a70ab6b854f73382d74e21 |
import numpy as np\n\nimport matplotlib.pyplot as plt\nfrom matplotlib.testing.decorators import image_comparison\n\n\n@image_comparison(baseline_images=['agg_filter_alpha'],\n extensions=['png', 'pdf'])\ndef test_agg_filter_alpha():\n # Remove this line when this test image is regenerated.\n plt... | .venv\Lib\site-packages\matplotlib\tests\test_agg_filter.py | test_agg_filter.py | Python | 1,067 | 0.95 | 0.121212 | 0.28 | vue-tools | 783 | 2024-03-28T00:59:45.893236 | Apache-2.0 | true | f13ac60cc2ef06297755c32bec06e0c0 |
import os\nfrom pathlib import Path\nimport platform\nimport re\nimport shutil\nimport subprocess\nimport sys\nimport weakref\n\nimport numpy as np\nimport pytest\n\nimport matplotlib as mpl\nfrom matplotlib import pyplot as plt\nfrom matplotlib import animation\nfrom matplotlib.animation import PillowWriter\nfrom matp... | .venv\Lib\site-packages\matplotlib\tests\test_animation.py | test_animation.py | Python | 18,357 | 0.95 | 0.124343 | 0.112311 | react-lib | 336 | 2023-07-26T04:06:07.507089 | MIT | true | c9b7c3f748fca529c6f1025af42b7c76 |
from __future__ import annotations\n\nfrom collections.abc import Callable\nimport re\nimport typing\nfrom typing import Any, TypeVar\n\nimport numpy as np\nimport pytest\n\nimport matplotlib as mpl\nfrom matplotlib import _api\n\n\nif typing.TYPE_CHECKING:\n from typing_extensions import Self\n\nT = TypeVar('T')\n\... | .venv\Lib\site-packages\matplotlib\tests\test_api.py | test_api.py | Python | 5,736 | 0.95 | 0.157895 | 0 | awesome-app | 791 | 2024-11-26T16:06:21.920999 | GPL-3.0 | true | 20607d0ec74c4d4118cb5d6c6af0a8ae |
import pytest\nimport platform\nimport matplotlib.pyplot as plt\nfrom matplotlib.testing.decorators import image_comparison\nimport matplotlib.patches as mpatches\n\n\ndef draw_arrow(ax, t, r):\n ax.annotate('', xy=(0.5, 0.5 + r), xytext=(0.5, 0.5), size=30,\n arrowprops=dict(arrowstyle=t,\n ... | .venv\Lib\site-packages\matplotlib\tests\test_arrow_patches.py | test_arrow_patches.py | Python | 6,577 | 0.95 | 0.150838 | 0.007092 | vue-tools | 381 | 2025-05-08T23:03:36.358710 | Apache-2.0 | true | 01ee55afb92cd47fbdea9d0fd598a7ac |
import io\nfrom itertools import chain\n\nimport numpy as np\n\nimport pytest\n\nimport matplotlib.colors as mcolors\nimport matplotlib.pyplot as plt\nimport matplotlib.patches as mpatches\nimport matplotlib.lines as mlines\nimport matplotlib.path as mpath\nimport matplotlib.transforms as mtransforms\nimport matplotlib... | .venv\Lib\site-packages\matplotlib\tests\test_artist.py | test_artist.py | Python | 18,599 | 0.95 | 0.085284 | 0.095137 | react-lib | 329 | 2023-09-21T15:52:46.476631 | BSD-3-Clause | true | 0fa34f8a4bcaf5979c33ae08640b9adb |
import numpy as np\n\nimport matplotlib.pyplot as plt\nfrom matplotlib.axis import XTick\n\n\ndef test_tick_labelcolor_array():\n # Smoke test that we can instantiate a Tick with labelcolor as array.\n ax = plt.axes()\n XTick(ax, 0, labelcolor=np.array([1, 0, 0, 1]))\n\n\ndef test_axis_not_in_layout():\n fi... | .venv\Lib\site-packages\matplotlib\tests\test_axis.py | test_axis.py | Python | 1,446 | 0.95 | 0.125 | 0.137931 | node-utils | 872 | 2023-11-07T05:30:33.618874 | GPL-3.0 | true | f1afab48d2d889fbe3f5c1e5f644ec5f |
import functools\nimport importlib\nimport importlib.util\nimport inspect\nimport json\nimport os\nimport platform\nimport signal\nimport subprocess\nimport sys\nimport tempfile\nimport time\nimport urllib.request\n\nfrom PIL import Image\n\nimport pytest\n\nimport matplotlib as mpl\nfrom matplotlib import _c_internal_... | .venv\Lib\site-packages\matplotlib\tests\test_backends_interactive.py | test_backends_interactive.py | Python | 29,020 | 0.95 | 0.163728 | 0.137725 | node-utils | 696 | 2024-02-04T12:39:16.636191 | MIT | true | e49e04f3b0dc1a68672b3d397ef51a2f |
import importlib\n\nfrom matplotlib import path, transforms\nfrom matplotlib.backend_bases import (\n FigureCanvasBase, KeyEvent, LocationEvent, MouseButton, MouseEvent,\n NavigationToolbar2, RendererBase)\nfrom matplotlib.backend_tools import RubberbandBase\nfrom matplotlib.figure import Figure\nfrom matplotlib.... | .venv\Lib\site-packages\matplotlib\tests\test_backend_bases.py | test_backend_bases.py | Python | 22,775 | 0.95 | 0.085324 | 0.109504 | node-utils | 201 | 2023-10-31T00:18:15.716239 | GPL-3.0 | true | 8b60125226adc452161d6703485b5b00 |
import numpy as np\n\nimport pytest\n\nfrom matplotlib.testing.decorators import check_figures_equal\nfrom matplotlib import (\n collections as mcollections, patches as mpatches, path as mpath)\n\n\n@pytest.mark.backend('cairo')\n@check_figures_equal(extensions=["png"])\ndef test_patch_alpha_coloring(fig_test, fig_r... | .venv\Lib\site-packages\matplotlib\tests\test_backend_cairo.py | test_backend_cairo.py | Python | 1,821 | 0.95 | 0.020833 | 0.071429 | react-lib | 125 | 2024-10-23T04:22:06.772829 | MIT | true | ca675356d566c6a0bffc305ea346c09c |
import os\nfrom matplotlib import pyplot as plt\n\nimport pytest\nfrom unittest import mock\n\n\n@pytest.mark.backend("gtk3agg", skip_on_importerror=True)\ndef test_correct_key():\n pytest.xfail("test_widget_send_event is not triggering key_press_event")\n\n from gi.repository import Gdk, Gtk # type: ignore[impo... | .venv\Lib\site-packages\matplotlib\tests\test_backend_gtk3.py | test_backend_gtk3.py | Python | 2,849 | 0.95 | 0.094595 | 0.046875 | awesome-app | 821 | 2025-05-17T20:37:13.996335 | GPL-3.0 | true | 414238f202a04bb7f310fa55544e62e9 |
import os\nfrom pathlib import Path\nfrom tempfile import TemporaryDirectory\n\nimport pytest\n\nfrom matplotlib.testing import subprocess_run_for_testing\n\nnbformat = pytest.importorskip('nbformat')\npytest.importorskip('nbconvert')\npytest.importorskip('ipykernel')\npytest.importorskip('matplotlib_inline')\n\n\ndef ... | .venv\Lib\site-packages\matplotlib\tests\test_backend_inline.py | test_backend_inline.py | Python | 1,608 | 0.95 | 0.108696 | 0.055556 | node-utils | 405 | 2024-01-14T01:04:34.504291 | MIT | true | 4cf5d4140a7a00626362a9e04bb5462a |
import os\n\nimport pytest\nfrom unittest import mock\n\nimport matplotlib as mpl\nimport matplotlib.pyplot as plt\ntry:\n from matplotlib.backends import _macosx\nexcept ImportError:\n pytest.skip("These are mac only tests", allow_module_level=True)\n\n\n@pytest.mark.backend('macosx')\ndef test_cached_renderer()... | .venv\Lib\site-packages\matplotlib\tests\test_backend_macosx.py | test_backend_macosx.py | Python | 2,233 | 0.95 | 0.119403 | 0.132075 | node-utils | 846 | 2024-04-05T17:52:50.502073 | BSD-3-Clause | true | 2e56e48ff2ed92cc4b7a488bd03d3f75 |
import os\nfrom pathlib import Path\nfrom tempfile import TemporaryDirectory\n\nimport pytest\n\nfrom matplotlib.testing import subprocess_run_for_testing\n\nnbformat = pytest.importorskip('nbformat')\npytest.importorskip('nbconvert')\npytest.importorskip('ipykernel')\n\n# From https://blog.thedataincubator.com/2016/06... | .venv\Lib\site-packages\matplotlib\tests\test_backend_nbagg.py | test_backend_nbagg.py | Python | 1,459 | 0.95 | 0.119048 | 0.090909 | vue-tools | 936 | 2024-08-28T06:33:07.954561 | Apache-2.0 | true | 2989463af6664d3fece8b60e1dd2db35 |
import datetime\nimport decimal\nimport io\nimport os\nfrom pathlib import Path\n\nimport numpy as np\nimport pytest\n\nimport matplotlib as mpl\nfrom matplotlib import (\n pyplot as plt, rcParams, font_manager as fm\n)\nfrom matplotlib.cbook import _get_data_path\nfrom matplotlib.ft2font import FT2Font\nfrom matplo... | .venv\Lib\site-packages\matplotlib\tests\test_backend_pdf.py | test_backend_pdf.py | Python | 14,602 | 0.95 | 0.095982 | 0.066282 | python-kit | 795 | 2023-12-06T00:32:06.354725 | MIT | true | b5354c4ac21675ad8552eb797b76b7c1 |
import datetime\nfrom io import BytesIO\nimport os\nimport shutil\n\nimport numpy as np\nfrom packaging.version import parse as parse_version\nimport pytest\n\nimport matplotlib as mpl\nimport matplotlib.pyplot as plt\nfrom matplotlib.testing import _has_tex_package, _check_for_pgf\nfrom matplotlib.testing.exceptions i... | .venv\Lib\site-packages\matplotlib\tests\test_backend_pgf.py | test_backend_pgf.py | Python | 13,028 | 0.95 | 0.079602 | 0.057057 | vue-tools | 491 | 2023-10-09T00:47:04.598731 | Apache-2.0 | true | a0e650be6fb28ecf892eb1de60727a67 |
from collections import Counter\nfrom pathlib import Path\nimport io\nimport re\nimport tempfile\n\nimport numpy as np\nimport pytest\n\nfrom matplotlib import cbook, path, patheffects, font_manager as fm\nfrom matplotlib.figure import Figure\nfrom matplotlib.patches import Ellipse\nfrom matplotlib.testing._markers imp... | .venv\Lib\site-packages\matplotlib\tests\test_backend_ps.py | test_backend_ps.py | Python | 12,600 | 0.95 | 0.136842 | 0.075908 | react-lib | 207 | 2024-10-25T21:36:40.932812 | GPL-3.0 | true | 5c20b9abbc9c928c012fb2f6386f6412 |
import copy\nimport importlib\nimport os\nimport signal\nimport sys\n\nfrom datetime import date, datetime\nfrom unittest import mock\n\nimport pytest\n\nimport matplotlib\nfrom matplotlib import pyplot as plt\nfrom matplotlib._pylab_helpers import Gcf\nfrom matplotlib import _c_internal_utils\n\ntry:\n from matplot... | .venv\Lib\site-packages\matplotlib\tests\test_backend_qt.py | test_backend_qt.py | Python | 13,000 | 0.95 | 0.088608 | 0.117089 | vue-tools | 728 | 2024-12-17T02:11:13.272379 | GPL-3.0 | true | 44371f6a9fc602a8bd97068f2267596d |
from collections.abc import Sequence\nfrom typing import Any\n\nimport pytest\n\nimport matplotlib as mpl\nfrom matplotlib.backends import BackendFilter, backend_registry\n\n\n@pytest.fixture\ndef clear_backend_registry():\n # Fixture that clears the singleton backend_registry before and after use\n # so that the... | .venv\Lib\site-packages\matplotlib\tests\test_backend_registry.py | test_backend_registry.py | Python | 5,950 | 0.95 | 0.1 | 0.056338 | awesome-app | 926 | 2024-02-14T03:59:57.014009 | Apache-2.0 | true | d8c0805622b4156df793895300198240 |
import datetime\nfrom io import BytesIO\nfrom pathlib import Path\nimport xml.etree.ElementTree\nimport xml.parsers.expat\n\nimport pytest\n\nimport numpy as np\n\nimport matplotlib as mpl\nfrom matplotlib.figure import Figure\nfrom matplotlib.patches import Circle\nfrom matplotlib.text import Text\nimport matplotlib.p... | .venv\Lib\site-packages\matplotlib\tests\test_backend_svg.py | test_backend_svg.py | Python | 22,930 | 0.95 | 0.128713 | 0.080645 | awesome-app | 412 | 2023-12-13T20:14:27.499481 | Apache-2.0 | true | 49332bc70d062398f7650246e6853d8f |
"""\nBackend-loading machinery tests, using variations on the template backend.\n"""\n\nimport sys\nfrom types import SimpleNamespace\nfrom unittest.mock import MagicMock\n\nimport matplotlib as mpl\nfrom matplotlib import pyplot as plt\nfrom matplotlib.backends import backend_template\nfrom matplotlib.backends.backend... | .venv\Lib\site-packages\matplotlib\tests\test_backend_template.py | test_backend_template.py | Python | 2,184 | 0.95 | 0.080645 | 0 | react-lib | 108 | 2023-09-30T12:31:58.082431 | MIT | true | ddf5be646473a9d9a944591b89845f31 |
import functools\nimport importlib\nimport os\nimport platform\nimport subprocess\nimport sys\n\nimport pytest\n\nfrom matplotlib import _c_internal_utils\nfrom matplotlib.testing import subprocess_run_helper\n\n\n_test_timeout = 60 # A reasonably safe value for slower architectures.\n\n\ndef _isolated_tk_test(success... | .venv\Lib\site-packages\matplotlib\tests\test_backend_tk.py | test_backend_tk.py | Python | 8,850 | 0.95 | 0.135714 | 0.092511 | awesome-app | 612 | 2024-10-02T17:50:21.274907 | GPL-3.0 | true | 751259ea0facdf38b9b7fb7d19c63986 |
import pytest\n\nfrom matplotlib.backend_tools import ToolHelpBase\n\n\n@pytest.mark.parametrize('rc_shortcut,expected', [\n ('home', 'Home'),\n ('backspace', 'Backspace'),\n ('f1', 'F1'),\n ('ctrl+a', 'Ctrl+A'),\n ('ctrl+A', 'Ctrl+Shift+A'),\n ('a', 'a'),\n ('A', 'A'),\n ('ctrl+shift+f1', 'Ctrl... | .venv\Lib\site-packages\matplotlib\tests\test_backend_tools.py | test_backend_tools.py | Python | 501 | 0.85 | 0.05 | 0 | react-lib | 662 | 2025-07-04T06:48:54.608398 | BSD-3-Clause | true | 79f27eaca5969e6ba1c00c7f52cb2795 |
import os\nimport sys\nimport pytest\n\nimport matplotlib.backends.backend_webagg_core\nfrom matplotlib.testing import subprocess_run_for_testing\n\n\n@pytest.mark.parametrize("backend", ["webagg", "nbagg"])\ndef test_webagg_fallback(backend):\n pytest.importorskip("tornado")\n if backend == "nbagg":\n pyt... | .venv\Lib\site-packages\matplotlib\tests\test_backend_webagg.py | test_backend_webagg.py | Python | 938 | 0.85 | 0.125 | 0 | node-utils | 872 | 2025-06-21T16:00:16.772065 | MIT | true | bcbf78153bd4e37e72ff510c1115cee4 |
import builtins\nimport os\nimport sys\nimport textwrap\n\nfrom matplotlib.testing import subprocess_run_for_testing\n\n\ndef test_simple():\n assert 1 + 1 == 2\n\n\ndef test_override_builtins():\n import pylab # type: ignore[import]\n ok_to_override = {\n '__name__',\n '__doc__',\n '__pa... | .venv\Lib\site-packages\matplotlib\tests\test_basic.py | test_basic.py | Python | 1,141 | 0.95 | 0.104167 | 0 | awesome-app | 854 | 2024-05-02T06:44:56.131425 | BSD-3-Clause | true | 6c203bbeece362ca2436290e7b934d53 |
from io import BytesIO\nimport platform\n\nimport numpy as np\n\nfrom matplotlib.testing.decorators import image_comparison\nimport matplotlib.pyplot as plt\nimport matplotlib.path as mpath\nimport matplotlib.patches as mpatches\nfrom matplotlib.ticker import FuncFormatter\n\n\n@image_comparison(['bbox_inches_tight'], ... | .venv\Lib\site-packages\matplotlib\tests\test_bbox_tight.py | test_bbox_tight.py | Python | 6,314 | 0.95 | 0.102857 | 0.112676 | python-kit | 441 | 2023-07-15T19:36:00.987317 | BSD-3-Clause | true | 6052d5d83fedd620c84b18cd1fa65120 |
"""\nTests specific to the bezier module.\n"""\n\nfrom matplotlib.bezier import inside_circle, split_bezier_intersecting_with_closedpath\n\n\ndef test_split_bezier_with_large_values():\n # These numbers come from gh-27753\n arrow_path = [(96950809781500.0, 804.7503795623779),\n (96950809781500.0,... | .venv\Lib\site-packages\matplotlib\tests\test_bezier.py | test_bezier.py | Python | 692 | 0.95 | 0.117647 | 0.285714 | node-utils | 792 | 2024-12-19T11:06:43.571092 | MIT | true | 4c47f5482d112cc83bca40afb60eb634 |
"""Catch all for categorical functions"""\nimport warnings\n\nimport pytest\nimport numpy as np\n\nimport matplotlib as mpl\nfrom matplotlib.axes import Axes\nimport matplotlib.pyplot as plt\nimport matplotlib.category as cat\nfrom matplotlib.testing.decorators import check_figures_equal\n\n\nclass TestUnitData:\n t... | .venv\Lib\site-packages\matplotlib\tests\test_category.py | test_category.py | Python | 12,043 | 0.95 | 0.141994 | 0.030534 | awesome-app | 143 | 2024-10-04T06:55:20.689206 | MIT | true | b3db82d0e181076f14518d1cef46a242 |
from __future__ import annotations\n\nimport itertools\nimport pathlib\nimport pickle\nimport sys\n\nfrom typing import Any\nfrom unittest.mock import patch, Mock\n\nfrom datetime import datetime, date, timedelta\n\nimport numpy as np\nfrom numpy.testing import (assert_array_equal, assert_approx_equal,\n ... | .venv\Lib\site-packages\matplotlib\tests\test_cbook.py | test_cbook.py | Python | 33,530 | 0.95 | 0.159656 | 0.102941 | awesome-app | 389 | 2025-06-21T05:56:46.671965 | GPL-3.0 | true | e9e03a753b31e6a408bc777f89e8de52 |
from datetime import datetime\nimport io\nimport itertools\nimport platform\nimport re\nfrom types import SimpleNamespace\n\nimport numpy as np\nfrom numpy.testing import assert_array_equal, assert_array_almost_equal\nimport pytest\n\nimport matplotlib as mpl\nimport matplotlib.pyplot as plt\nimport matplotlib.collecti... | .venv\Lib\site-packages\matplotlib\tests\test_collections.py | test_collections.py | Python | 48,406 | 0.95 | 0.080808 | 0.089065 | awesome-app | 33 | 2025-05-30T21:47:08.507275 | BSD-3-Clause | true | 5fb44b81acd8417d0b3fcaa10b60d4a2 |
import platform\n\nimport numpy as np\nimport pytest\n\nfrom matplotlib import cm\nimport matplotlib.colors as mcolors\nimport matplotlib as mpl\n\n\nfrom matplotlib import rc_context\nfrom matplotlib.testing.decorators import image_comparison\nimport matplotlib.pyplot as plt\nfrom matplotlib.colors import (\n Bound... | .venv\Lib\site-packages\matplotlib\tests\test_colorbar.py | test_colorbar.py | Python | 46,711 | 0.95 | 0.1 | 0.130732 | node-utils | 415 | 2024-07-09T17:58:52.243068 | Apache-2.0 | true | cf79c69e3ff91da8e3c1d34360407164 |
import copy\nimport itertools\nimport unittest.mock\n\nfrom io import BytesIO\nimport numpy as np\nfrom PIL import Image\nimport pytest\nimport base64\n\nfrom numpy.testing import assert_array_equal, assert_array_almost_equal\n\nfrom matplotlib import cbook, cm\nimport matplotlib\nimport matplotlib as mpl\nimport matpl... | .venv\Lib\site-packages\matplotlib\tests\test_colors.py | test_colors.py | Python | 61,215 | 0.75 | 0.09502 | 0.104372 | node-utils | 944 | 2024-02-02T15:29:10.570465 | MIT | true | 0a36c65ad9f5ce664e901e6695080014 |
from pathlib import Path\nimport shutil\n\nimport pytest\nfrom pytest import approx\n\nfrom matplotlib.testing.compare import compare_images\nfrom matplotlib.testing.decorators import _image_directories\n\n\n# Tests of the image comparison algorithm.\n@pytest.mark.parametrize(\n 'im1, im2, tol, expect_rms',\n [\n... | .venv\Lib\site-packages\matplotlib\tests\test_compare_images.py | test_compare_images.py | Python | 3,260 | 0.95 | 0.054795 | 0.415385 | react-lib | 69 | 2023-08-10T11:32:48.280774 | BSD-3-Clause | true | ee8f457f96b4c521651fa6b90dfb46ac |
import gc\nimport platform\n\nimport numpy as np\nimport pytest\n\nimport matplotlib as mpl\nfrom matplotlib.testing.decorators import image_comparison\nimport matplotlib.pyplot as plt\nimport matplotlib.transforms as mtransforms\nfrom matplotlib import gridspec, ticker\n\n\npytestmark = [\n pytest.mark.usefixtures(... | .venv\Lib\site-packages\matplotlib\tests\test_constrainedlayout.py | test_constrainedlayout.py | Python | 23,602 | 0.95 | 0.135546 | 0.020833 | vue-tools | 168 | 2025-04-23T11:44:39.112256 | Apache-2.0 | true | 0c2cbbc501320980b9e592a2a4b4cb9c |
import numpy as np\nimport matplotlib.pyplot as plt\n\n\ndef test_stem_remove():\n ax = plt.gca()\n st = ax.stem([1, 2], [1, 2])\n st.remove()\n\n\ndef test_errorbar_remove():\n\n # Regression test for a bug that caused remove to fail when using\n # fmt='none'\n\n ax = plt.gca()\n\n eb = ax.errorba... | .venv\Lib\site-packages\matplotlib\tests\test_container.py | test_container.py | Python | 694 | 0.95 | 0.135135 | 0.125 | python-kit | 905 | 2024-02-18T19:09:00.226762 | BSD-3-Clause | true | 6172e8b71016f0fe0c0a08cef3bb017a |
import datetime\nimport platform\nimport re\nfrom unittest import mock\n\nimport contourpy\nimport numpy as np\nfrom numpy.testing import assert_array_almost_equal, assert_array_almost_equal_nulp\nimport matplotlib as mpl\nfrom matplotlib import pyplot as plt, rc_context, ticker\nfrom matplotlib.colors import LogNorm, ... | .venv\Lib\site-packages\matplotlib\tests\test_contour.py | test_contour.py | Python | 30,289 | 0.95 | 0.100119 | 0.095952 | react-lib | 384 | 2025-05-15T01:01:56.062027 | BSD-3-Clause | true | 4fe0a75f5885c398686f50f6bc82b1f2 |
import contextlib\nfrom io import StringIO\n\nimport matplotlib as mpl\nimport matplotlib.pyplot as plt\nimport numpy as np\nimport pytest\n\nfrom cycler import cycler\n\n\ndef test_colorcycle_basic():\n fig, ax = plt.subplots()\n ax.set_prop_cycle(cycler('color', ['r', 'g', 'y']))\n for _ in range(4):\n ... | .venv\Lib\site-packages\matplotlib\tests\test_cycles.py | test_cycles.py | Python | 5,996 | 0.95 | 0.205714 | 0.035461 | vue-tools | 767 | 2025-05-20T03:44:55.599496 | BSD-3-Clause | true | b4ee9af4223b552a729bc465ce5d0c23 |
import datetime\n\nimport dateutil.tz\nimport dateutil.rrule\nimport functools\nimport numpy as np\nimport pytest\n\nfrom matplotlib import rc_context, style\nimport matplotlib.dates as mdates\nimport matplotlib.pyplot as plt\nfrom matplotlib.testing.decorators import image_comparison\nimport matplotlib.ticker as mtick... | .venv\Lib\site-packages\matplotlib\tests\test_dates.py | test_dates.py | Python | 56,533 | 0.75 | 0.095541 | 0.06914 | react-lib | 759 | 2024-04-03T22:25:06.872291 | BSD-3-Clause | true | a5249533ab0e084dceaec92d96acc03e |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.