Re: Major ticks is exceeds the plotting window [message #76482] |
Tue, 07 June 2011 08:23 |
Paul Van Delst[1]
Messages: 1157 Registered: April 2002
|
Senior Member |
|
|
Or use the !X.omargin or !Y.omargin sysvars.
From the IDL help:
-----%<-----
OMARGIN
A 2-element array specifying the �outer� margin on the left (bottom) and right (top) sides of a multi-plot window, in
units of character size. A multi-plot window is created by setting the !P.MULTI system variable field. OMARGIN controls
the amount of space around the entire plot area, including individual plot margins set with !X.MARGIN and !Y.MARGIN. The
default values for !X.OMARGIN and !Y.OMARGIN are [0, 0].
When calculating the size and position of the individual plots, IDL first determines the plot region, the area enclosing
the window plus the axis annotation and titles. It then subtracts the appropriate margin from each side, obtaining the
window.
Setting !P.POSITION, or specification of the POSITION parameter overrides the effect of this field.
-----%<-----
cheers,
paulv
Fabzou wrote:
> You could place the plot somewhere else in the window using the POSITION
> keyword, or reduce the fontsize using XCHARSIZE and YCHARSIZE
>
> On 06/07/2011 02:07 PM, abc wrote:
>> Dear all,
>> I am trying to make a plot using the coyote library. The
>> output is fine but the problem is that the last label of both the axis
>> (i.e the major ticks) is exceeds the window and its visible only half.
>> So my question is that how can i resize my plot so that both the major
>> ticks of x and y axis are visible fully. Is there any command in
>> cgplot so that i can change the parameter of the plot. Here is how I
>> am plotting the graph
>>
>> cgplot, a,b, color='green', xrange=[2000,25000], yrange = [2,100],/
>> window
>> cgplot, a1,b1, color='red', /overplot,add
>>
>> thanks in advance
>
|
|
|
Re: Major ticks is exceeds the plotting window [message #76484 is a reply to message #76482] |
Tue, 07 June 2011 05:54  |
Fabzou
Messages: 76 Registered: November 2010
|
Member |
|
|
You could place the plot somewhere else in the window using the POSITION
keyword, or reduce the fontsize using XCHARSIZE and YCHARSIZE
On 06/07/2011 02:07 PM, abc wrote:
> Dear all,
> I am trying to make a plot using the coyote library. The
> output is fine but the problem is that the last label of both the axis
> (i.e the major ticks) is exceeds the window and its visible only half.
> So my question is that how can i resize my plot so that both the major
> ticks of x and y axis are visible fully. Is there any command in
> cgplot so that i can change the parameter of the plot. Here is how I
> am plotting the graph
>
> cgplot, a,b, color='green', xrange=[2000,25000], yrange = [2,100],/
> window
> cgplot, a1,b1, color='red', /overplot,add
>
> thanks in advance
|
|
|