Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Spacing error in bar graphs?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Richard Stanton  
View profile  
 More options Oct 13 2012, 12:36 am
From: Richard Stanton <stan...@haas.berkeley.edu>
Date: Fri, 12 Oct 2012 21:36:31 -0700
Local: Sat, Oct 13 2012 12:36 am
Subject: Spacing error in bar graphs?
Unless they're deliberately off-center, it looks like the bars in bar charts are plotted a bit too far to the left relative to ticks, labels and grid lines (all of which seem to line up fine).

Here's an example that shows what I mean (you can see it in your browser, or else save to a PDF file and look at that):

df = DataFrame({'A' : [3] * 30, 'B' : range(30)}, index = range(30))
df.plot(kind='bar', stacked='True', grid=True)
draw()


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Wouter Overmeire  
View profile  
 More options Oct 15 2012, 3:44 pm
From: Wouter Overmeire <loda...@gmail.com>
Date: Mon, 15 Oct 2012 21:44:48 +0200
Local: Mon, Oct 15 2012 3:44 pm
Subject: Re: [pydata] Spacing error in bar graphs?

2012/10/13 Richard Stanton <stan...@haas.berkeley.edu>

Had a look into the code. For an unstacked plot the bars have a width of
0.5, in case of stacked=True width is set to 0.75.
For both cases the xticks are set at the exact same positions. Result is
that grid is centered for an unstacked plot, but off-center in case of
stacked bar plot. Easy to fix.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »