Repository Analysis

matplotlib/matplotlib

matplotlib: plotting with Python

12.5 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of matplotlib/matplotlib, a Python project with 22,993 GitHub stars. SynthScan v2.0 examined 381,246 lines of code across 1238 source files, recording 3656 pattern matches distributed across 20 syntactic categories. The overall adjusted score of 12.5 places this repository in the Low AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

12.5
Adjusted Score
12.5
Raw Score
100%
Time Factor
2026-07-11
Last Push
23.0K
Stars
Python
Language
381.2K
Lines of Code
1.2K
Files
3.7K
Pattern Hits
2026-07-14
Scan Date
0.03
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 4HIGH 33MEDIUM 575LOW 3044

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 3656 distinct pattern matches across 20 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Decorative Section Separators405 hits · 1240 pts
SeverityFileLineSnippetContext
MEDIUMtools/github_stats.py9# -----------------------------------------------------------------------------COMMENT
MEDIUMtools/github_stats.py11# -----------------------------------------------------------------------------COMMENT
MEDIUMtools/github_stats.py23# -----------------------------------------------------------------------------COMMENT
MEDIUMtools/github_stats.py25# -----------------------------------------------------------------------------COMMENT
MEDIUMtools/github_stats.py73# -----------------------------------------------------------------------------STRING
MEDIUMtools/github_stats.py75# -----------------------------------------------------------------------------STRING
MEDIUMtools/github_stats.py162# -----------------------------------------------------------------------------COMMENT
MEDIUMtools/github_stats.py164# -----------------------------------------------------------------------------COMMENT
MEDIUMlib/mpl_toolkits/mplot3d/axis3d.py518 # ----------------------------------------------------------------------COMMENT
MEDIUMlib/mpl_toolkits/mplot3d/axis3d.py532 # ---------------------------------------------------------------------COMMENT
MEDIUMlib/mpl_toolkits/mplot3d/tests/test_axes3d.py2881# =============================================================================COMMENT
MEDIUMlib/mpl_toolkits/mplot3d/tests/test_axes3d.py2883# =============================================================================COMMENT
MEDIUMlib/matplotlib/streamplot.py304# ========================COMMENT
MEDIUMlib/matplotlib/streamplot.py490# =======================COMMENT
MEDIUMlib/matplotlib/streamplot.py688# ========================COMMENT
MEDIUMlib/matplotlib/sphinxext/plot_directive.py220# -----------------------------------------------------------------------------COMMENT
MEDIUMlib/matplotlib/sphinxext/plot_directive.py222# -----------------------------------------------------------------------------COMMENT
MEDIUMlib/matplotlib/sphinxext/plot_directive.py346# -----------------------------------------------------------------------------COMMENT
MEDIUMlib/matplotlib/sphinxext/plot_directive.py348# -----------------------------------------------------------------------------COMMENT
MEDIUMlib/matplotlib/sphinxext/plot_directive.py370# -----------------------------------------------------------------------------COMMENT
MEDIUMlib/matplotlib/sphinxext/plot_directive.py372# -----------------------------------------------------------------------------COMMENT
MEDIUMlib/matplotlib/sphinxext/plot_directive.py409# -----------------------------------------------------------------------------COMMENT
MEDIUMlib/matplotlib/sphinxext/plot_directive.py411# -----------------------------------------------------------------------------COMMENT
MEDIUMlib/matplotlib/backends/backend_svg.py31# ----------------------------------------------------------------------COMMENT
MEDIUMlib/matplotlib/backends/backend_svg.py40# --------------------------------------------------------------------COMMENT
MEDIUMlib/matplotlib/backends/backend_svg.py66# --------------------------------------------------------------------COMMENT
MEDIUMlib/matplotlib/tests/test_backend_bases.py473 # ----------------------------COMMENT
MEDIUMlib/matplotlib/tests/test_backend_bases.py499 # ----------------------------COMMENT
MEDIUMlib/matplotlib/tests/test_colorbar.py168 # -------------------COMMENT
MEDIUMlib/matplotlib/tests/test_colorbar.py180 # -------------------COMMENT
MEDIUMlib/matplotlib/tests/test_colorbar.py198 # -------------------COMMENT
MEDIUMlib/matplotlib/style/__init__.py240# ==================COMMENT
MEDIUMdoc/conf.py98# ---------------------COMMENT
MEDIUMdoc/conf.py429# ----------------------------COMMENT
MEDIUMdoc/conf.py449# -----------------------COMMENT
MEDIUMdoc/conf.py610# ------------------------COMMENT
MEDIUMdoc/conf.py769# -----------------------------------------------------------------------------STRING
MEDIUMdoc/conf.py771# -----------------------------------------------------------------------------STRING
MEDIUMdoc/conf.py840# -----------------------------------------------------------------------------STRING
MEDIUMdoc/conf.py842# -----------------------------------------------------------------------------STRING
MEDIUMgalleries/users_explain/quick_start.py24# ================COMMENT
MEDIUMgalleries/users_explain/quick_start.py47# =================COMMENT
MEDIUMgalleries/users_explain/quick_start.py54# ----------------------------------COMMENT
MEDIUMgalleries/users_explain/quick_start.py78# ------------------------------COMMENT
MEDIUMgalleries/users_explain/quick_start.py95# ------------------------------COMMENT
MEDIUMgalleries/users_explain/quick_start.py105# ----------------------------------COMMENT
MEDIUMgalleries/users_explain/quick_start.py117# =====================================COMMENT
MEDIUMgalleries/users_explain/quick_start.py152# =============COMMENT
MEDIUMgalleries/users_explain/quick_start.py155# ----------------------------------------COMMENT
MEDIUMgalleries/users_explain/quick_start.py213# -------------------------COMMENT
MEDIUMgalleries/users_explain/quick_start.py243# ===============COMMENT
MEDIUMgalleries/users_explain/quick_start.py272# ---------------------------------------COMMENT
MEDIUMgalleries/users_explain/quick_start.py297# ===============COMMENT
MEDIUMgalleries/users_explain/quick_start.py300# --------------------COMMENT
MEDIUMgalleries/users_explain/quick_start.py331# --------------------------------------COMMENT
MEDIUMgalleries/users_explain/quick_start.py348# -----------COMMENT
MEDIUMgalleries/users_explain/quick_start.py388# =====================COMMENT
MEDIUMgalleries/users_explain/quick_start.py420# ----------------------------COMMENT
MEDIUMgalleries/users_explain/quick_start.py443# --------------------------COMMENT
MEDIUMgalleries/users_explain/quick_start.py478# ------------------------COMMENT
345 more matches not shown…
Hyper-Verbose Identifiers1342 hits · 1165 pts
SeverityFileLineSnippetContext
LOWtools/gh_api.py208def encode_multipart_formdata(fields, boundary=None):CODE
LOWtools/run_clang_tidy.py31def _filter_clang_tidy_output(text: str) -> str:CODE
LOWlib/mpl_toolkits/axes_grid1/axes_divider.py602def make_axes_area_auto_adjustable(CODE
LOWlib/mpl_toolkits/axes_grid1/tests/test_axes_grid1.py66def test_twin_axes_empty_and_removed():CODE
LOWlib/mpl_toolkits/axes_grid1/tests/test_axes_grid1.py93def test_twin_axes_both_with_units():CODE
LOWlib/mpl_toolkits/axes_grid1/tests/test_axes_grid1.py103def test_axesgrid_colorbar_log_smoketest():CODE
LOWlib/mpl_toolkits/axes_grid1/tests/test_axes_grid1.py118def test_inset_colorbar_tight_layout_smoketest():CODE
LOWlib/mpl_toolkits/axes_grid1/tests/test_axes_grid1.py347def test_zooming_with_inverted_axes():CODE
LOWlib/mpl_toolkits/axes_grid1/tests/test_axes_grid1.py363def test_anchored_direction_arrows():CODE
LOWlib/mpl_toolkits/axes_grid1/tests/test_axes_grid1.py373def test_anchored_direction_arrows_many_args():CODE
LOWlib/mpl_toolkits/axes_grid1/tests/test_axes_grid1.py385def test_axes_locatable_position():CODE
LOWlib/mpl_toolkits/axes_grid1/tests/test_axes_grid1.py397def test_image_grid_each_left_label_mode_all():CODE
LOWlib/mpl_toolkits/axes_grid1/tests/test_axes_grid1.py415def test_image_grid_single_bottom():CODE
LOWlib/mpl_toolkits/axes_grid1/tests/test_axes_grid1.py429def test_image_grid_label_mode_invalid():CODE
LOWlib/mpl_toolkits/axes_grid1/tests/test_axes_grid1.py465def test_gettightbbox_parasite():CODE
LOWlib/mpl_toolkits/axes_grid1/tests/test_axes_grid1.py493def test_picking_callbacks_overlap(big_on_axes, small_on_axes, click_on):CODE
LOWlib/mpl_toolkits/axes_grid1/tests/test_axes_grid1.py670def test_mark_inset_unstales_viewlim(fig_test, fig_ref):CODE
LOWlib/mpl_toolkits/axes_grid1/tests/test_axes_grid1.py716def test_imagegrid_cbar_mode_edge():CODE
LOWlib/mpl_toolkits/axes_grid1/tests/test_axes_grid1.py768def test_anchored_locator_base_call():CODE
LOWlib/mpl_toolkits/axes_grid1/tests/test_axes_grid1.py785def test_grid_with_axes_class_not_overriding_axis():CODE
LOWlib/mpl_toolkits/mplot3d/proj3d.py169def _scale_proj_transform_vectors(vecs, axes):CODE
LOWlib/mpl_toolkits/mplot3d/proj3d.py244def _scale_proj_transform_clip(xs, ys, zs, axes):CODE
LOWlib/mpl_toolkits/mplot3d/axes3d.py376 def _equal_aspect_axis_indices(self, aspect):CODE
LOWlib/mpl_toolkits/mplot3d/axes3d.py1398 def _set_lims_from_transformed(self, xmin_t, xmax_t, ymin_t, ymax_t,CODE
LOWlib/mpl_toolkits/mplot3d/axis3d.py317 def _get_axis_line_edge_points(self, minmax, maxmin, position=None):CODE
LOWlib/mpl_toolkits/mplot3d/axis3d.py341 def _get_all_axis_line_edge_points(self, minmax, maxmin, axis_position=None):CODE
LOWlib/mpl_toolkits/mplot3d/art3d.py884 def _maybe_depth_shade_and_sort_colors(self, color_array):CODE
LOWlib/mpl_toolkits/mplot3d/art3d.py1143 def _maybe_depth_shade_and_sort_colors(self, color_array):CODE
LOWlib/mpl_toolkits/mplot3d/tests/test_legend3d.py41def test_linecollection_scaled_dashes():CODE
LOWlib/mpl_toolkits/mplot3d/tests/test_legend3d.py70def test_contour_legend_elements():CODE
LOWlib/mpl_toolkits/mplot3d/tests/test_legend3d.py85def test_contourf_legend_elements():CODE
LOWlib/mpl_toolkits/mplot3d/tests/test_axes3d.py53def test_invisible_ticks_axis():CODE
LOWlib/mpl_toolkits/mplot3d/tests/test_axes3d.py77def test_axis_positions_inverted():CODE
LOWlib/mpl_toolkits/mplot3d/tests/test_axes3d.py572def test_marker_draw_order_data_reversed(fig_test, fig_ref, azim):CODE
LOWlib/mpl_toolkits/mplot3d/tests/test_axes3d.py592def test_marker_draw_order_view_rotated(fig_test, fig_ref):CODE
LOWlib/mpl_toolkits/mplot3d/tests/test_axes3d.py649def test_fill_between_polygon():CODE
LOWlib/mpl_toolkits/mplot3d/tests/test_axes3d.py993def test_patch_collection_modification(fig_test, fig_ref):CODE
LOWlib/mpl_toolkits/mplot3d/tests/test_axes3d.py1282def test_proj_axes_cube_ortho():CODE
LOWlib/mpl_toolkits/mplot3d/tests/test_axes3d.py2534def test_view_init_vertical_axis(CODE
LOWlib/mpl_toolkits/mplot3d/tests/test_axes3d.py2575def test_on_move_vertical_axis(vertical_axis: str) -> None:CODE
LOWlib/mpl_toolkits/mplot3d/tests/test_axes3d.py2606def test_set_box_aspect_vertical_axis(vertical_axis, aspect_expected):CODE
LOWlib/mpl_toolkits/mplot3d/tests/test_axes3d.py2639def test_mutating_input_arrays_y_and_z(fig_test, fig_ref):CODE
LOWlib/mpl_toolkits/mplot3d/tests/test_axes3d.py2664def test_scatter_masked_color():CODE
LOWlib/mpl_toolkits/mplot3d/tests/test_axes3d.py2714def test_ndarray_color_kwargs_value_error():CODE
LOWlib/mpl_toolkits/mplot3d/tests/test_axes3d.py2773def test_axis_get_tightbbox_includes_offset_text():CODE
LOWlib/mpl_toolkits/mplot3d/tests/test_axes3d.py3218def test_plot_surface_log_scale_invalid_values():CODE
LOWlib/mpl_toolkits/axisartist/axis_artist.py101 def get_attribute_from_ref_artist(self, attr_name):CODE
LOWlib/mpl_toolkits/axisartist/axis_artist.py605 def get_texts_widths_heights_descents(self, renderer):CODE
LOWlib/mpl_toolkits/axisartist/axis_artist.py796 def invert_ticklabel_direction(self):STRING
LOWlib/mpl_toolkits/axisartist/tests/test_axis_artist.py102def test_axisartist_tightbbox():CODE
LOWlib/mpl_toolkits/axisartist/tests/test_grid_finder.py9def test_find_line_box_crossings():CODE
LOWlib/mpl_toolkits/axisartist/tests/test_axislines.py104def test_axisline_style_size_color():CODE
LOWlib/mpl_toolkits/axisartist/tests/test_axislines.py120def test_axisline_style_tight():CODE
LOWlib/mpl_toolkits/axisartist/tests/test_floating_axes.py113def test_transform_with_zero_derivatives():CODE
LOWlib/matplotlib/transforms.py1407 def _iter_break_from_left_to_right(self):CODE
LOWlib/matplotlib/transforms.py1452 def contains_branch_separately(self, other_transform):CODE
LOWlib/matplotlib/transforms.py1471 def contains_branch_seperately(self, other_transform):CODE
LOWlib/matplotlib/transforms.py1672 def transform_path_non_affine(self, path):CODE
LOWlib/matplotlib/transforms.py1864 def transform_path_non_affine(self, path):CODE
LOWlib/matplotlib/transforms.py2200 def transform_path_non_affine(self, path):CODE
1282 more matches not shown…
Over-Commented Block929 hits · 894 pts
SeverityFileLineSnippetContext
LOWtools/boilerplate.py421 for item in tree.body:COMMENT
LOWtools/subset.py1#!/usr/bin/env pythonCOMMENT
LOWlib/mpl_toolkits/mplot3d/axis3d.py521 # and should not be in any way considered as "the way". There areCOMMENT
LOWlib/mpl_toolkits/mplot3d/art3d.py1021 ys = []COMMENT
LOWlib/mpl_toolkits/axisartist/floating_axes.py161 # def new_floating_axis(self, nth_coord, value, axes=None, axis_direction="bottom"):COMMENT
LOWlib/matplotlib/cbook.py2101COMMENT
LOWlib/matplotlib/cbook.py2141 for attr in kwargs:COMMENT
LOWlib/matplotlib/colorizer.py521COMMENT
LOWlib/matplotlib/legend.py881 # Each legend item is a HPacker packed with:COMMENT
LOWlib/matplotlib/figure.py2121COMMENT
LOWlib/matplotlib/__init__.py1261 # Nothing to do if the requested backend is already setCOMMENT
LOWlib/matplotlib/_mathtext.py921#COMMENT
LOWlib/matplotlib/dviread.py41# Many dvi related files are looked for by external processes, requireCOMMENT
LOWlib/matplotlib/dviread.py141COMMENT
LOWlib/matplotlib/dviread.py341 # pushCOMMENT
LOWlib/matplotlib/artist.py121 # Decorate draw() method so that all artists are able to stopCOMMENT
LOWlib/matplotlib/collections.py241 ParametersCOMMENT
LOWlib/matplotlib/rcsetup.py1461 # Path to ffmpeg binary. If just binary name, subprocess uses $PATH.COMMENT
LOWlib/matplotlib/rcsetup.py1501COMMENT
LOWlib/matplotlib/ticker.py2561 if n_request == 0: # No tick in bounds; two ticks just outside.COMMENT
LOWlib/matplotlib/ticker.py2721 # <======== -t ==0== t ========>COMMENT
LOWlib/matplotlib/tri/_trirefine.py221 refi_y[:npts] = yCOMMENT
LOWlib/matplotlib/tri/_triinterpolate.py41COMMENT
LOWlib/matplotlib/tri/_triinterpolate.py381 super().__init__(triangulation, z, trifinder)COMMENT
LOWlib/matplotlib/tri/_triinterpolate.py1361# provide fast numpy implementation of some standard operations on arrays ofCOMMENT
LOWlib/matplotlib/tri/_triinterpolate.py1381# *metric* (the metric tensor = J x J.T). Computation of the localCOMMENT
LOWlib/matplotlib/axes/_axes.py4641 # 'showfliers=False' but none-the-less deal with it to keep backCOMMENT
LOWlib/matplotlib/axes/_axes.py5461 # - respecting the fillestyle if setCOMMENT
LOWlib/matplotlib/axes/_base.py381COMMENT
LOWlib/matplotlib/backends/backend_template.py61COMMENT
LOWlib/matplotlib/backends/backend_pdf.py41from matplotlib import _pathCOMMENT
LOWlib/matplotlib/backends/backend_pdf.py61COMMENT
LOWlib/matplotlib/backends/backend_pdf.py1721 else:COMMENT
LOWlib/matplotlib/backends/backend_pdf.py2321 # serves two purposes:COMMENT
LOWlib/matplotlib/backends/backend_svg.py41# The SimpleXMLWriter module isCOMMENT
LOWlib/matplotlib/backends/backend_ps.py1441 shutil.move(epsfile, tmpfile)COMMENT
LOWlib/matplotlib/tests/test_tightlayout.py221 # 0.COMMENT
LOWlib/matplotlib/tests/test_image.py481 cmap_bivar = mpl.bivar_colormaps['BiOrangeBlue']COMMENT
LOWlib/matplotlib/tests/test_triangulation.py521COMMENT
LOWlib/matplotlib/tests/test_compare_images.py21 ('basn3p02.png', 'basn3p02-minorchange.png', 10, None),COMMENT
LOWlib/matplotlib/projections/polar.py861 self,COMMENT
LOWlib/matplotlib/testing/compare.py321 # NOTE: This check should be kept in sync with font styling inCOMMENT
LOWlib/matplotlib/testing/jpl_units/StrConverter.py61 # DISABLED: recalculate the unit conversion of the data valuesCOMMENT
LOWdoc/conf.py1# Matplotlib documentation build configuration file, created byCOMMENT
LOWdoc/conf.py401release = versionCOMMENT
LOWdoc/conf.py421# show_authors = FalseCOMMENT
LOWextern/agg24-svn/include/agg_span_interpolator_trans.h1//----------------------------------------------------------------------------COMMENT
LOWextern/agg24-svn/include/agg_span_interpolator_linear.h1//----------------------------------------------------------------------------COMMENT
LOWextern/agg24-svn/include/agg_rasterizer_sl_clip.h1//----------------------------------------------------------------------------COMMENT
LOWextern/agg24-svn/include/agg_conv_clip_polygon.h1//----------------------------------------------------------------------------COMMENT
LOWextern/agg24-svn/include/agg_conv_clip_polygon.h21// This is a sub-optimal solution, because that optimization would require COMMENT
LOWextern/agg24-svn/include/agg_path_storage.h1//----------------------------------------------------------------------------COMMENT
LOWextern/agg24-svn/include/agg_path_storage.h1521 };COMMENT
LOWextern/agg24-svn/include/agg_rasterizer_compound_aa.h1//----------------------------------------------------------------------------COMMENT
LOWextern/agg24-svn/include/agg_rasterizer_compound_aa.h21//COMMENT
LOWextern/agg24-svn/include/agg_conv_contour.h1//----------------------------------------------------------------------------COMMENT
LOWextern/agg24-svn/include/agg_span_pattern_rgba.h1//----------------------------------------------------------------------------COMMENT
LOWextern/agg24-svn/include/agg_config.h1#ifndef AGG_CONFIG_INCLUDEDCOMMENT
LOWextern/agg24-svn/include/agg_config.h21//COMMENT
LOWextern/agg24-svn/include/agg_config.h41// This #define is used only for default rendering_buffer type,COMMENT
869 more matches not shown…
Self-Referential Comments136 hits · 420 pts
SeverityFileLineSnippetContext
MEDIUMtools/boilerplate.py426 # The following methods are implemented outside of the mro of AxesCOMMENT
MEDIUMlib/mpl_toolkits/mplot3d/axes3d.py3964 # Create the main line and determine overall kwargs for child artists.COMMENT
MEDIUMlib/mpl_toolkits/mplot3d/tests/test_art3d.py55 # Create a mouse event used to locate and to get indexCOMMENT
MEDIUMlib/matplotlib/axis.py228 # This method is responsible for verifying input and, in subclasses, for settingCOMMENT
MEDIUMlib/matplotlib/axis.py847 # This method is directly wrapped by Axes.set_{x,y}scale.COMMENT
MEDIUMlib/matplotlib/backend_bases.py1576 # Create a synthetic LocationEvent for the axes_leave_event.COMMENT
MEDIUMlib/matplotlib/backend_bases.py3646 # The following methods will be automatically defined and exported, butCOMMENT
MEDIUMlib/matplotlib/backend_bases.py3704 # This method is the one actually exporting the required methods.COMMENT
MEDIUMlib/matplotlib/legend.py926 # Create the artist for the legend which represents theCOMMENT
MEDIUMlib/matplotlib/figure.py882 # Create a figureSTRING
MEDIUMlib/matplotlib/figure.py885 # Create a subplotSTRING
MEDIUMlib/matplotlib/inset.py272 # Create a temporary patch to draw the path.COMMENT
MEDIUMlib/matplotlib/lines.py79 # Define the inverse pattern by moving the last gap to the start of theCOMMENT
MEDIUMlib/matplotlib/widgets.py3690 # Create a new shapeCOMMENT
MEDIUMlib/matplotlib/dviread.py1097 # Create a filename -> PsfontsMap cache, so that callingCOMMENT
MEDIUMlib/matplotlib/animation.py1100 # Create a new sequence of frames for saved data. This is differentCOMMENT
MEDIUMlib/matplotlib/pyplot.py1435 # Creating a new full window AxesSTRING
MEDIUMlib/matplotlib/pyplot.py1438 # Creating a new Axes with specified dimensions and a grey backgroundSTRING
MEDIUMlib/matplotlib/_docstring.py139# Create a decorator that will house the various docstring snippets reusedCOMMENT
MEDIUMlib/matplotlib/image.py409 # Define the magnified bbox after clippingCOMMENT
MEDIUMlib/matplotlib/scale.py197 # This method is present only to prevent inheritance of the base class'STRING
MEDIUMlib/matplotlib/sankey.py688 # Create a patch with the Sankey outline.COMMENT
MEDIUMlib/matplotlib/axes/_axes.py4186 # Create the main line and determine overall kwargs for child artists.STRING
MEDIUMlib/matplotlib/backends/backend_template.py133# The following functions and classes are for pyplot and implementCOMMENT
MEDIUMlib/matplotlib/backends/backend_qt.py96 # Create a new QApplication and configure it if none exists yet, as onlyCOMMENT
MEDIUMlib/matplotlib/backends/backend_qt.py191 # Create a new timer and connect the timeout() signal to theCOMMENT
MEDIUMlib/matplotlib/backends/backend_cairo.py163 # Create the path for the marker; it needs to be flipped here already!COMMENT
MEDIUMlib/matplotlib/backends/backend_pdf.py785 # Create a new annotation of type textCOMMENT
MEDIUMlib/matplotlib/backends/backend_pdf.py2026 # Create a mapping from path_id to extent for efficient lookupCOMMENT
MEDIUMlib/matplotlib/backends/backend_pdf.py2252 # Create a transform to map the dvi contents to the canvas.COMMENT
MEDIUMlib/matplotlib/backends/backend_webagg_core.py489 # The following methods are specific to FigureManagerWebAggCOMMENT
MEDIUMlib/matplotlib/backends/backend_wx.py672 # Create a new, correctly sized bitmapCOMMENT
MEDIUMlib/matplotlib/backends/backend_webagg.py212 # Create the class instanceCOMMENT
MEDIUMlib/matplotlib/backends/qt_editor/_formlayout.py527 # Create a QApplication instance if no instance currently existsCOMMENT
MEDIUMlib/matplotlib/tests/test_skew.py68# This class handles registration of the skew-xaxes as a projection as wellCOMMENT
MEDIUMlib/matplotlib/tests/test_skew.py111 # Create the full transform from Data to PixelsCOMMENT
MEDIUMlib/matplotlib/tests/test_dates.py975 # Create a list of timezone-aware datetime objects in UTCCOMMENT
MEDIUMlib/matplotlib/tests/test_dates.py1043 # Define a date_range function similar to pandas.date_rangeCOMMENT
MEDIUMlib/matplotlib/tests/test_dates.py1049 # Define a tz_convert function that converts a list to a new timezone.COMMENT
MEDIUMlib/matplotlib/tests/test_dates.py1336 # Create a new one in a similar wayCOMMENT
MEDIUMlib/matplotlib/tests/test_pyplot.py539 # Create a figure with a specific number first.COMMENT
MEDIUMlib/matplotlib/tests/test_image.py717 # Create a figure of known size (1000x1000 pixels), place an imageCOMMENT
MEDIUMlib/matplotlib/tests/test_image.py788 # Create an image that is all black, with a gradient from 0-1 inCOMMENT
MEDIUMlib/matplotlib/tests/test_image.py1728 # Create a simple affine transform for scaling the input arrayCOMMENT
MEDIUMlib/matplotlib/tests/test_image.py1735 # Create a nonaffine version of the same transformCOMMENT
MEDIUMlib/matplotlib/tests/test_colorbar.py52 # Create a figure and adjust whitespace for subplots.COMMENT
MEDIUMlib/matplotlib/tests/test_colorbar.py61 # Create a subplot.COMMENT
MEDIUMlib/matplotlib/tests/test_colorbar.py84 # Create a figure and adjust whitespace for subplots.COMMENT
MEDIUMlib/matplotlib/tests/test_colorbar.py93 # Create a subplot.COMMENT
MEDIUMlib/matplotlib/tests/test_colorbar.py31 # Create a colormap and specify the levels it represents.COMMENT
MEDIUMlib/matplotlib/tests/test_colors.py882 # Define the test values which are of interest.COMMENT
MEDIUMlib/matplotlib/tests/test_colors.py1684 # Create the norm beforehand with different limits and then updateCOMMENT
MEDIUMlib/matplotlib/tests/test_datetime.py173 # Creating the plotCOMMENT
MEDIUMlib/matplotlib/tests/test_units.py49 # Create an instance of the conversion interface andCOMMENT
MEDIUMlib/matplotlib/tests/test_widgets.py1678 # Create a diamond (adjusting axes lims s.t. the diamond lies within axes limits).COMMENT
MEDIUMlib/matplotlib/tests/test_triangulation.py920 # Creating a TriangulationCOMMENT
MEDIUMlib/matplotlib/tests/test_backend_qt.py331 # Create a figureCOMMENT
MEDIUMlib/matplotlib/tests/test_collections.py1547 # Create a PathCollection with hatch colorsCOMMENT
MEDIUMlib/matplotlib/tests/test_axes.py1243 # Create an NxN imageCOMMENT
MEDIUMlib/matplotlib/tests/test_axes.py1250 # Create a contour plot at N/4 and extract both the clip path and transformCOMMENT
76 more matches not shown…
Unused Imports275 hits · 247 pts
SeverityFileLineSnippetContext
LOWlib/pylab.py1CODE
LOWlib/mpl_toolkits/axes_grid1/__init__.py1CODE
LOWlib/mpl_toolkits/axes_grid1/__init__.py2CODE
LOWlib/mpl_toolkits/axes_grid1/__init__.py2CODE
LOWlib/mpl_toolkits/axes_grid1/__init__.py2CODE
LOWlib/mpl_toolkits/axes_grid1/__init__.py3CODE
LOWlib/mpl_toolkits/axes_grid1/__init__.py3CODE
LOWlib/mpl_toolkits/axes_grid1/__init__.py3CODE
LOWlib/mpl_toolkits/axes_grid1/__init__.py5CODE
LOWlib/mpl_toolkits/axes_grid1/__init__.py5CODE
LOWlib/mpl_toolkits/axes_grid1/tests/conftest.py1CODE
LOWlib/mpl_toolkits/axes_grid1/tests/conftest.py1CODE
LOWlib/mpl_toolkits/axes_grid1/tests/conftest.py1CODE
LOWlib/mpl_toolkits/axes_grid1/tests/conftest.py1CODE
LOWlib/mpl_toolkits/mplot3d/__init__.py1CODE
LOWlib/mpl_toolkits/mplot3d/tests/conftest.py1CODE
LOWlib/mpl_toolkits/mplot3d/tests/conftest.py1CODE
LOWlib/mpl_toolkits/mplot3d/tests/conftest.py1CODE
LOWlib/mpl_toolkits/mplot3d/tests/conftest.py1CODE
LOWlib/mpl_toolkits/axisartist/axislines.py51CODE
LOWlib/mpl_toolkits/axisartist/__init__.py2CODE
LOWlib/mpl_toolkits/axisartist/__init__.py2CODE
LOWlib/mpl_toolkits/axisartist/__init__.py2CODE
LOWlib/mpl_toolkits/axisartist/__init__.py2CODE
LOWlib/mpl_toolkits/axisartist/__init__.py2CODE
LOWlib/mpl_toolkits/axisartist/__init__.py2CODE
LOWlib/mpl_toolkits/axisartist/__init__.py2CODE
LOWlib/mpl_toolkits/axisartist/__init__.py5CODE
LOWlib/mpl_toolkits/axisartist/__init__.py5CODE
LOWlib/mpl_toolkits/axisartist/__init__.py6CODE
LOWlib/mpl_toolkits/axisartist/__init__.py7CODE
LOWlib/mpl_toolkits/axisartist/__init__.py7CODE
LOWlib/mpl_toolkits/axisartist/axes_divider.py1CODE
LOWlib/mpl_toolkits/axisartist/axes_divider.py1CODE
LOWlib/mpl_toolkits/axisartist/axes_divider.py1CODE
LOWlib/mpl_toolkits/axisartist/axes_divider.py1CODE
LOWlib/mpl_toolkits/axisartist/tests/conftest.py1CODE
LOWlib/mpl_toolkits/axisartist/tests/conftest.py1CODE
LOWlib/mpl_toolkits/axisartist/tests/conftest.py1CODE
LOWlib/mpl_toolkits/axisartist/tests/conftest.py1CODE
LOWlib/matplotlib/pylab.py24CODE
LOWlib/matplotlib/pylab.py24CODE
LOWlib/matplotlib/pylab.py26CODE
LOWlib/matplotlib/pylab.py28CODE
LOWlib/matplotlib/pylab.py28CODE
LOWlib/matplotlib/pylab.py28CODE
LOWlib/matplotlib/pylab.py28CODE
LOWlib/matplotlib/pylab.py28CODE
LOWlib/matplotlib/pylab.py28CODE
LOWlib/matplotlib/pylab.py28CODE
LOWlib/matplotlib/pylab.py28CODE
LOWlib/matplotlib/pylab.py28CODE
LOWlib/matplotlib/pylab.py28CODE
LOWlib/matplotlib/pylab.py28CODE
LOWlib/matplotlib/pylab.py28CODE
LOWlib/matplotlib/pylab.py28CODE
LOWlib/matplotlib/pylab.py28CODE
LOWlib/matplotlib/pylab.py28CODE
LOWlib/matplotlib/pylab.py28CODE
LOWlib/matplotlib/pylab.py28CODE
215 more matches not shown…
Deep Nesting246 hits · 235 pts
SeverityFileLineSnippetContext
LOWtools/boilerplate.py89CODE
LOWtools/triage_tests.py211CODE
LOWtools/run_examples.py44CODE
LOWtools/subset.py59CODE
LOWtools/visualize_tests.py58CODE
LOWtools/check_typehints.py86CODE
LOWtools/check_typehints.py191CODE
LOWtools/check_typehints.py283CODE
LOWtools/stubtest.py30CODE
LOWtools/stubtest.py61CODE
LOWlib/mpl_toolkits/axes_grid1/inset_locator.py119CODE
LOWlib/mpl_toolkits/axes_grid1/axes_grid.py298CODE
LOWlib/mpl_toolkits/axes_grid1/axes_grid.py403CODE
LOWlib/mpl_toolkits/mplot3d/axes3d.py298CODE
LOWlib/mpl_toolkits/mplot3d/axes3d.py376CODE
LOWlib/mpl_toolkits/mplot3d/axes3d.py456CODE
LOWlib/mpl_toolkits/mplot3d/axes3d.py569CODE
LOWlib/mpl_toolkits/mplot3d/axes3d.py693CODE
LOWlib/mpl_toolkits/mplot3d/axes3d.py1753CODE
LOWlib/mpl_toolkits/mplot3d/axes3d.py2376CODE
LOWlib/mpl_toolkits/mplot3d/axes3d.py3073CODE
LOWlib/mpl_toolkits/mplot3d/axes3d.py3612CODE
LOWlib/mpl_toolkits/mplot3d/axes3d.py4160CODE
LOWlib/mpl_toolkits/mplot3d/axis3d.py269CODE
LOWlib/mpl_toolkits/mplot3d/art3d.py41CODE
LOWlib/mpl_toolkits/axisartist/grid_finder.py172CODE
LOWlib/mpl_toolkits/axisartist/axis_artist.py484CODE
LOWlib/mpl_toolkits/axisartist/angle_helper.py221CODE
LOWlib/matplotlib/_tight_layout.py160CODE
LOWlib/matplotlib/axis.py1034CODE
LOWlib/matplotlib/axis.py1172CODE
LOWlib/matplotlib/axis.py1654CODE
LOWlib/matplotlib/axis.py2735CODE
LOWlib/matplotlib/axis.py2967CODE
LOWlib/matplotlib/quiver.py441CODE
LOWlib/matplotlib/backend_bases.py1560CODE
LOWlib/matplotlib/backend_bases.py2475CODE
LOWlib/matplotlib/backend_bases.py2147CODE
LOWlib/matplotlib/backend_bases.py3085CODE
LOWlib/matplotlib/backend_bases.py3495CODE
LOWlib/matplotlib/colorbar.py843CODE
LOWlib/matplotlib/colorbar.py1179CODE
LOWlib/matplotlib/colorbar.py1285CODE
LOWlib/matplotlib/_style_helpers.py18CODE
LOWlib/matplotlib/cbook.py62CODE
LOWlib/matplotlib/cbook.py496CODE
LOWlib/matplotlib/cbook.py597CODE
LOWlib/matplotlib/cbook.py711CODE
LOWlib/matplotlib/cbook.py739CODE
LOWlib/matplotlib/cbook.py972CODE
LOWlib/matplotlib/cbook.py1049CODE
LOWlib/matplotlib/cbook.py1424CODE
LOWlib/matplotlib/cbook.py1795CODE
LOWlib/matplotlib/cbook.py337CODE
LOWlib/matplotlib/cbook.py376CODE
LOWlib/matplotlib/cbook.py757CODE
LOWlib/matplotlib/cbook.py780CODE
LOWlib/matplotlib/colorizer.py836CODE
LOWlib/matplotlib/colorizer.py562CODE
LOWlib/matplotlib/font_manager.py220CODE
186 more matches not shown…
AI Structural Patterns112 hits · 90 pts
SeverityFileLineSnippetContext
LOWlib/mpl_toolkits/axes_grid1/axes_grid.py61CODE
LOWlib/mpl_toolkits/axes_grid1/axes_grid.py298CODE
LOWlib/mpl_toolkits/axes_grid1/anchored_artists.py128CODE
LOWlib/mpl_toolkits/axes_grid1/anchored_artists.py245CODE
LOWlib/mpl_toolkits/mplot3d/axes3d.py85CODE
LOWlib/mpl_toolkits/mplot3d/axes3d.py832CODE
LOWlib/mpl_toolkits/mplot3d/axes3d.py3828CODE
LOWlib/matplotlib/axis.py70CODE
LOWlib/matplotlib/quiver.py283CODE
LOWlib/matplotlib/quiver.py517CODE
LOWlib/matplotlib/quiver.py942CODE
LOWlib/matplotlib/backend_bases.py2147CODE
LOWlib/matplotlib/colorbar.py237CODE
LOWlib/matplotlib/font_manager.py765CODE
LOWlib/matplotlib/legend.py375CODE
LOWlib/matplotlib/figure.py792CODE
LOWlib/matplotlib/figure.py1906CODE
LOWlib/matplotlib/figure.py2470CODE
LOWlib/matplotlib/figure.py3032CODE
LOWlib/matplotlib/_mathtext.py3054CODE
LOWlib/matplotlib/offsetbox.py1223CODE
LOWlib/matplotlib/offsetbox.py1306CODE
LOWlib/matplotlib/gridspec.py314CODE
LOWlib/matplotlib/lines.py301CODE
LOWlib/matplotlib/widgets.py396CODE
LOWlib/matplotlib/widgets.py667CODE
LOWlib/matplotlib/widgets.py2768CODE
LOWlib/matplotlib/widgets.py3408CODE
LOWlib/matplotlib/widgets.py4079CODE
LOWlib/matplotlib/animation.py756CODE
LOWlib/matplotlib/animation.py947CODE
LOWlib/matplotlib/patches.py48CODE
LOWlib/matplotlib/patches.py4303CODE
LOWlib/matplotlib/patches.py4671CODE
LOWlib/matplotlib/patches.py3446CODE
LOWlib/matplotlib/collections.py79CODE
LOWlib/matplotlib/text.py158CODE
LOWlib/matplotlib/text.py213CODE
LOWlib/matplotlib/mlab.py223CODE
LOWlib/matplotlib/mlab.py480CODE
LOWlib/matplotlib/mlab.py536CODE
LOWlib/matplotlib/mlab.py656CODE
LOWlib/matplotlib/mlab.py739CODE
LOWlib/matplotlib/mlab.py929CODE
LOWlib/matplotlib/table.py658CODE
LOWlib/matplotlib/pyplot.py900CODE
LOWlib/matplotlib/pyplot.py1675CODE
LOWlib/matplotlib/pyplot.py1692CODE
LOWlib/matplotlib/pyplot.py1709CODE
LOWlib/matplotlib/pyplot.py1725CODE
LOWlib/matplotlib/pyplot.py1892CODE
LOWlib/matplotlib/pyplot.py1908CODE
LOWlib/matplotlib/pyplot.py1924CODE
LOWlib/matplotlib/pyplot.py1939CODE
LOWlib/matplotlib/pyplot.py2253CODE
LOWlib/matplotlib/pyplot.py2308CODE
LOWlib/matplotlib/pyplot.py2680CODE
LOWlib/matplotlib/pyplot.py2888CODE
LOWlib/matplotlib/pyplot.py3198CODE
LOWlib/matplotlib/pyplot.py3292CODE
52 more matches not shown…
AI Slop Vocabulary49 hits · 86 pts
SeverityFileLineSnippetContext
LOWlib/mpl_toolkits/mplot3d/axes3d.py706 # if image data only just use the datalimCOMMENT
LOWlib/mpl_toolkits/mplot3d/art3d.py241 # For now, just return None to exclude from layout calculation.COMMENT
LOWlib/matplotlib/transforms.py123 # either just return the name of this TransformNode, or its reprCOMMENT
LOWlib/matplotlib/transforms.py949 # The y-component in np.array([x, *y*]).T is not used. We simply passCOMMENT
LOWlib/matplotlib/transforms.py969 # The x-component in np.array([*x*, y]).T is not used. We simply passCOMMENT
LOWlib/matplotlib/transforms.py1467 # just return the appropriate shape.COMMENT
LOWlib/matplotlib/axis.py1320 # and use it if it's available (else just use 0..1)COMMENT
MEDIUMlib/matplotlib/font_manager.py541 # Percentage values are in 'em's. Most robust specification.COMMENT
MEDIUMlib/matplotlib/font_manager.py688 # Percentage values are in 'em's. Most robust specification.COMMENT
LOWlib/matplotlib/_afm.py95 # Given that there is actually no public API to even access this field, just returnCOMMENT
LOWlib/matplotlib/cm.py220 # if the user passed in a Colormap, simply return itSTRING
LOWlib/matplotlib/figure.py1674 # subfigure, just return it instead of a 1-element array.COMMENT
LOWlib/matplotlib/_mathtext.py159 # Ideally, we could just use self.glyphs and self.rects here, shiftingSTRING
LOWlib/matplotlib/gridspec.py297 # subplot, just return it instead of a 1-element array.COMMENT
LOWlib/matplotlib/lines.py172 # just return, we are done hereCOMMENT
LOWlib/matplotlib/lines.py215 # mazol tov, it's already a slice, just returnCOMMENT
LOWlib/matplotlib/animation.py502 # This frame has transparency, so we'll just add it as is.COMMENT
MEDIUMlib/matplotlib/animation.py1201 # The rest of the code in this class is to facilitate easy blittingCOMMENT
LOWlib/matplotlib/animation.py1683 # is passed in for frames, just use itertools.count, which will justCOMMENT
LOWlib/matplotlib/artist.py788 # if this is a no-op just returnCOMMENT
LOWlib/matplotlib/collections.py259 # b. transform is not a child of transData: just use the offsetsCOMMENT
LOWlib/matplotlib/collections.py308 # those shapes, so we just set the limits based on theirCOMMENT
LOWlib/matplotlib/text.py816 # Only one word, so just add it to the endCOMMENT
LOWlib/matplotlib/dates.py1210 return -1 # or should this just return '1'?CODE
MEDIUMlib/matplotlib/patheffects.py114 # effect in turn. Essentially, we induce recursion (depth 1) which isCOMMENT
MEDIUMlib/matplotlib/patheffects.py132 # effect in turn. Essentially, we induce recursion (depth 1) which isCOMMENT
LOWlib/matplotlib/tri/_triinterpolate.py1386# is safe to simply return the null matrix (which is the implementation inCOMMENT
MEDIUMlib/matplotlib/backends/backend_svg.py55# pertaining to distribution of the software without specific, writtenCOMMENT
LOWlib/matplotlib/backends/backend_qtagg.py74 # full draw in Qt, so just set the flag for next time.COMMENT
LOWlib/matplotlib/tests/test_sankey.py9 # let's just create a sankey instance and check the code runsCOMMENT
MEDIUMlib/matplotlib/tests/test_axes.py5718 # test that it is robust against pan/zoom andCOMMENT
LOWlib/matplotlib/tests/test_legend.py353 # it's a common error to just pass handlesCOMMENT
LOWlib/matplotlib/projections/polar.py410 # LinearScale.set_default_locators_and_formatters just set the majorSTRING
LOWgalleries/users_explain/customizing.py144# good in a presentation, you can just add::COMMENT
MEDIUMgalleries/users_explain/axes/colorbar_placement.py71# paradigm. Note that this example works far better withCOMMENT
LOWgalleries/users_explain/axes/tight_layout_guide.py237# remove the legend from the bounding box calculation, we simply set itsCOMMENT
LOWgalleries/users_explain/artists/transforms_tutorial.py555# logarithmic axes. When an Axes is initially setup, this is just set toCOMMENT
MEDIUMgalleries/users_explain/text/annotations.py615# pixel (radius = 10 pixel), you can utilizeCOMMENT
LOWgalleries/examples/statistics/boxplot_demo.py96# arrays. For code brevity, just use the same random indices for each arrayCOMMENT
LOWgalleries/examples/statistics/boxplot_demo.py166# (just use two decimal places of precision)COMMENT
LOWgalleries/examples/ticks/date_precision_and_epochs.py81# should just set the epoch once, if at all.COMMENT
LOW…es/examples/images_contours_and_fields/triplot_demo.py95# Rather than create a Triangulation object, can simply pass x, y and trianglesCOMMENT
LOW…examples/images_contours_and_fields/tricontour_demo.py135# Rather than create a Triangulation object, can simply pass x, y and trianglesCOMMENT
LOW…/examples/images_contours_and_fields/tripcolor_demo.py112# Rather than create a Triangulation object, can simply pass x, y and trianglesCOMMENT
LOW…es/examples/user_interfaces/embedding_webagg_sgskip.py54# framework, but here we just use Python string formatting.COMMENT
LOW…ies/examples/user_interfaces/embedding_in_qt_sgskip.py33 # incompatible between PyQt6 and other bindings, so we just add theCOMMENT
LOWgalleries/examples/widgets/annotated_cursor.py160 # If not, just return.COMMENT
LOWgalleries/tutorials/coding_shortcuts.py119# in fact you just pass the desired properties to the factory functions. You are likelyCOMMENT
MEDIUMgalleries/tutorials/artists.py162# animated A boolean that is used to facilitate animated drawingCOMMENT
Cross-File Repetition17 hits · 85 pts
SeverityFileLineSnippetContext
HIGHlib/matplotlib/inset.py0set the linestyle(s) for the collection. parameters ---------- ls : {'-', '--', '-.', ':', '', ...} or (offset, on-off-sSTRING
HIGHlib/matplotlib/lines.py0set the linestyle(s) for the collection. parameters ---------- ls : {'-', '--', '-.', ':', '', ...} or (offset, on-off-sSTRING
HIGHlib/matplotlib/patches.py0set the linestyle(s) for the collection. parameters ---------- ls : {'-', '--', '-.', ':', '', ...} or (offset, on-off-sSTRING
HIGHlib/matplotlib/collections.py0set the linestyle(s) for the collection. parameters ---------- ls : {'-', '--', '-.', ':', '', ...} or (offset, on-off-sSTRING
HIGHlib/matplotlib/lines.py0set a color to fill the gaps in the dashed line style. .. note:: striped lines are created by drawing two interleaved daSTRING
HIGHlib/matplotlib/patches.py0set a color to fill the gaps in the dashed line style. .. note:: striped lines are created by drawing two interleaved daSTRING
HIGHlib/matplotlib/collections.py0set a color to fill the gaps in the dashed line style. .. note:: striped lines are created by drawing two interleaved daSTRING
HIGHlib/matplotlib/projections/geo.py0used to format the *theta* tick labels. converts the native unit of radians into degrees and adds a degree symbol.STRING
HIGHgalleries/examples/misc/custom_projection.py0used to format the *theta* tick labels. converts the native unit of radians into degrees and adds a degree symbol.STRING
HIGHlib/matplotlib/projections/polar.py0used to format the *theta* tick labels. converts the native unit of radians into degrees and adds a degree symbol.STRING
HIGHgalleries/users_explain/axes/axes_ticks.py0set up common parameters for the axes in the example.STRING
HIGHgalleries/examples/ticks/date_formatters_locators.py0set up common parameters for the axes in the example.STRING
HIGHgalleries/examples/ticks/tick-locators.py0set up common parameters for the axes in the example.STRING
HIGHgalleries/examples/ticks/tick-formatters.py0set up common parameters for the axes in the example.STRING
HIGH…es/examples/user_interfaces/embedding_in_wx2_sgskip.py0create the main window and insert the custom frame.STRING
HIGH…es/examples/user_interfaces/embedding_in_wx4_sgskip.py0create the main window and insert the custom frame.STRING
HIGH…eries/examples/user_interfaces/wxcursor_demo_sgskip.py0create the main window and insert the custom frame.STRING
Slop Phrases28 hits · 70 pts
SeverityFileLineSnippetContext
LOWlib/matplotlib/__init__.py1444 # make sure to keep message and test in syncCOMMENT
LOWlib/matplotlib/sphinxext/figmpl_directive.py177 # make sure to add the trailing slash:COMMENT
MEDIUMlib/matplotlib/backends/backend_pdf.py65# light PDF files you can use directly in LaTeX or ConTeXt documentsCOMMENT
LOWlib/matplotlib/backends/backend_agg.py440 # don't forget to call the superclass.COMMENT
LOWlib/matplotlib/backends/backend_agg.py440 # don't forget to call the superclass.COMMENT
LOWdoc/conf.py256# make sure to ignore warnings that stem from simply inspecting deprecatedCOMMENT
MEDIUMgalleries/users_explain/quick_start.py486# Similarly, you can add a `~.Axes.secondary_xaxis` orCOMMENT
MEDIUMgalleries/users_explain/quick_start.py573# object references you can add Artists to either Figure.COMMENT
MEDIUMgalleries/users_explain/axes/arranging_axes.py333# When a *GridSpec* is explicitly used, you can adjust the layoutCOMMENT
MEDIUMgalleries/users_explain/axes/mosaic.py125# Alternatively, you can use the more compact string notationSTRING
MEDIUMgalleries/users_explain/axes/mosaic.py265# Alternatively, you can use the sub-Figure functionality:COMMENT
MEDIUMgalleries/users_explain/colors/colormapnorms.py292# you can change the scale by calling ``cb.ax.set_yscale('linear')``, as shownCOMMENT
MEDIUMgalleries/users_explain/colors/colormapnorms.py315# If the above norms do not provide the normalization you want, you can useCOMMENT
MEDIUMgalleries/users_explain/artists/transforms_tutorial.py251# location remain fixed when you pan or zoom. Here is a simple example thatCOMMENT
MEDIUMgalleries/users_explain/text/mathtext.py280# Additionally, you can use ``\mathdefault{...}`` or its aliasSTRING
MEDIUMgalleries/examples/statistics/curve_error_band.py39# 2D. If you just have a standard y-vs.-x plot, you can use the simplerCOMMENT
MEDIUMgalleries/examples/statistics/bxp.py50# Conversely, you can also use the `~.axes.Axes.bxp` function directly, if you alreadyCOMMENT
MEDIUMgalleries/examples/ticks/date_index_formatter.py65# Instead of passing a function into `.Axis.set_major_formatter` you can useCOMMENT
LOW…lleries/examples/ticks/colorbar_tick_labelling_demo.py30# Add colorbar, make sure to specify tick locations to match desired ticklabelsCOMMENT
MEDIUM…es/examples/images_contours_and_fields/contour_demo.py75# Or you can use a colormap to specify the colors; the defaultCOMMENT
LOWgalleries/examples/lines_bars_and_markers/hat_graph.py46# Initialise labels and a numpy array make sure you haveCOMMENT
MEDIUMgalleries/tutorials/images.py108# Note that you can also change colormaps on existing plot objects using theCOMMENT
MEDIUMgalleries/tutorials/pyplot.py375# :ref:`mathtext`. Thus, you can use mathematical text acrossCOMMENT
MEDIUMgalleries/tutorials/pyplot.py377# and dvipng installed, you can also use LaTeX to format your text andCOMMENT
MEDIUMgalleries/tutorials/pyplot.py315# stateful wrapper around an object-oriented API, which you can useCOMMENT
MEDIUMgalleries/tutorials/artists.py148# which you can use to set the background color and transparency of theCOMMENT
MEDIUMgalleries/tutorials/artists.py187# If you want to set a number of properties at once, you can also useCOMMENT
MEDIUMgalleries/tutorials/artists.py317# attributes, which you can use to add primitives directly. When doing so, theCOMMENT
Cross-Language Confusion11 hits · 58 pts
SeverityFileLineSnippetContext
HIGHlib/matplotlib/backend_bases.py3354 self._nav_stack.push(CODE
HIGHlib/matplotlib/cbook.py708 return self.push(self._elements[0]) if self._elements else NoneCODE
HIGHlib/matplotlib/_animation_data.py9 return ua.indexOf("MSIE ") > -1 || ua.indexOf("Trident/") > -1;CODE
HIGHlib/matplotlib/_animation_data.py20 this.timer = null;CODE
HIGHlib/matplotlib/_animation_data.py35 slider.setAttribute('oninput', null);CODE
HIGHlib/matplotlib/_animation_data.py48 return undefined;CODE
HIGHlib/matplotlib/_animation_data.py135 this.timer = null;CODE
HIGHlib/matplotlib/backends/_backend_gtk.py216 # Running after quit is undefined, so create a new one next time.COMMENT
HIGHlib/matplotlib/backends/backend_pdf.py2033 output(*self.gc.push())CODE
HIGHlib/matplotlib/backends/backend_pdf.py2519 cmds.extend(self.push())CODE
HIGH…lleries/examples/user_interfaces/svg_tooltip_sgskip.py87 if ( window.svgDocument == null ) {CODE
Hallucination Indicators4 hits · 40 pts
SeverityFileLineSnippetContext
CRITICALlib/matplotlib/backend_bases.py3383 self.subplot_tool.figure.canvas.manager.show()CODE
CRITICALdoc/sphinxext/rcparams.py19 self.state.document.settings.env.note_dependency(__file__)CODE
CRITICALdoc/sphinxext/rcparams.py20 self.state.document.settings.env.note_dependency(rcsetup.__file__)CODE
CRITICAL…lleries/examples/event_handling/image_slices_viewer.py41 self.im.axes.figure.canvas.draw()CODE
Excessive Try-Catch Wrapping40 hits · 39 pts
SeverityFileLineSnippetContext
LOWtools/gh_api.py44 except Exception:CODE
LOWtools/subset.py55 except Exception:CODE
LOWtools/visualize_tests.py148 except Exception:STRING
LOWlib/matplotlib/axis.py2040 except Exception as e:STRING
LOWlib/matplotlib/backend_bases.py1589 except Exception:CODE
LOWlib/matplotlib/cbook.py392 except Exception as exc:CODE
LOWlib/matplotlib/cbook.py2490 except Exception:CODE
LOWlib/matplotlib/font_manager.py136except Exception: # Exceptions thrown by home() are not specified...CODE
LOWlib/matplotlib/font_manager.py1213 except Exception as exc:CODE
LOWlib/matplotlib/font_manager.py1790 except Exception:CODE
LOWlib/matplotlib/__init__.py935 except Exception as msg:CODE
LOWlib/matplotlib/__init__.py1393 except Exception:STRING
MEDIUMlib/matplotlib/__init__.py853def _get_ssl_context():CODE
LOWlib/matplotlib/artist.py1770 except Exception:CODE
LOWlib/matplotlib/table.py362 except Exception as err:CODE
LOWlib/matplotlib/rcsetup.py133 except Exception:CODE
LOWlib/matplotlib/rcsetup.py926 except Exception as e:CODE
LOWlib/matplotlib/colors.py681 except Exception as err:STRING
LOWlib/matplotlib/colors.py1228 except Exception as e:CODE
LOWlib/matplotlib/colors.py1233 except Exception as e2:CODE
LOWlib/matplotlib/axes/_axes.py3048 except Exception:STRING
LOWlib/matplotlib/sphinxext/mathmpl.py136 except Exception:STRING
LOWlib/matplotlib/sphinxext/plot_directive.py306 except Exception as e:CODE
LOWlib/matplotlib/sphinxext/plot_directive.py782 except Exception as err:STRING
LOWlib/matplotlib/backends/backend_qt.py527 except Exception:CODE
LOWlib/matplotlib/backends/backend_qt.py967 except Exception as e:CODE
LOWlib/matplotlib/backends/registry.py408 except Exception: # KeyError ?CODE
LOWlib/matplotlib/backends/backend_pgf.py351 except Exception as err:CODE
LOWlib/matplotlib/backends/backend_gtk4.py427 except Exception as e:CODE
MEDIUMlib/matplotlib/backends/backend_gtk4.py317def idle_draw(*args):CODE
LOWlib/matplotlib/backends/backend_gtk3.py396 except Exception as e:CODE
LOWlib/matplotlib/backends/backend_wx.py1164 except Exception as e:CODE
LOWlib/matplotlib/backends/_backend_tk.py957 except Exception as e:CODE
MEDIUMlib/matplotlib/backends/_backend_tk.py494def set_cursor(self, cursor):CODE
LOWlib/matplotlib/tests/test_backends_interactive.py728 except Exception:CODE
LOWlib/matplotlib/tests/test_backends_interactive.py790 except Exception:CODE
LOWlib/matplotlib/tests/test_font_manager.py405 except Exception:CODE
LOWlib/matplotlib/projections/__init__.py61except Exception:CODE
LOWgalleries/examples/units/basic_units.py99 except Exception:CODE
LOWgalleries/examples/lines_bars_and_markers/timeline.py37except Exception:CODE
Redundant / Tautological Comments27 hits · 38 pts
SeverityFileLineSnippetContext
LOWtools/stubtest.py101 # Assign parents to tree so they can be backtracedCOMMENT
LOWlib/matplotlib/axis.py1420 # Check if major ticks should be computed.COMMENT
LOWlib/matplotlib/axis.py1434 # Check if minor ticks should be computed.COMMENT
LOWlib/matplotlib/cbook.py1454 # Iterate over list of iterables.COMMENT
LOWlib/matplotlib/widgets.py3047 # Check if we've clicked inside the regionCOMMENT
LOWlib/matplotlib/widgets.py3853 # Check if we've clicked inside the regionCOMMENT
LOWlib/matplotlib/table.py758 # Check if we have a Pandas DataFrameSTRING
LOWlib/matplotlib/ticker.py2746 # Check if linear range is presentCOMMENT
LOWlib/matplotlib/contour.py504 # Check if long enough for a labelCOMMENT
LOWlib/matplotlib/streamplot.py201 # Check if start_points are outside the data boundariesCOMMENT
LOWlib/matplotlib/colors.py3675 # Check if input is in the expected rangeCOMMENT
LOWlib/matplotlib/axes/_axes.py7576 # Loop through datasetsSTRING
LOWlib/matplotlib/backends/backend_gtk3cairo.py26 # Set renderer to physical size so it renders in full resolution.COMMENT
LOWlib/matplotlib/backends/registry.py103 # Check if have specific name to module mapping.COMMENT
LOWlib/matplotlib/tests/test_backend_bases.py581 # Check if twin-axes are properly triggeredCOMMENT
LOWlib/matplotlib/tests/test_dates.py1322 # Set it to IcelandCOMMENT
LOWlib/matplotlib/tests/test_patches.py1124 # Set back to NoneCOMMENT
LOWlib/matplotlib/tests/test_collections.py1334 # Check if masked data is respected by scatterCOMMENT
LOWlib/matplotlib/tests/test_axes.py660 # Set enable to NoneCOMMENT
LOWlib/matplotlib/tests/test_axes.py9034 ax.plot([.4, .6], [.4, .6]) # Set minpos to keep logit happy.CODE
LOWlib/matplotlib/tests/test_axes.py9047 ax.plot([.4, .6], [.4, .6]) # Set minpos to keep logit happy.CODE
LOWlib/matplotlib/tests/test_matplotlib.py104 # Set USERPROFILE to tmp_path so the old location check finds nothingCOMMENT
LOWgalleries/examples/statistics/errorbars_and_boxes.py46 # Loop over data points; create box from errors at each pointCOMMENT
LOW…/images_contours_and_fields/image_annotated_heatmap.py70# Loop over data dimensions and create text annotations.COMMENT
LOW…/images_contours_and_fields/image_annotated_heatmap.py203 # Loop over the data and create a `Text` for each "pixel".COMMENT
LOWgalleries/examples/widgets/annotated_cursor.py159 # Check if the display of text is still necessary.COMMENT
LOW.circleci/config.yml141 # Set epoch to date of latest tag.COMMENT
AI Response Leakage5 hits · 32 pts
SeverityFileLineSnippetContext
HIGHgalleries/users_explain/axes/constrainedlayout_guide.py685# simple ways. In this example the left Axes has much larger decorationsCOMMENT
HIGHgalleries/users_explain/text/annotations.py58# In this example, both the *xy* (arrow tip) and *xytext* locationsSTRING
HIGHgalleries/examples/statistics/curve_error_band.py31# In this example we assume that the error can be given as a scalar *err*COMMENT
HIGH…lleries/examples/statistics/histogram_normalization.py144# extreme case where the bins do not have the same width. In this example, theCOMMENT
HIGHgalleries/examples/mplot3d/axlim_clip.py31# In this example, data where x < 0 or z > 0.5 is clippedCOMMENT
Modern Structural Boilerplate21 hits · 20 pts
SeverityFileLineSnippetContext
LOWlib/mpl_toolkits/axes_grid1/anchored_artists.py8__all__ = ['AnchoredDrawingArea', 'AnchoredAuxTransformBox',CODE
LOWlib/mpl_toolkits/axes_grid1/__init__.py7__all__ = ["Size",CODE
LOWlib/mpl_toolkits/mplot3d/__init__.py3__all__ = ['Axes3D']CODE
LOWlib/matplotlib/__init__.py104__all__ = [CODE
LOWlib/matplotlib/_mathtext.py1210 def _update_metrics(self) -> None:CODE
LOWlib/matplotlib/_mathtext.py1259 def _update_metrics(self) -> None:CODE
LOWlib/matplotlib/_mathtext.py2102 def set_names_and_parse_actions() -> None:STRING
LOWlib/matplotlib/stackplot.py14__all__ = ['stackplot']CODE
LOWlib/matplotlib/pyplot.py359def set_loglevel(level: LogLevel) -> None:CODE
LOWlib/matplotlib/pyplot.py2733def set_cmap(cmap: Colormap | str) -> None:CODE
LOWlib/matplotlib/streamplot.py15__all__ = ['streamplot']CODE
LOWlib/matplotlib/tri/__init__.py16__all__ = ["Triangulation",CODE
LOWlib/matplotlib/style/__init__.py27__all__ = ['use', 'context', 'available', 'library', 'reload_library']CODE
LOWlib/matplotlib/style/core.py22__all__ = [CODE
LOWlib/matplotlib/testing/compare.py27__all__ = ['calculate_rms', 'comparable_formats', 'compare_images']CODE
LOWlib/matplotlib/testing/jpl_units/UnitDblFormatter.py5__all__ = ['UnitDblFormatter']CODE
LOWlib/matplotlib/testing/jpl_units/EpochConverter.py6__all__ = ['EpochConverter']CODE
LOWlib/matplotlib/testing/jpl_units/__init__.py44__all__ = [CODE
LOWlib/matplotlib/testing/jpl_units/UnitDblConverter.py8__all__ = ['UnitDblConverter']CODE
LOWlib/matplotlib/testing/jpl_units/StrConverter.py7__all__ = ['StrConverter']CODE
LOWdoc/sphinxext/redirect_from.py40logger = logging.getLogger(__name__)CODE
Fake / Example Data6 hits · 8 pts
SeverityFileLineSnippetContext
LOWci/schemas/github-issue-forms.json45 "placeholder": {CODE
LOWci/schemas/github-issue-forms.json139 "placeholder": {CODE
LOWci/schemas/github-issue-forms.json1066 "placeholder": {CODE
LOWlib/matplotlib/tests/test_ticker.py397 dummy_data = [rng.normal(size=100), [], []]CODE
LOWlib/matplotlib/tests/test_ticker.py398 fig, axes = plt.subplots(len(dummy_data), sharex=True, sharey=True)CODE
LOWlib/matplotlib/tests/test_ticker.py400 for ax, data in zip(axes.flatten(), dummy_data):CODE
Verbosity Indicators1 hit · 2 pts
SeverityFileLineSnippetContext
LOWlib/matplotlib/artist.py568 # we need to check if mouseevent.inaxes is NoneCOMMENT
TODO Padding1 hit · 2 pts
SeverityFileLineSnippetContext
LOW…n/agg24-svn/src/platform/BeOS/agg_platform_support.cpp917 // TODO: implement using BTranslatorRoster and friendsCOMMENT
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippetContext
LOWlib/matplotlib/tests/test_text.py887 def helper():CODE