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/
Related
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!
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!
I am a graduate student with only limited knowledge of the Python programming language. I am currently working on creating a streaming visualization of EEG data. I am able to generate the individual topographical figures using matplotlib, but cannot find a way of dynamically updating a single plot in the output at specific intervals.
Is there some way of taking a list of Figure objects and dynamically displaying each one in turn after some interval in python 2.7? Perhaps using a Graphics object similar to the ones found in Java's Swing? Or would it be better simply to save my plots as images and use JavaScript to display them as desired?
Thank you in advance for any help or suggestions you may offer.
If you want to make an animation with Python, then there are plenty of ways. For example:
https://jakevdp.github.io/blog/2012/08/18/matplotlib-animation-tutorial/
http://matplotlib.org/examples/animation/double_pendulum_animated.html
http://matplotlib.org/examples/animation/dynamic_image2.html
I have a csv file that contains data I want to represent using a bump chart (as an example )
http://www.edwardtufte.com/bboard/q-and-a-fetch-msg?msg_id=0003nk
BUT I need to have some control over the formatting and would like to approach this in the most Pythonic way possible ( I am fairly new to Python using 3.5) so wonder if anyone could tell me which graphing package gives me the kind of control that would allow me to:
draw a bump chart
specify the font (Gill Sans)
specify the number of pixels per centimeter squared (about 10000)
If anyone has a package that is in the open source environment that would be the best fit for me I would be grateful.
SO I have accidently found my answer myself in the example I gave. A VERY splendid man called Pascal Schetalat has an EXCELLENT implementation in Python using Numpy and Pandas. Here is the link
http://nbviewer.ipython.org/gist/pascal-schetelat/8382651
thank YOU Pascal
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