Quickest way to plot ~400,000 points in python [closed] - python

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I have a list which contains some data points which I need to plot.
The list is approximately 11,000 x 40 in size (2D Plot with numeric values).
Currently I am using matplotlib (as I moved to python from Matlab), however this is slow to plot so many points, and resizing the graph manually crashes my computer (MacBook Retina with 16Gb RAM).
The graph I would like needs to be interactive and therefore such delays are unacceptable.
Can anyone give me some advice with regards to perhaps a better (quicker) plotting library?
Thanks
EDIT: I am currently researching some tools but I am finding it difficult to work out which would be the fastest in terms of plotting...
I am looking at:
MathGL - http://mathgl.sourceforge.net/
Gnuplot.py - http://gnuplot-py.sourceforge.net/
PyQtGraph - http://www.pyqtgraph.org/
PyQwt - http://pyqwt.sourceforge.net/
guiqwt - http://pypi.python.org/pypi/guiqwt/

Related

Python 3.4 - Library for 2D graphics [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
As title says, I'm looking for a 2D graphic library, where I can create a window, and then draw lines and basic shapes on it. I was searching around for a similar topics, and I've found something about GTK & Cairo. I have some experience with drawing in Java 2D Graphics library, so I would like to be able to create some small games like Space Invaders, Snake...
If you are looking for a slightly more static version of GUI which is less about moving visuals, you should check out Tkinter which comes as python's default GUI
On the other hand, if you want to make "small games like Space Invaders, Snake...", the pygame module would provide you with a great set of tools to easily create these games. I suggest you check them both out and see which one suits your needs better.
Good Luck

Python image processing library [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I want to modify image files (bmp, jpg, and png) by adding text on top of it in a specific area. For example if I were to draw an picture for an envelope and print different addresses on top in a designated area with specified fonts and colors which library would I use?
I am looking for something like this http://python-catalin.blogspot.com/2010/06/add-text-on-image-with-pil-module.html
But with a BSD license that can work with numpy and scipy with Python 3 since I just switched.
Is this a job for Scikit-image or Pillow (Not sure if it is BSD)? if not what can I use and which part of the library?
This can be achieved using freetype-py. See the example here: https://code.google.com/p/freetype-py/source/browse/trunk/examples/hello-world.py
This would also be a good fit for the skimage.draw module, and we can certainly consider adding it.

Cash flow diagram in python [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I need to make a very simple image that will illustrate a cash flow diagram based on user input. Basically, I just need to make an axis and some arrows facing up and down and proportional to the value of the cash flow. I would like to know how to do this with matplot.
The best tool can be matplotlib. You can simply store the values in a list and then use 'stem' to draw the lines. Then you can use markers with triangle_up and triangle_down to show the arrow.
If you simply need arrows pointing up and down, use Unicode arrows like "↑" and "↓". This would be really simple if rendering in a browser.

How to edit a database in Python? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I am an absolute beginner in Python (3.3.2). I know the basic functions like writing text files, variables, loops ,etc but have never written complex code.
My research project requires applying a moving average filter on three columns of a large text file (150 MB in size, having more than 1 million rows). My question is: What should I study in order to develop a methodology to apply the moving average formula within Python?. Excel is not an option because doing so is very tedious in Excel and sometimes it crashes due to longer periods of loading.
Kindly direct me to the 'right' resources/ examples relevant to my problem. I have gone through several python tutorials but didn't find anything relevant.
Check out Pandas. It should have no problem handling 10**6 rows on commonly available modern hardware. And among its many goodies are functions for computing moving averages.

IronPython libraries for scientific plots [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
What are good python libraries which IronPython supports (current version wise) for drawing scientific plots on Win ?
By "scientific plots" I mean simple x-y plots, x-y-z surface plots and x-y-z shaded plots.
According to this it's possible to use matplotlib with IronPython. Which will at least get you 2D plots. Another way of running matplotlib.
gnuplot can generate 3D charts - http://www.resolverhacks.net/gnuplot_plotting.html might be a starting point.
If you get Resolver, then this Resolver Spreadsheet Challenge winner shows that it is quite capable of doing 3d shaded scientific plots.
http://www.voidspace.org.uk/python/weblog/arch_d7_2009_01_17.shtml#e1049
Resolver One is a sophisticated spreadsheet built entirely in IronPython which is becoming popular with scientists and people in the financial services industry due to the power of the IronPython scripting engine within it. You can dowload a trial version of it here:
http://www.resolversystems.com/
Nevertheless, if you work with colleagues who do most of their work on unix-like systems, you might want to choose matplotlib anyhow because there is more possibility of sharing code etc. Resolver One does not yet run on Mono.

Categories

Resources