I'm brand new to Python (as in I just started looking at it today). My only other coding experience is in Matlab and a little bit in R. I can't do what I want to in Matlab, so I'm wondering if Python is the tool I need. I want to make a graphic similar to what is seen here: https://www.cbc.ca/news/technology/charts-climate-change-bar-codes-1.4802293
I have a matrix of weather data which I would use to create the colour values. Is something like this possible in Python, and if so could someone help me with finding some resources to learn how to do so?
Thanks!
Well, it seems ur looking to get some good visualizations, i bet you could start with visualization packages in python. Like ggplot2 in R, python has matplotlib, and seaborn libraries which can greatly help you to achieve this. Below are some resources you can look at : For matplotlib follow this : https://matplotlib.org/gallery/index.html
and for seaborn : https://seaborn.pydata.org/examples/index.html
Hope this helps!
Related
I am a complete newby in python and data processing. So many apologies in advance, if my question will seem to you evident or stupid.
I need to treat the graphical data like this:
The goal is to measure the surface of the parts, like drawn here:
and to measure the heights of the parts like this:
Right now I have downloaded pandas, numpy and matplotlib libraries to work with graphics. Could someone tell me if I need some additional libraries to perform such an analysis?
And the main question: Does somebody know the ways to perform the treatment of the graphs, like described above? Is it feasible in python?
Thank you in advance and have a nice day!
I have a Data Science related project. I need to visualize my variables. I can do it using bar charts and scatterplots, but I have been asked to make a diagram like this. The problem is, I don't even know where to begin or what packages to use. If someone can guide me, It will be great. I must use Python.
The diagram I need to make
You may want to try one of the Python Graphwiz adaptations:
https://github.com/xflr6/graphviz
http://pygraphviz.github.io/
I'm using matplotlib and python to make an animated scatter plot with points as 'balls' that bounce around, just like this:
https://jakevdp.github.io/downloads/videos/particle_box.mp4
It is interactive at runtime (with sliders to change velocity, attraction, etc), simulating on the go.
I would like to then publish it with the interactivity and all in html.
Problem: I don't know of a way to publish matplotlib interactivity to html directly.
So can I do it in python? Or is there a better way?
Which library (or program, if different from python) would you recommend as the simplest and fastest for this kind of project? I don't need "pretty" customizations and all that, I just need easy calculations and simulations (python) to then plot in a few easy lines of code (matplotlib). I do need to change the dots (balls) colors though.
I have looked at mpld3 that should wrap matplotlib around D3js. But I don't know anything about js and it is not very straightforward, so it would take me a bit to learn.
I have also looked at plotly, but it doesn't seem to have the same customization of the animation I need.
I have looked at Dash with plotly, but it would be a whole new environment to learn, and definitely overkill.
So the questions are: is there a way to output matplotlib interactive animations to html that I haven't found?
If not, what tools would you use to accomplish this project within a fast timeframe and shallow learning curve, based on my beginner/low intermediate python and matplotlib skill level?
Thank you!
The graph below shows a ranking of countries at 10 different points. The cool thing with this graph is that it allows you to track changes in the ranking over time. I want to create create something similar, but I have no idea how it was created...
My guess is that it was created using some design tool like adobe indesign, but my hope is that there might be some other tools for obtaining such a graphic (maybe even a way to do it within Mathematica or Python?)?
Any ideas and/or suggestions on where to look would be much appreciated.
PS: In case I did not post this in the most appropriate of stackExchange's many forums--my apology.
it is called a bump chart, you can learn how to make it with python in this article
How to make a bump chart
I feel matplotlib is slow, and want to try other light-weight, agile graphic package.I mainly use plotting for business presentation, not scientific purpose. Any recommendation ?
You could try:
http://code.google.com/p/visvis/
http://code.google.com/p/cagraph/
or plplot's python binding ...
If you feel like you don't necessarily need to implement your code in Python, you could try Latex based plotting:
http://www.texample.net/tikz/examples/
http://pgfplots.sourceforge.net/gallery.html
There is also Chaco. It is not lightweight by any means but it is a fair bit faster than matplotlib in my limited tests.
http://code.enthought.com/projects/chaco/
I ended up staying with matplotlib however as it is more popular, so it has better community support for help with questions and such.