Exception handling with Dataframe of values that occur only once or twice #37
romanwolf-git
started this conversation in
General
Replies: 3 comments
-
By the way, this is how a Plot looks finally. Somehow the legend is shifted into the plotting canvas. If someone has a solution for that as well?! |
Beta Was this translation helpful? Give feedback.
0 replies
-
This line in plot_likert.py (in def plot_counts) should keep it out of the
plot:
# Control legend
plt.legend(bbox_to_anchor=(1.05, 1))
It seems like your plot has positive responses on the left and negative on
the right. Maybe you need to change the anchor to -1.05?
Tschuess,
Mike
…On Thu, Oct 6, 2022 at 4:54 AM hbxbgrw7913 ***@***.***> wrote:
By the way, this is how a Plot looks finally. Somehow the legend is
shifted into the plotting canvas. If someone has a solution for that as
well?!
[image: question_B222]
<https://user-images.githubusercontent.com/61413171/194267718-6179c524-aaeb-42ce-ab80-b86c0c1dbd81.png>
—
Reply to this email directly, view it on GitHub
<#37 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACG2KF57GSWOVVW4CBZW6VDWB2HVBANCNFSM6AAAAAAQ6L3PDM>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi @hbxbgrw7913, these are both bugs, thanks for reporting them! I've moved them to separate issues — #38 (for the original exception) and #39 (for the legend positioning) — and will follow up there. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey, I am trying to plot a Dataframe in which values of the scale occur only once or twice. This always seems to run into a "ValueError: attempt to get argmax of an empty sequence". I can solve this issue by setting xtick_interval = 1. But still I don't understand the error, which would help in order to handle this error, since I am plotting more than 50 plots.
This is my DataFrame
If you could suggest any kind of help or a better explanantion, I would be very thankful!
Beta Was this translation helpful? Give feedback.
All reactions