Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
I'm currently analyzing air quality data. I've got long arrays of 17 columns and around 100 rows/day that I'll be averaging. I'd like to plot some of that data, specifically Ozone concentrations, on a map.
Basically, my visualized final product is this:
So, where the air quality sensor is, I want to highlight a 1x1 km area around it in a specific color corresponding to the value of ozone concentration the sensor is reading (either over an average day or at a specific time).
Is there any python module that could help me achieve this product/plot my data onto a map well?
As "Basemap" is a rather popular package for creating maps in Python, I suggest having a look at this article: How to draw rectangles on a Basemap
Once you figure out how to draw rectangles that are scaled to your specifications, it should be easy to fill them with a color representing your data.
Cheers!
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 days ago.
Improve this question
I am trying to find the correlation between the dominant color of an image and how well it does on social media. I have found the dominant color in an image and have converted the rgb value I received into a categorical value such as red or blue. The problem is I now have have over 130 unique values which is too much to use for machine learning. I am wondering if there is any other way to achieve my goal?
Perhaps I can get rid of the color name, and create three columns for R,G,B and predict whether a higher value in a column leads to a higher correlation among social media success?
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 1 year ago.
Improve this question
The question is pretty simple but I'm unclear if the solution is. I have basketball player stats that I want to visualize over time and sometimes I want to visualize it across multiple seasons (years). They don't play year-round so there are generally about 6 months where there is simply no data.
If I don't care necessarily that the dates on the x-axis are scaled accurately, is there a good way to visualize these multiple seasons without a) having massive gaps in the graph and b) interpolating a physically long line filler?
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I am programming artificial neural networks at the moment and would like to plot e.g. the weights of the net which are stored as numpy arrays.
I have no experiance with matplotlib and the vast amount of possibilites confused me a bit.
Preferably I would like to update the plot every second or so and plot the numpy arrays as colored squares (greyscale for 0 to 1 interval weights, colored for other intervals like -1 to 1).
In addition to that I would also like to plot some output data in graphs (normally x/y integers).
How can I achieve this? Which things from matplotlib do I need?
Can someone provide a (easy) tutorial?
Thanks a lot :)
You need something like matplotlib.animation module:
http://matplotlib.org/api/animation_api.html
http://matplotlib.org/examples/animation/
http://wiki.scipy.org/Cookbook/Matplotlib/Animations
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I'm pretty new to the whole idea of data visualization, so I was hoping people could point me in the direction of efficient tools to use for a problem I have:
I've got a lot of numerical data (they are counts) that are tied to specific countries with a two-letter country code. Ideally, I'd like to be able to represent these counts using a sort of world heat map. In other words, if the count for India is 20 and the count for China is 5, I'd want China to be colored light red and India to be colored dark red.
What tools would be best to do something like this? I do my data manipulation and analysis using pandas and Python, so I'd love to keep things in the Python family, but I'd love any suggestions at all.
Matplotlib has something called basemap
Vincent
Databench is a tool that connects your Python analysis with an html frontend where you can use tables and interactive elements to navigate your data. You can also use d3.js or higher level JavaScript libraries that use d3.js to visualize your counts on a map.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I want to visualize track on geographic map. I don't need thousands of layers, 3d and other GIS functionality. I just want to visualize my (latitude, longitude, altitude, time) tuples on map background as simple as possible. Animation should also be supported.
Could anyone recommend good Python library?
There's something called basemap which is an addon for matplotlib to do maps.
See the gallery or cookbook example.
Matplotlib has it's own animation support and I don't know any reason it shouldn't work with basemap (although as that page notes, it's not the fastest thing around).
There is a YouTube video series which covers basemap and matplotlib called 'Geographical Plotting with Python' posted by Sentdex.
Part 1 -
http://www.youtube.com/watch?v=E6gvtfQHJUs
Incidentally he has a number of other interesting Python projects on his channel:
http://www.youtube.com/user/sentdex