How to have multiple graphs in one figure in ggplot - python-ggplot

I would like to have multiple graphs in one figure using ggplot. Much like a subplot in matplotlib.

This is currently not possible: https://github.com/yhat/ggplot/issues/181

Related

Is there a software that can help me build a static detailed map of a country which I can export in high resolution? I don't mind the dimension

I need some help in generating a map.
Instead of taking one hundred screenshots of areas and trying to perfectly combine them in photoshop, I wonder if there is a script/software that can export me a big whole area with the same level of detail as I zoom-in. I assume it will be a ~50,000x50,000px image but i really don't mind.
The only thing I really tried is to take multiple screenshots and combine them but I need to work on a big canvas, program crashes or sometimes the whole project is messing up when arranging.

Can we add two flatlists to a section list?

I have two flatlists which are being created by this library. And I want to swapping of cells between the two sections. How can this be done? Or is there any other library which allows this?
I have also tried using https://github.com/gitim/react-native-sortable-list/
Or is there any other library which allows this?
I've used ReactDND with success before. You can certainly drag between sorted lists in ReactDND but it will take a bit of work. See here for examples:
http://react-dnd.github.io/react-dnd/examples/sortable/simple
http://react-dnd.github.io/react-dnd/examples/dustbin/multiple-targets

D3 charts - Combine multiple charts togheter

First of all, I don't have any code yet, as I'd like to understand if what i'm trying to do it's actually possible or not before even try to code it.
Basically, I'm developing an angularjs application, and I need to display some data into charts.
I say charts, because the data is different and I need to display my data using different chart types (bars, lines, area)
So, my idea was to create a directive structured like this:
<my-chart>
<line-chart data="[data]" ...></line-chart>
<line-chart data="[data]" ...></line-chart>
<bar-chart data="[data]" ...></bar-chart>
<area-chart data="[data]" ...></area-chart>
</my-chart>
all the child directives will require the parent directive in order to work.
With this method, I should be able to easily show/hide specific chart based on user selection, but honestly, since I've never developed anything with D3, but i'm learning it now, I don't know if this is even possible or not, or if there's already something that allows my to achieve something like above.
Thanks for any help and sorry if the question is not purely code-related.
There is already an angular library which does something similar to what you want to achieve.
Demo here

How to compare two .mp4 files?

I would like to compare two mp4 files, does somebody has an idea?
Maybe by interposing the video spectrum?
Thanks.
I had an idea for this a while back. I never implemented it, but it went something like this:
Get a good video library to do the heavy lifting for you, I like Aforge.NET
Use the library to walk through the video and extract bitmap frames, get a few hundred
Fix the resolution to a single aspect ratio
Reduce the images to something low-res like 16x16 or 64x64, using a nearest neighbor approach. This will blur the image such that two similar images will reduce to the same
Gather a chunk of these images by relative video timestamp and hash them to further reduce the data
Compare said hashes
Again, I never implemented this, so I don't know if it works, but the thing it has going for it is that video is very complex. While comparing any given frame to another won't work, based on different formats, resolutions, etc., the odds of a series of reduced hashes being the same from two different videos seems very low. Thus, few false positives. Also it seems like it could also tell you if one span of video was contained in another.
If I get around to making something like this I'll circle back here and post about it.

How to use MSER to detect regions in images

I have created an application that extracts the MSER data and stores it in a CvSeq*. I was wondering if there were any functions, or tutorials, in OpenCV that I could use to compare the data with another image using the extracted data of both images.
Thanks.
The simplest implementation of MSER happens to be this one using the C API. There's another listing from the Google SoC here using the C++ API.
I guess your best way to compare results would be to implement the code in any of the above links. Comparing the results with Matlab is generally a good thing, as we can expect that to be a standard (more or less). VlFeat has a library with both C and Matlab interfaces that has MSER functions. The last link also has a brief explanation from where you might be able to understand which "data" to compare. What sort of comparison do you have in mind - if it's similarity between regions in two different images, then using a Gray level Co-occurrence Matrix (GLCM) of the regions should work. The MSER will give you the regions, but comparison may not require further data of MSER.
Did you use the OpenCV cvMSER() function btw, or code the entire thing?

Resources