Miscellaneous removals#

  • is_url and URL_REGEX are removed. (They were previously defined in the toplevel matplotlib module.)

  • The ArrowStyle.beginarrow and ArrowStyle.endarrow attributes are removed; use the arrow attribute to define the desired heads and tails of the arrow.

  • backend_pgf.LatexManager.str_cache is removed.

  • backends.qt_compat.ETS and backends.qt_compat.QT_RC_MAJOR_VERSION are removed, with no replacement.

  • The blocking_input module is removed. Instead, use canvas.start_event_loop() and canvas.stop_event_loop() while connecting event callbacks as needed.

  • cbook.report_memory is removed; use psutil.virtual_memory instead.

  • cm.LUTSIZE is removed. Use rcParams["image.lut"] (default: 256) instead. This value only affects colormap quantization levels for default colormaps generated at module import time.

  • Colorbar.patch is removed; this attribute was not correctly updated anymore.

  • ContourLabeler.get_label_width is removed.

  • Dvi.baseline is removed (with no replacement).

  • The format parameter of dviread.find_tex_file is removed (with no replacement).

  • FancyArrowPatch.get_path_in_displaycoord and ConnectionPath.get_path_in_displaycoord are removed. The path in display coordinates can still be obtained, as for other patches, using patch.get_transform().transform_path(patch.get_path()).

  • The font_manager.win32InstalledFonts and font_manager.get_fontconfig_fonts helper functions are removed.

  • All parameters of imshow starting from aspect are keyword-only.

  • QuadMesh.convert_mesh_to_paths and QuadMesh.convert_mesh_to_triangles are removed. QuadMesh.get_paths() can be used as an alternative for the former; there is no replacement for the latter.

  • ScalarMappable.callbacksSM is removed. Use ScalarMappable.callbacks instead.

  • streamplot.get_integrator is removed.

  • style.core.STYLE_FILE_PATTERN, style.core.load_base_library, and style.core.iter_user_libraries are removed.

  • SubplotParams.validate is removed. Use SubplotParams.update to change SubplotParams while always keeping it in a valid state.

  • The grey_arrayd, font_family, font_families, and font_info attributes of TexManager are removed.

  • Text.get_prop_tup is removed with no replacements (because the Text class cannot know whether a backend needs to update cache e.g. when the text's color changes).

  • Tick.apply_tickdir didn't actually update the tick markers on the existing Line2D objects used to draw the ticks and is removed; use Axis.set_tick_params instead.

  • tight_layout.auto_adjust_subplotpars is removed.

  • The grid_info attribute of axisartist classes has been removed.

  • axes_grid1.axes_grid.CbarAxes and axisartist.axes_grid.CbarAxes are removed (they are now dynamically generated based on the owning axes class).

  • The axes_grid1.Divider.get_vsize_hsize and axes_grid1.Grid.get_vsize_hsize methods are removed.

  • AxesDivider.append_axes(..., add_to_figure=False) is removed. Use ax.remove() to remove the Axes from the figure if needed.

  • FixedAxisArtistHelper.change_tick_coord is removed with no replacement.

  • floating_axes.GridHelperCurveLinear.get_boundary is removed with no replacement.

  • ParasiteAxesBase.get_images_artists is removed.

  • The "units finalize" signal (previously emitted by Axis instances) is removed. Connect to "units" instead.

  • Passing formatting parameters positionally to stem() is no longer possible.

  • axisartist.clip_path is removed with no replacement.