Matching pixel dimensions can no longer produce consistent or expected results in the modern world of high-resolution displays and operating systems with flexible screen scaling. As of 12.1, which fully supports such displays and screen scaling, PixelConstrained is obsolete.


is an option for ArrayPlot that specifies how to constrain cells to align with displayed pixels.


  • The following settings can be given:
  • Trueforce cells to align with pixels
    Falseallow cells of any size
    nmake each cell be n×n pixels
    {m, n}make each cell be m×n pixels


Basic Examples  (1)

Introduced in 2004
Updated in 2007