Cash flow diagram 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 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.

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

Cellular automata on a hexagonal grid? [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
I have been playing around with simple cellular automata in Python on a square grid, using matplotlib.
Which Python based tools would be most useful in helping me work with cellular automata on hexagonal grids?
You need to represent the grid as a hextile. Please look at this post which discusses how to represent a hexagonal grid in memory: How do I represent a hextile/hex grid in memory?

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.

Quickest way to plot ~400,000 points 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 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/

Interactive (annotated) charts 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
What are the best libaries for creating interactive (zoom, pan, create online annotations) charts in python?
I've checked Pretty graphs and charts in Python
but this does not address zoom, pan, and annotation capabilities.
I'm not sure what you mean by "annotation" in this context, but matplotlib graphs are well-suited for interactive work, and include very good zooming and panning capabilities built-in.

Categories

Resources