How to draw a picture like this? - data-visualization

The above picture is derived from paper: Why It Happened: Identifying and Modeling the Reasons of the Happening of Social Events, KDD2015.
How to draw/visualise this beautiful picture?
I tried to use python but I don not know which tool is perfect for this!

Related

Three.js Visual indication or Effect to show when an object is occluded

I’m building a program where you control a small avatar (this is a basic circle geometry or plane) that traverses through a scene filled with 3D Models and shapes. I’d like to achieve an effect similar to those found in many video games where you can see some sort of indication that the avatar is behind the various models and shapes. For example, here is an image to explain what i mean:
Example image to show desired effect
It doesn’t necessarily need to be the outline of the shape like in the example image. I’m open to any effect really that shows some sort of indication that the avatar is behind something but also cant be too performance heavy as I'd like to get this program running on mobile. Being able to customise the effect somewhat (e.g. color, thickness, etc) is also highly desirable. Any advice or suggestions would be greatly appreciated. There really doesn't seem to be much information that I can find to achieve an effect like this.
Also I thought it was worth mentioning that thus far I have attempted two things on my own. One is just rendering the avatar above everything. That turned out to look really silly and confusing. The other thing I attempted was to use an Outline post processing effect (from this library https://github.com/vanruesc/postprocessing). Which actually looked pretty great but proved to be too performance heavy to run optimally at all times (not to mention other problems with color blending and transparent / see-through shapes and models).
I understand this is kind of a shot in the dark but thought it didn't hurt to ask.

How to change aspect ratio of photos taken using AVFoundation?

I am using AVFoundation to take pictures instead of UIImagePicker due to how customizable the user interface presented to the user can be. When using it the aspect ratio that the picture is saved as is the same as the iPhone's video feed. What I want to happen is to have the pictures saved in the same aspect ratio as normal pictures are.
The way that I am currently approaching this is to overlay a black bar in the excess preview display and then just crop the photo after saving it as an image.
However, this feels very crude. I assume that it is a common thing to use the AVFoundation as a way of taking photos and so I assume I must be missing something!
I have used this example code. And I have read through the AVFoundation documentation but can only assume that I am missing a function. I have also read through similar questions to this which describe the process by which I might go about cropping images, but that isn't really my concern.
On the other hand, if there is no standard way to do this, please do let me know so that I can stop worrying that I am approaching it in a convoluted way.
Also, I am using Objective-C so if answers contain code, please could you use the same language?

Mac OS X: Libraries for displaying human anatomy and interacting with it?

I have been asked to implement a way to display an image of a part of human anatomy, such as the spine, and permit the user to interact with it using OS X and Objective C/Swift. For example, with the spine, I should be able to pull on a vertebra horizontally, thus changing the angle of the spine in that location, or possibly rotating a vertebra clockwise/counterclockwise a few degrees. I have absolutely no idea how to implement this kind of code. It seems like animation stuff, but not a video game. I have seen discussions of Cocoa2D for gaming, but don't know if it is the right path. Are there any libraries out there that could be used: commercial or otherwise? I would really appreciate a nudge in the correct direction.
Thank you for your suggestions!

How to achieve this image distortion effect in iOS?

I'm building an iphone photo app. I don't know how to achieve this kind of effect on an image:
When the user drags a finger across the arrow, I want the image to be distorted accordingly. How can I achieve this? Is there any framework that makes this process simple?
Thank you.
No clue about iOS, but the look reminds me of a thin-plate spline warp. It's quite easy to implement in OpenGL, a quick Google search for example code returns plenty of hits.
From the sound of it I think your looking for the CoreImage framework. Look into the various distortion effects...in particular CIBumpDistortionLinear.
I don't have any code so check out this tutorial and read up on CoreImage.

Camera API (Detect good pictures, rule of thirds etc)

So I am working on an app that will be taking pictures. I am using OpenCV to do things like detect that people are present in the picture. However what I would like to be able to do is detect if the picture is "good".
I am not sure exactly how to approach it but some ideas are:
I want to either detect a picture follows the rule of thirds. If it does not it could adjust the camera.
Have different types of pictures. So sometimes take a picture of a group and other times individual shots.
I think it may be easiest to take the picture and then try and crop it to meet one of these requirements? But I was wondering if there is any api or something that would be helpful for this?