What do you mean by "resizing the pixel size"?
If you want to draw 4000 units in a 400 pixels window, either you set some kind of zoom (e.g. skip 9 of every 10 points) or you need a bigger, scrollable, window.