X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 29 Jun 2007 03:01 PM by  anon
plot size
 3 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
29 Jun 2007 03:01 PM
    When I use the plot command, I get a graph that seems to be about 800 pixels by 600 pixels. How can I change this? I want my graph to fill my 1600 x 1200 monitor. This line works fine: plot, year, period/31558120.0235718, xrange=[2008, 10000], yrange=[0.99, 1.01], psym=3 But in this line (identical except for yrange), it ignores my yrange and starts the graph at 0 instead of 2008. How can I force it to obey me? plot, year, period/31558120.0235718, xrange=[2008, 30000], yrange=[0.99, 1.01], psym=3 Do I see Simon from Orbiter in this forum :)

    Deleted User



    New Member


    Posts:
    New Member


    --
    29 Jun 2007 03:01 PM
    sorry, I said yrange when I meant xrange in the above post

    Deleted User



    New Member


    Posts:
    New Member


    --
    29 Jun 2007 03:01 PM
    The default axis-drawing behavior of IDL Direct Graphics is to choose a start and end-point for the axis display that promotes nice round numbers for a set of evenly-spaced tick marks. To override this default behavior and get the axes to draw according to a programmer's exact specifications IDL Direct Graphics has the keywords X|Y|ZSTYLE, which, when set to the value 1, will put the end-points of an axis at either the end values specified by the X|Y|ZRANGE keywords or, if those are not present, at the MIN( ) and MAX( ) values of the data argument(s). Thus: plot, year, period, XRANGE=[2008, 30000], YRANGE=[0.99, 1.01], PSYM=3, XSTYLE=1 will whip your X axis into shape (but still let IDL decide on the "prettiest" Y axis limits). You might prefer to call this with a slightly rounder X axis limit, like: plot, year, period, XRANGE=[2000, 30000], YRANGE=[0.99, 1.01], PSYM=3, XSTYLE=1 James Jones

    Deleted User



    New Member


    Posts:
    New Member


    --
    29 Jun 2007 03:01 PM
    >When I use the plot command, I get a graph that seems to be about 800 pixels by 600 pixels. >How can I change this? I want my graph to fill my 1600 x 1200 monitor. window,0,xsize=1600,ysize=1200 ;-) >Do I see Simon from Orbiter in this forum :) Ssssh, you do!
    You are not authorized to post a reply.