Hi Lena,
I think what you want, instead of trying to call NGSET, is to call:
CALL AGSETP ('GRAPH WINDOW.',GWND,4)
where GWND is an array with four elements that defines the shape of your rectangle in NDC coordinates.
For example:
DATA (GWND(I),I=1,4) / 0.1 , 0.4 , 0.1 , 0.9 /
would give you a plot that is longer in the Y direction than the Y direction.
To get logarithmic axes:
CALL AGSETI ('Y/LOGARITHMIC.',1)
See the attached program, which is a modification of example "agex06.f"
You can get the original version of this program by typing:
ncargex agex06
It changes the size of the windows *and* creates log axes.
--Mary
On Sep 19, 2012, at 8:05 AM, Lena Iredell wrote:
> Hello all -
>
> I'm using the autograph routines to plot a simple x/y plot. I need to
> make the plot a rectangle, not the typical square, with the taller axis
> in along the y-axis. I can make a rectangle with the commands:
>
> CALL NGSETI('LX', 0)
> CALL NGSETI('LY', 0)
> CALL NGSETI('UX',600)
> CALL NGSETI('UY',792)
>
> However the plot is still "orientated" with the x-axis as the longer side.
>
> How can I rotate the plot so the origin point of the x/y axis is along a
> different side of the graph?
>
> To complicate matters I need the y axis to have a log scale with 1100 at
> the origin point and the top of the frame go to 20. I've been able to
> accomplish this using the set commands and mirror imaging the y-axis
> start and end values. As a bit of background I'm plotting an
> atmospheric temperature profile and cannot migrate to NCL code as this
> graphics runs within a series of Fortran programs.
>
> I'm sure that the answer is simple, but I'm just not keying in on the
> correct search terms when trying to search through the examples given!
>
> Thanks for anyone's help on this.
>
> Lena
>
> _______________________________________________
> ncarg-talk mailing list
> ncarg-talk@ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncarg-talk
_______________________________________________
ncarg-talk mailing list
ncarg-talk@ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncarg-talk
This archive was generated by hypermail 2.1.8 : Wed May 15 2013 - 10:21:23 MDT