Comments (1)
Also leads to test failure:
[ 842s] __________________ TestDataFramePlots.test_plot_scatter_shape __________________
[ 842s] [gw0] linux -- Python 3.11.9 /usr/bin/python3.11
[ 842s]
[ 842s] self = <pandas.tests.plotting.frame.test_frame.TestDataFramePlots object at 0x7f63b3211590>
[ 842s]
[ 842s] def test_plot_scatter_shape(self):
[ 842s] df = DataFrame(
[ 842s] np.random.default_rng(2).standard_normal((6, 4)),
[ 842s] index=list(string.ascii_letters[:6]),
[ 842s] columns=["x", "y", "z", "four"],
[ 842s] )
[ 842s] # GH 6951
[ 842s] > axes = df.plot(x="x", y="y", kind="scatter", subplots=True)
[ 842s]
[ 842s] pandas/tests/plotting/frame/test_frame.py:828:
[ 842s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 842s] pandas/plotting/_core.py:975: in __call__
[ 842s] return plot_backend.plot(data, x=x, y=y, kind=kind, **kwargs)
[ 842s] pandas/plotting/_matplotlib/__init__.py:71: in plot
[ 842s] plot_obj.generate()
[ 842s] pandas/plotting/_matplotlib/core.py:503: in generate
[ 842s] self._make_legend()
[ 842s] pandas/plotting/_matplotlib/core.py:896: in _make_legend
[ 842s] ax.legend(loc="best")
[ 842s] /usr/lib64/python3.11/site-packages/matplotlib/axes/_axes.py:341: in legend
[ 842s] handles, labels, kwargs = mlegend._parse_legend_args([self], *args, **kwargs)
[ 842s] /usr/lib64/python3.11/site-packages/matplotlib/legend.py:1364: in _parse_legend_args
[ 842s] _api.warn_external(
[ 842s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 842s]
[ 842s] message = 'No artists with labels found to put in legend. Note that artists whose label start with an underscore are ignored when legend() is called with no argument.'
[ 842s] category = None
[ 842s]
[ 842s] def warn_external(message, category=None):
[ 842s] """
[ 842s] `warnings.warn` wrapper that sets *stacklevel* to "outside Matplotlib".
[ 842s]
[ 842s] The original emitter of the warning can be obtained by patching this
[ 842s] function back to `warnings.warn`, i.e. ``_api.warn_external =
[ 842s] warnings.warn`` (or ``functools.partial(warnings.warn, stacklevel=2)``,
[ 842s] etc.).
[ 842s] """
[ 842s] frame = sys._getframe()
[ 842s] for stacklevel in itertools.count(1):
[ 842s] if frame is None:
[ 842s] # when called in embedded context may hit frame is None
[ 842s] break
[ 842s] if not re.match(r"\A(matplotlib|mpl_toolkits)(\Z|\.(?!tests\.))",
[ 842s] # Work around sphinx-gallery not setting __name__.
[ 842s] frame.f_globals.get("__name__", "")):
[ 842s] break
[ 842s] frame = frame.f_back
[ 842s] # preemptively break reference cycle between locals and the frame
[ 842s] del frame
[ 842s] > warnings.warn(message, category, stacklevel)
[ 842s] E UserWarning: No artists with labels found to put in legend. Note that artists whose label start with an underscore are ignored when legend() is called with no argument.
[ 842s]
from pandas.
Related Issues (20)
- BUG: rounding datetime in series is broken HOT 1
- BUG: DataFrame to JSON failed when it with UUID HOT 4
- ENH: merge_asof with "how” functionality
- ENH: is it possible to save a reference to a method depending on the version HOT 3
- ValueError: Usecols do not match columns, columns expected but not found: ['Col3', 'Col1'] HOT 6
- ENH: Query function to have a star * for all columns HOT 1
- BUG: read_html returns empty list HOT 3
- database is locked
- BUG: Enlarging multilevel index fails if one or more level keys are None HOT 2
- BUG: `.dt.microsecond` for pyarrow-backed Series returns 0 HOT 2
- VOTE: Voting issue for PDEP-14: Dedicated string data type for pandas 3.0 HOT 14
- DEPR: `keep_default_dates` and `convert_dates` in `read_json` HOT 6
- ENH: Add Option to Include Array Offset as MultiIndex Level in `explode()` HOT 9
- DOC: Sort the pandas API reference navbar in alphabetical order HOT 3
- ENH: In pd.cut(), allow bins='auto' (leveraging `np.histogram_bin_edges`) HOT 4
- QST: Critical Vulnerability detection in pandas Library by Fortify due to read_pickle function HOT 3
- BUG:
- BUG: incorrect cummax() results when applied to PyArrow dtypes HOT 1
- ENH: Add Dict type to pd.concat objs HOT 5
- BUG: pd.api.extensions.take does not accept NumpyExtensionArray HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pandas.