Size of Image
proland
I am trying to programatically create an image of a two-dimensional wave. Using the NewImage command, the window size is calculated as described in the manual: "The graph is sized to make the image pixels a multiple of the screen pixels with the graph size constrained to be not too small and not too large."
Since my waves have less than 50 points, this results in a rather small window. How can I programatically change the window size afterwards?
check out ModifyGraph and the options "expand", "width" and "height"
April 11, 2012 at 11:17 pm - Permalink
ModifyGraph height={Plan,1,left,bottom}
. However, if you have created the image usingNewImage
instead ofDisplay; AppendImage
, remember that the default horizontal axis is top (not bottom). That trips me up all the time.April 12, 2012 at 06:07 am - Permalink
One way to remember this is to recall that most languages present page contents for reading from left to right, top to bottom.
[offtopic]
This is also useful information for laying out slide frames for a presentation ... the items at the center of that frame's talking point belong foremost on the top and left, since this is where our eyes will gravitate first (and indeed return to at the end of our "review" of the entire slide frame). See if you sense how uncomfortable it feels to view a slide with text filling the entire left side of the frame and an image that is supposed to centralize the theme being jammed somewhere at the right or bottom.
[/offtopic]
--
J. J. Weimer
Chemistry / Chemical & Materials Engineering, UAHuntsville
April 12, 2012 at 07:19 am - Permalink