Hi all,

Does anyone know how to contract /specify grid cell size in graph editor? My aim is to add a "zoomed-in" inset graph to a main graph, but the cells of the inset graph are so wide that they cover up and obscure the axes of the main one (see image below). Naturally, I have used the "contract cells" button under grid edit, but this does not seem to result in any tangible reduction in the white grid cell space around the inset graph. Any advice or suggestions would be immensely appreciated.

Code:
clear
sysuse auto
scatter mpg weight, name(big, replace)
scatter mpg weight if weight > 3500, name(zoom, replace)  fysize(25)  fxsize(25)

graph combine big zoom zoom, holes(3) imargin(0 0 0 0) name(all3, replace)

_gm_edit .all3.plotregion1.graph3.dragable = 1
_gm_edit .all3.plotregion1.graph3.DragBy 63.25133512999842 -30.98417329390391
_gm_edit .all3.plotregion1.graph2.draw_view.setstyle, style(no)

*** _gm_edit .all3.plotregion1.graph3.DragBy -29.88281986023679 2.235329044663378 ***
*** _gm_edit .all3.plotregion1.Expand graph1  below 1 ***
***_gm_edit .all3.plotregion1.graph3.DragBy -31.05930883111222 1.411786765050586 ***

gr dis all3
Note. Aside from the three lines with asterisks, code is copied from a reply by Mead Over to a post in 2014: see https://www.statalist.org/forums/for...hs-using-stata

These three added lines of code expand the main graph downwards so that it fills up more space. At this point, the length of the inset graph grid cells increase, causing the inset graph to overlap and obscure the axes of the main one...