#MATLAB, 24 bytes

Second attempt, now actually conforming to the rules.

    imshow(0:1/49:1,'I',2e3)

The 'I' stands for 'InitialMagnification', but apparently Matlab will autocomplete names in name/value pairs. Sure is a good golfing trick!

![enter image description here][1]


  [1]: https://i.sstatic.net/XBjeB.png