« first day (2005 days earlier)      last day (2940 days later) » 

10:00 PM
I've wanted to do pretty twisted stuff with matplotlib (unrelated to pandas), and I've never had to ask a question about it (yet)
 
Hmm, why would you recommend it other than those two reasons?
I liked the visuals of ggplot
 
No good reason other than "I've used it a lot and liked it", I have zero experience with ggplot or R in general
what version of ggplot do you have?
ehh
I think you have a typo there
@jsc123 axis_test_x -> axis_text_x
does this help?:P
 
Damnnittt
Thank you so much
Classic
You're a prince
I'll look into matplotlib as well to compare the two
 
good luck:)
if you have any issues with that, I can probably help
 
10:18 PM
@AndrasDeak, thanks I'm using it now, it's much better (as in it works haha)! I'm running into an issue where the labels on the x-axis get cut off. Any recommendations for how to get around it?
I'm using this now
plt.xticks(rotation='vertical')
 
have you read this?
and which version of matplotlib?
 
I haven't
1.3.1
 
oh wait, rotation='vertical' works for you
yeah, for long tick labels, rotation is what you can do
not just in matplotlib; I find it hard to imagine another clear solution
but you can set an arbitrary angle, that sometimes is more legible
 
Would it be wiser to use a horizontal bar plot?
 
that really depends on your graph and your taste:)
try both, and see which works best
 
10:24 PM
Fair enough
 
data visualisation is in huge part an art
 
Hmm, you'd think someone would make my life easy
 
this is not someone else can do for you
you're asking me "how wil my plot be prettiest?"
and I can't even see your plot
 
Haha, no I mean the library
You're doing great!
 
thanks:P
 
10:26 PM
Like when I do the vertical rotation, you'd think the labels wouldn't be cut off
 
they do?
you mean at the bottom?
 
Yep
 
along with the xlabel?
try plt.tight_layout() after the plot
that readjusts all sorts of spacings around the plot
and generally results in a pretty result
 
Awesome
 
if some stuff are huge, like in your case, you can pass manual space widths to adjust the result
 
10:28 PM
Gotcha, gonna pad the x labels now
Last question for now @AndrasDeak. How can I limit the height of the plot?
 
umm
I'd set the size of the figure window on creation
if that's what you mean
do you mean axes limits?
that's plt.ylim([ymin, ymax])
also, SO is full of matplotlib questions, like these
 
oops, you're right
 
as I said, great support here:)
also, your comment is obsolete now
 
good call :)
 
11:03 PM
@wim That's a fascinating question. Has OP guaranteed anywhere that there will be no repeats in x? With repeated x I think your solution will sometimes throw a "no valid solutions" where there could be some, but if no repeats is a constraint, it looks good to me.
 
11:57 PM
What do you guys think about identifying authorship in code you write for your company?
I'm always reluctant to do it because I guess I don't like to toot my own horn, but I really want to toot my own horn.
 

« first day (2005 days earlier)      last day (2940 days later) »