Live data from Hacker News

An Introduction to Scientific Python – Matplotlib

datadependence.com

11–19 of 19 posts

Re: An Introduction to Scientific Python – Matplotlib

#11

One of my biggest frustrations with python for data science is how bad the documentation for matplotlib is. Also the default settings leave a lot to be desired - look at the color map scatter plots to see what I mean. What is with all that white-space around the graph?

I find pandas documentation verbose but ultimately not real world. Every one of them generates random values which aren't visually distinct. Makes it hard to follow operations.

Re: An Introduction to Scientific Python – Matplotlib

#12
post #8
post #4

I needed pixel perfect plots for visualising raster data and did not manage to make it render that. Felt similar to LaTeX: Great if you like what it does by default but don't you dare want something reasonably different. :\

Similar sentiments here. I get slightly further with ggplot2 but still end up fixing stuff manually in Illustrator which adds significant time. Anyone know 1) a more customizable plotting library or 2) a way to apply manual changes to new input pdfs? Biggest sticking points for me are overlapping labels and compositing multiple figures

Buying a copy of Illustrator was pretty much the best thing that ever happened to my plotting.

Re: An Introduction to Scientific Python – Matplotlib

#13

One of my biggest frustrations with python for data science is how bad the documentation for matplotlib is. Also the default settings leave a lot to be desired - look at the color map scatter plots to see what I mean. What is with all that white-space around the graph?

I find pandas documentation verbose but ultimately not real world. Every one of them generates random values which aren't visually distinct. Makes it hard to follow operations.

I completely agree with this assessment. Demonstration of the functionality is technically all there. It's often just hard to parse.

(Admittedly, this is a bit of a nitpick for free software. Overall, I'm very happy with the package.)

Re: An Introduction to Scientific Python – Matplotlib

#14

One of my biggest frustrations with python for data science is how bad the documentation for matplotlib is. Also the default settings leave a lot to be desired - look at the color map scatter plots to see what I mean. What is with all that white-space around the graph?

For what it's worth, the Python version of ggplot seems to be making some headway.

http://ggplot.yhathq.com

Re: An Introduction to Scientific Python – Matplotlib

#15
post #8
post #4

I needed pixel perfect plots for visualising raster data and did not manage to make it render that. Felt similar to LaTeX: Great if you like what it does by default but don't you dare want something reasonably different. :\

Similar sentiments here. I get slightly further with ggplot2 but still end up fixing stuff manually in Illustrator which adds significant time. Anyone know 1) a more customizable plotting library or 2) a way to apply manual changes to new input pdfs? Biggest sticking points for me are overlapping labels and compositing multiple figures

I find google charts a nice balance between ease of use and good looking charts.

Re: An Introduction to Scientific Python – Matplotlib

#16

One of my biggest frustrations with python for data science is how bad the documentation for matplotlib is. Also the default settings leave a lot to be desired - look at the color map scatter plots to see what I mean. What is with all that white-space around the graph?

tight_layout() gets rid of all that whitespace :)

There are some alternatives with pretty defaults - I personally love seaborn [1] which builds on top of matplotlib, but seaborn is even more "do it the way I like it or suffer the consequences" - however, the coming v2.0 of Matplotlib comes with a few API changes and a different default color scheme: http://matplotlib.org/style_changes.html or http://matplotlib.1069221.n5.nabble.com/matplotlib-v2-0-0b1-...

[1] http://stanford.edu/~mwaskom/software/seaborn/examples/index...

Re: An Introduction to Scientific Python – Matplotlib

#17
post #12
post #8

Earlier quoted context omitted.

Similar sentiments here. I get slightly further with ggplot2 but still end up fixing stuff manually in Illustrator which adds significant time. Anyone know 1) a more customizable plotting library or 2) a way to apply manual changes to new input pdfs? Biggest sticking points for me are overlapping labels and compositing multiple figures

Buying a copy of Illustrator was pretty much the best thing that ever happened to my plotting.

How did illustrator help you?

Re: An Introduction to Scientific Python – Matplotlib

#18
post #8
post #4

I needed pixel perfect plots for visualising raster data and did not manage to make it render that. Felt similar to LaTeX: Great if you like what it does by default but don't you dare want something reasonably different. :\

Similar sentiments here. I get slightly further with ggplot2 but still end up fixing stuff manually in Illustrator which adds significant time. Anyone know 1) a more customizable plotting library or 2) a way to apply manual changes to new input pdfs? Biggest sticking points for me are overlapping labels and compositing multiple figures

I find matplotlib far more flexible than ggplot. Which means 9 times out of 10 I can make the graph in about 5 lines of ggplot, and the more unusual takes about 50 lines of matplotlib.

Have you tried D3 for static plots? It looks very verbose, but offers a lot of fine control.

Re: An Introduction to Scientific Python – Matplotlib

#19
post #12

Earlier quoted context omitted.

Buying a copy of Illustrator was pretty much the best thing that ever happened to my plotting.

How did illustrator help you?

The amount of basic formatting, changes, etc. that are trivial in a proper vector graphics editor but hard to cajole ggplot2, matplotlib or R's base graphics are...extensive.
Post reply on HN