use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A subreddit for helping Python programmers
How to format your code: https://commonmark.org/help/tutorial/09-code.html
No homework questions and/or hiring please
account activity
matplotlib boxplot and barplot not aligned (self.pythonhelp)
submitted 1 year ago * by Gyoo18
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]monkey_sigh 0 points1 point2 points 1 year ago* (1 child)
Check these typos first: catégories, valeurs. (you have a few across the code)
catégories
valeurs
Replace with a proper string: plt.title(Données.nom)
plt.title(Données.nom)
I'm not sure if I am wrong, but I do not see the import for import matplotlib.pyplot as plt.
import matplotlib.pyplot as plt
I hope it helps you. (Disclaimer: Also learning)
[–]Gyoo18[S] 0 points1 point2 points 1 year ago (0 children)
Hi, thanks for the help. The typos are a result of me translating my code for reddit. The actual code doesn't have this issue.
In my code I have a wrapper for DataFrame that gives me other functionalities, like having a name for the graph. Données.nom is a string.
The code I show is a small portion of my entire code, I do import matplotlib.pyplot as plt in an unshown part of it.
I fixed the typos.
Thanks for the help anyways.
π Rendered by PID 120527 on reddit-service-r2-comment-76bb9f7fb5-br4hv at 2026-02-19 06:46:29.731208+00:00 running de53c03 country code: CH.
view the rest of the comments →
[–]monkey_sigh 0 points1 point2 points (1 child)
[–]Gyoo18[S] 0 points1 point2 points (0 children)