diff --git a/docs/2dplots.py b/docs/2dplots.py index 3f27b7b56..edca512bb 100644 --- a/docs/2dplots.py +++ b/docs/2dplots.py @@ -34,13 +34,13 @@ # # .. important:: # -# By default, UltraPlot automatically adjusts the width of -# :func:`~ultraplot.axes.PlotAxes.contourf` and :func:`~ultraplot.axes.PlotAxes.pcolor` edges -# to eliminate the appearance of `"white lines" in saved vector graphic files -# `__. However, this can significantly -# slow down the drawing time for large datasets. To disable this feature, -# pass ``edgefix=False`` to the relevant :class:`~ultraplot.axes.PlotAxes` command, -# or set :rcraw:`edgefix` to ``False`` to disable globally. +# UltraPlot includes functionality to fix the common issue of unwanted +# `"white lines" in saved vector graphic files +# `__ by adjusting the width of +# :func:`~ultraplot.axes.PlotAxes.contourf` and :func:`~ultraplot.axes.PlotAxes.pcolor` edges. +# This feature is disabled by default to maintain optimal performance, especially for large datasets. +# To enable this edge-fixing capability, pass ``edgefix=True`` to the relevant +# :class:`~ultraplot.axes.PlotAxes` command, or set :rcraw:`edgefix` to ``True`` to enable globally. # %% [raw] raw_mimetype="text/restructuredtext" # .. _ug_2dstd: diff --git a/ultraplot/axes/base.py b/ultraplot/axes/base.py index 296222469..5c3892f9f 100644 --- a/ultraplot/axes/base.py +++ b/ultraplot/axes/base.py @@ -21,6 +21,7 @@ import matplotlib.text as mtext import matplotlib.ticker as mticker import matplotlib.transforms as mtransforms +from matplotlib import get_backend import numpy as np from matplotlib import cbook diff --git a/ultraplot/internals/rcsetup.py b/ultraplot/internals/rcsetup.py index 91a2e9266..6ac38bf7d 100644 --- a/ultraplot/internals/rcsetup.py +++ b/ultraplot/internals/rcsetup.py @@ -1131,7 +1131,7 @@ def copy(self): ), # Special setting "edgefix": ( - True, + False, _validate_bool, 'Whether to fix issues with "white lines" appearing between patches ' "in saved vector graphics and with vector graphic backends. Applies "