i learned it is possible to create histogram like chart by using the Julia code
using Plots a = randn(1000); b = [length(filter(x -> i <= x < i+.2, a)) for i = -4:.2:4]; bar(b);
i know this code is no good in terms of performance. but i expected the filter method to be able to deal with two arrays, so that i can write something like
a = randn(100); b = randn(100); c = [length(filter((x,y) -> i<=x<i+.2 && j<=y<j+.2 , a, b)) for i = -4:.2:4, j = -4:.2:4];
could you please help me find some short way of creating an array according to histogram2d rules?
this is my very first coding question on internet. sorry for anything weird.