Compression of two-dimensional packings of cylinders made of rubber and plexiglas