Removals¶
The following deprecated APIs have been removed:
Modules¶
backends.qt_editor.formlayout(use the formlayout module available on PyPI instead).
Classes, methods and attributes¶
artist.Artist.anameproperty (no replacement)axis.Axis.iter_ticks(no replacement)- Support for custom backends that do not provide a
backend_bases.GraphicsContextBase.set_hatch_colormethod backend_bases.RendererBase.strip_math()(usecbook.strip_math()instead)backend_wx.debug_on_error()(no replacement)backend_wx.raise_msg_to_str()(no replacement)backend_wx.fake_stderr(no replacement)backend_wx.MenuButtonWx(no replacement)backend_wx.PrintoutWx(no replacement)_backend_tk.NavigationToolbar2Tk.set_active()(no replacement)backend_ps.PsBackendHelper.gs_exeproperty (no replacement)backend_ps.PsBackendHelper.gs_versionproperty (no replacement)backend_ps.PsBackendHelper.supports_ps2writeproperty (no replacement)backend_ps.RendererPS.afmfontdproperty (no replacement)backend_ps.GraphicsContextPS.shouldstrokeproperty (no replacement)backend_gtk3.FileChooserDialog(no replacement)backend_gtk3.SaveFigureGTK3.get_filechooser()(no replacement)backend_gtk3.NavigationToolbar2GTK3.get_filechooser()(no replacement)backend_gtk3cairo.FigureManagerGTK3Cairo(usebackend_gtk3.FigureManagerGTK3instead)backend_pdf.RendererPdf.afm_font_cacheproperty (no replacement)backend_pgf.LatexManagerFactory(no replacement)backend_qt5.NavigationToolbar2QT.buttonsproperty (no replacement)backend_qt5.NavigationToolbar2QT.adj_windowproperty (no replacement)bezier.find_r_to_boundary_of_closedpath()(no replacement)cbook.dedent()(useinspect.cleandocinstead)cbook.get_label()(no replacement)cbook.is_hashable()(useisinstance(..., collections.abc.Hashable)instead)cbook.iterable()(usenumpy.iterable()instead)cbook.safezip()(no replacement)colorbar.ColorbarBase.get_cmap(useScalarMappable.get_cmapinstead)colorbar.ColorbarBase.set_cmap(useScalarMappable.set_cmapinstead)colorbar.ColorbarBase.get_clim(useScalarMappable.get_climinstead)colorbar.ColorbarBase.set_clim(useScalarMappable.set_climinstead)colorbar.ColorbarBase.set_norm(useScalarMappable.set_norminstead)dates.seconds()(no replacement)dates.minutes()(no replacement)dates.hours()(no replacement)dates.weeks()(no replacement)dates.strpdate2numanddates.bytespdate2num(usetime.strptimeordateutil.parser.parseordates.datestr2numinstead)docstring.Appender(no replacement)docstring.dedent()(useinspect.getdocinstead)docstring.copy_dedent()(usedocstring.copy()andinspect.getdocinstead)font_manager.OSXInstalledFonts()(no replacement)image.BboxImage.interp_at_nativeproperty (no replacement)lines.Line2D.verticalOffsetproperty (no replacement)matplotlib.checkdep_dvipng(no replacement)matplotlib.checkdep_ghostscript(no replacement)matplotlib.checkdep_pdftops(no replacement)matplotlib.checkdep_inkscape(no replacement)matplotlib.get_py2exe_datafiles(no replacement)matplotlib.tk_window_focus(usercParams['tk.window_focus']instead)mlab.demean()(usemlab.detrend_mean()instead)path.get_paths_extents()(usepath.get_path_collection_extents()instead)path.Path.has_nonfinite()(usenot np.isfinite(self.vertices).all()instead)projections.process_projection_requirements()(no replacement)pyplot.plotfile()(Instead, load the data usingpandas.read_csvornumpy.loadtxtor similar and use regular pyplot functions to plot the loaded data.)quiver.Quiver.color()(useQuiver.get_facecolor()instead)quiver.Quiver.keyvecproperty (no replacement)quiver.Quiver.keytextproperty (no replacement)rcsetup.validate_qt4()(no replacement)rcsetup.validate_qt5()(no replacement)rcsetup.validate_verbose()(no replacement)rcsetup.ValidateInterval(no replacement)scale.LogTransformBase(usescale.LogTransforminstead)scale.InvertedLogTransformBase(usescale.InvertedLogTransforminstead)scale.Log10Transform(usescale.LogTransforminstead)scale.InvertedLog10Transform(usescale.InvertedLogTransforminstead)scale.Log2Transform(usescale.LogTransforminstead)scale.InvertedLog2Transform(usescale.InvertedLogTransforminstead)scale.NaturalLogTransform(usescale.LogTransforminstead)scale.InvertedNaturalLogTransform(usescale.InvertedLogTransforminstead)scale.get_scale_docs()(no replacement)sphinxext.plot_directive.plot_directive()(use the classPlotDirectiveinstead)sphinxext.mathmpl.math_directive()(use the classMathDirectiveinstead)spines.Spine.is_frame_like()(no replacement)testing.decorators.switch_backend()(use@pytest.mark.backenddecorator instead)text.Text.is_math_text()(usecbook.is_math_text()instead)text.TextWithDash()(usetext.Annotationinstead)textpath.TextPath.is_math_text()(usecbook.is_math_text()instead)textpath.TextPath.text_get_vertices_codes()(usetextpath.text_to_path.get_text_path()instead)textpath.TextToPath.glyph_to_path()(usefont.get_path()and manual translation of the vertices instead)ticker.OldScalarFormatter.pprint_val()(no replacement)ticker.ScalarFormatter.pprint_val()(no replacement)ticker.LogFormatter.pprint_val()(no replacement)ticker.decade_down()(no replacement)ticker.decade_up()(no replacement)TickpropertiesgridOn,tick1On,tick2On,label1On,label2On(useset_visible()/get_visible()onTick.gridline,Tick.tick1line,Tick.tick2line,Tick.label1,Tick.label2instead)widgets.SpanSelector.buttonDownproperty (no replacement)mplot3d.proj3d.line2d()(no replacement)mplot3d.proj3d.line2d_dist()(no replacement)mplot3d.proj3d.line2d_seg_dist()(no replacement)mplot3d.proj3d.mod()(usenumpy.linalg.norminstead)mplot3d.proj3d.proj_transform_vec()(no replacement)mplot3d.proj3d.proj_transform_vec_clip()(no replacement)mplot3d.proj3d.vec_pad_ones()(no replacement)mplot3d.proj3d.proj_trans_clip_points()(no replacement)mplot3d.art3d.norm_angle()(no replacement)mplot3d.art3d.norm_text_angle()(no replacement)mplot3d.art3d.path_to_3d_segment()(no replacement)mplot3d.art3d.paths_to_3d_segments()(no replacement)mplot3d.art3d.path_to_3d_segment_with_codes()(no replacement)mplot3d.art3d.paths_to_3d_segments_with_codes()(no replacement)mplot3d.art3d.get_patch_verts()(no replacement)mplot3d.art3d.get_colors()(no replacement)mplot3d.art3d.zalpha()(no replacement)mplot3d.axis3d.get_flip_min_max()(no replacement)mplot3d.axis3d.Axis.get_tick_positions()(no replacement)axisartist.axis_artist.UnimplementedException(no replacement)axisartist.axislines.SimpleChainedObjects(useaxis_grid1.mpl_axes.SimpleChainedObjectsinstead)axisartist.axislines.Axes.AxisDict(useaxis_grid1.mpl_axes.Axes.AxisDictinstead)
Arguments¶
Axes.text()/pyplot.text()do not support the parameterwithdashanymore. UseAxes.annotate()andpyplot.annotate()instead.- The first parameter of
matplotlib.usehas been renamed fromargtobackend(only relevant if you pass by keyword). - The parameter
warnofmatplotlib.usehas been removed. A failure to switch the backend will now always raise anImportErrorifforceis set; catch that error if necessary. - All parameters of
matplotlib.useexcept the first one are now keyword-only. - The unused parameters
shapeandimlimofimshow()are now removed. All parameters beyondextentare now keyword-only. - The unused parameter
interp_at_nativeofBboxImagehas been removed. - The parameter
usetexofTextToPath.get_text_pathhas been removed. Useismath='TeX'instead. - The parameter
blockofshow()is now keyword-only, and arbitrary arguments or keyword arguments are no longer accepted. - The parameter
frameonofFigure.savefighas been removed. Usefacecolor="none"to get a transparent background. - Passing a
wx.EvtHandleras the first argument tobackend_wx.TimerWxis not supported anymore; the signature ofTimerWxis now consistent withTimerBase. - The
manage_xticksparameter ofboxplotandbxphas been renamed tomanage_ticks. - The
normedparameter ofhist2dhas been renamed todensity. - The
sparameter ofAnnotationhas been renamed totext. - For all functions in
bezierthat supported atolerenceparameter, this parameter has been renamed totolerance. axis("normal")is not supported anymore. Use the equivalentaxis("auto")instead.axis()does not accept arbitrary keyword arguments anymore.Axis.set_ticklabels()does not accept arbitrary positional arguments other thanticklabels.mpl_toolkits.mplot3d.art3d.Poly3DCollection.set_zsortdoes not accept the valueTrueanymore. Pass the equivalent value 'average' instead.AnchoredTextno longer acceptshorizontalalignmentorverticalalignmentkeyword arguments.ConnectionPatchno longer accepts thearrow_transmuterandconnectorkeyword arguments, which did nothing since 3.0.FancyArrowPatchno longer accepts thearrow_transmuterandconnectorkeyword arguments, which did nothing since 3.0.TextPathno longer accepts arbitrary positional or keyword arguments.MaxNLocator.set_params()no longer accepts arbitrary keyword arguments.pieno longer accepts and squeezes non-1D inputs; pass 1D input to thexargument.- Passing (n, 1)-shaped error arrays to
Axes.errorbar()is no longer supported; pass a 1D array instead.
rcParams¶
- The
text.latex.unicodercParam has been removed, with no replacement. Matplotlib now always supports unicode in usetex. - The
savefig.frameonrcParam has been removed. SetrcParams["savefig.facecolor"](default:'auto') to "none" to get a transparent background. - The
pgf.debug,verbose.fileoandverbose.verbose.levelrcParams, which had no effect, have been removed. - Support for setting
rcParams["mathtext.default"](default:'it') to "circled" has been removed.
Environment variables¶
MATPLOTLIBDATA(no replacement).
mathtext¶
- The
\stackrelcommand (which behaved differently from its LaTeX version) has been removed. Use\genfracinstead. - The
\mathcircledcommand has been removed. Directly use Unicode characters, such as'\N{CIRCLED LATIN CAPITAL LETTER A}', instead.