
GITHUB . COM {
}
Detected CMS Systems:
- Wordpress (2 occurrences)
Title:
BUG: df.plot(kind='barh') does not show xlabel · Issue #46129 · pandas-dev/pandas
Description:
Pandas version checks I have checked that this issue has not already been reported. I have confirmed this bug exists on the latest version of pandas. I have confirmed this bug exists on the main branch of pandas. Reproducible Example imp...
Website Age:
17 years and 8 months (reg. 2007-10-09).
Matching Content Categories {📚}
- Technology & Computing
- Video & Online Content
- Style & Fashion
Content Management System {📝}
What CMS is github.com built with?
Github.com relies on WORDPRESS.
Traffic Estimate {📈}
What is the average monthly size of github.com audience?
🚀🌠 Tremendous Traffic: 10M - 20M visitors per month
Based on our best estimate, this website will receive around 10,000,019 visitors per month in the current month.
However, some sources were not loaded, we suggest to reload the page to get complete results.
check SE Ranking
check Ahrefs
check Similarweb
check Ubersuggest
check Semrush
How Does Github.com Make Money? {💸}
Subscription Packages {💳}
We've located a dedicated page on github.com that might include details about subscription plans or recurring payments. We identified it based on the word pricing in one of its internal links. Below, you'll find additional estimates for its monthly recurring revenues.How Much Does Github.com Make? {💰}
Subscription Packages {💳}
Prices on github.com are in US Dollars ($).
They range from $4.00/month to $21.00/month.
We estimate that the site has approximately 4,989,889 paying customers.
The estimated monthly recurring revenue (MRR) is $20,957,532.
The estimated annual recurring revenues (ARR) are $251,490,385.
Wordpress Themes and Plugins {🎨}
What WordPress theme does this site use?
It is strange but we were not able to detect any theme on the page.
What WordPress plugins does this website use?
It is strange but we were not able to detect any plugins on the page.
Keywords {🔍}
xlabel, issue, pandas, ylabel, label, iansheng, mctoel, bug, show, commented, sign, closed, plot, xaxis, default, projects, plt, added, contributor, problem, data, dataframe, series, navigation, code, issues, pull, requests, actions, security, dfplotkindbarh, description, version, confirmed, exists, main, branch, import, tübingen, berlin, coeq, pltshow, showing, yaxis, supplying, expected, triage, reviewed, team, member,
Topics {✒️}
pandas/pandas/plotting/_matplotlib/core x-axis labelled wrongly pandas dev setup iansheng edits contributor saved feature importance personal information bug comment metadata assignees pd import matplotlib beem similar issues issue description common processing logic type projects plot takes precedence plt library directly latest version import pandas bug exists projects milestone 1 pandas plot similar issue triage issue xlabel issue common logic setting ylabel x-axis pandas code produces x-column y-axis plt directly main branch �� tübingen ��-eq' xlabel showing xlabel overrides official doc planar plots y-column causing xlabel kind='pie' subsequent operations support nonetype pie chart big impact step backwards dirty test fix showing 100% complete relationships kind='barh' converts data
Payment Methods {📊}
- Braintree
Questions {❓}
- Already have an account?
Schema {🗺️}
DiscussionForumPosting:
context:https://schema.org
headline:BUG: df.plot(kind='barh') does not show xlabel
articleBody:### Pandas version checks
- [X] I have checked that this issue has not already been reported.
- [X] I have confirmed this bug exists on the [latest version](https://pandas.pydata.org/docs/whatsnew/index.html) of pandas.
- [x] I have confirmed this bug exists on the main branch of pandas.
### Reproducible Example
```python
import pandas as pd
import matplotlib.pyplot as plt
co2 = pd.Series({
'train': 4.8,
'car': 128.5,
'aiplane': 98.5
})
co2.plot(
kind='barh',
title='CO₂ Tübingen to Berlin',
xlabel='kg CO₂-eq'
)
plt.show()
```
### Issue Description
The code produces the following plot, with the xlabel showing up on the y-axis.

When only supplying the ylabel, everything works as expected.
When supplying both, the xlabel overrides the ylabel
### Expected Behavior
The xlabel should show up on the x-axis.
### Installed Versions
<details>
INSTALLED VERSIONS
------------------
commit : 06d230151e6f18fdb8139d09abf539867a8cd481
python : 3.9.10.final.0
python-bits : 64
OS : Linux
OS-release : 5.13.0-30-generic
Version : #33~20.04.1-Ubuntu SMP Mon Feb 7 14:25:10 UTC 2022
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.4.1
numpy : 1.22.0
pytz : 2020.1
dateutil : 2.8.1
pip : 22.0.3
setuptools : 58.1.0
Cython : 0.29.21
pytest : 6.2.5
hypothesis : None
sphinx : 3.4.3
blosc : None
feather : None
xlsxwriter : None
lxml.etree : 4.6.2
html5lib : None
pymysql : None
psycopg2 : 2.8.6
jinja2 : 2.11.2
IPython : 7.19.0
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
fsspec : 0.8.4
gcsfs : None
matplotlib : 3.5.1
numba : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : 6.0.1
pyreadstat : None
pyxlsb : None
s3fs : None
scipy : 1.7.3
sqlalchemy : 1.3.24
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
zstandard : None
</details>
author:
url:https://github.com/McToel
type:Person
name:McToel
datePublished:2022-02-23T13:37:44.000Z
interactionStatistic:
type:InteractionCounter
interactionType:https://schema.org/CommentAction
userInteractionCount:5
url:https://github.com/46129/pandas/issues/46129
context:https://schema.org
headline:BUG: df.plot(kind='barh') does not show xlabel
articleBody:### Pandas version checks
- [X] I have checked that this issue has not already been reported.
- [X] I have confirmed this bug exists on the [latest version](https://pandas.pydata.org/docs/whatsnew/index.html) of pandas.
- [x] I have confirmed this bug exists on the main branch of pandas.
### Reproducible Example
```python
import pandas as pd
import matplotlib.pyplot as plt
co2 = pd.Series({
'train': 4.8,
'car': 128.5,
'aiplane': 98.5
})
co2.plot(
kind='barh',
title='CO₂ Tübingen to Berlin',
xlabel='kg CO₂-eq'
)
plt.show()
```
### Issue Description
The code produces the following plot, with the xlabel showing up on the y-axis.

When only supplying the ylabel, everything works as expected.
When supplying both, the xlabel overrides the ylabel
### Expected Behavior
The xlabel should show up on the x-axis.
### Installed Versions
<details>
INSTALLED VERSIONS
------------------
commit : 06d230151e6f18fdb8139d09abf539867a8cd481
python : 3.9.10.final.0
python-bits : 64
OS : Linux
OS-release : 5.13.0-30-generic
Version : #33~20.04.1-Ubuntu SMP Mon Feb 7 14:25:10 UTC 2022
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.4.1
numpy : 1.22.0
pytz : 2020.1
dateutil : 2.8.1
pip : 22.0.3
setuptools : 58.1.0
Cython : 0.29.21
pytest : 6.2.5
hypothesis : None
sphinx : 3.4.3
blosc : None
feather : None
xlsxwriter : None
lxml.etree : 4.6.2
html5lib : None
pymysql : None
psycopg2 : 2.8.6
jinja2 : 2.11.2
IPython : 7.19.0
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
fsspec : 0.8.4
gcsfs : None
matplotlib : 3.5.1
numba : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : 6.0.1
pyreadstat : None
pyxlsb : None
s3fs : None
scipy : 1.7.3
sqlalchemy : 1.3.24
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
zstandard : None
</details>
author:
url:https://github.com/McToel
type:Person
name:McToel
datePublished:2022-02-23T13:37:44.000Z
interactionStatistic:
type:InteractionCounter
interactionType:https://schema.org/CommentAction
userInteractionCount:5
url:https://github.com/46129/pandas/issues/46129
Person:
url:https://github.com/McToel
name:McToel
url:https://github.com/McToel
name:McToel
InteractionCounter:
interactionType:https://schema.org/CommentAction
userInteractionCount:5
interactionType:https://schema.org/CommentAction
userInteractionCount:5
External Links {🔗}(6)
- What is the earnings of https://github.blog?
- How much profit does https://pandas.pydata.org/docs/whatsnew/index.html generate?
- What's the profit of https://user-images.githubusercontent.com/36071676/155328546-eb9915a2-af5b-4346-a705-5eaf96e2851a.png?
- How much revenue does https://pandas.pydata.org/docs/reference/api/pandas.Series.plot.html generate?
- How much revenue does https://user-images.githubusercontent.com/36071676/156144387-0c75a4c2-2003-401b-bafa-f04d1a3fb668.png produce monthly?
- Check the income stats for https://www.githubstatus.com/
Analytics and Tracking {📊}
- Site Verification - Google
Libraries {📚}
- Clipboard.js
- D3.js
- Lodash
Emails and Hosting {✉️}
Mail Servers:
- aspmx.l.google.com
- alt1.aspmx.l.google.com
- alt2.aspmx.l.google.com
- alt3.aspmx.l.google.com
- alt4.aspmx.l.google.com
Name Servers:
- dns1.p08.nsone.net
- dns2.p08.nsone.net
- dns3.p08.nsone.net
- dns4.p08.nsone.net
- ns-1283.awsdns-32.org
- ns-1707.awsdns-21.co.uk
- ns-421.awsdns-52.com
- ns-520.awsdns-01.net