Re: Text annotations not appearing when floats are used in XY plot with modified axis labels

From: Oleksandr Huziy <guziy.sasha_at_nyahnyahspammersnyahnyah>
Date: Wed Jun 20 2012 - 10:43:30 MDT

They are also floats in the script I have sent you. But the labels are
showing. I was guessing that with x=y=0, you somehow got your captions
outside the figure.

Cheers

--
Oleksandr
2012/6/20 Carmen St. Jean <carmen.stjean@noaa.gov>
> Hi Oleksandr,
>
> I'm sorry; I really wasn't very clear about which float and integer
> values I was referring to.  The x and y values I meant are the x and y
> inputs for the Ngl.xy() function, not any positioning values for calls
> to the Ngl.text() function.  Please see the plotTemps,
> plotElevsMeters, and plotElevsFeet variables in my code.
>
> Thanks,
>
> Carmen
>
> On Wed, Jun 20, 2012 at 12:30 PM, Oleksandr Huziy <guziy.sasha@gmail.com>
> wrote:
> > Hi,
> >
> > I am just a beginner with pyngl, but when I put x=0.1 and y=-0.1
> > in Ngl.text it kind of works. See the attached script.
> >
> > Cheers
> > --
> > Oleksandr (Sasha) Huziy
> > Phd student, UQAM
> >
> > 2012/6/20 Carmen St. Jean <carmen.stjean@noaa.gov>
> >>
> >> Hello,
> >>
> >> I've run into the most puzzling problem with my code under extremely
> >> specific circumstances.
> >>
> >> I have an xy plot where I have modified the x-axis and y-axis labels
> >> in order to show additional units (i.e., degrees F in addition to
> >> degrees C and feet in addition to meters).  Then I am attempting to
> >> place three lines of text above my plot and three lines of text below
> >> my plot by using text annotations.
> >>
> >> The problem is that the text above and below the plot only appear when
> >> I am using integer values instead of floats for x and y.  Or if I use
> >> floats while I don't bother modifying my x-axis and y-axis labels,
> >> then the text does appear.  But if I modify the axis labels and use
> >> floats, then the text annotations simply do not appear.  It is
> >> surprising that this is happening because I was able to modify the
> >> labels x-axis and y-axis of a contour plot and successfully add text
> >> above and below the plot.  The input I gave the contour function was
> >> all float values.
> >>
> >> So this leaves me unsure of where the underlying problem is...  Is my
> >> approach to modifying my labels is problematic so that it is somehow
> >> affecting the text annotations down the road (though only when I am
> >> using floats for x and y)?  Is there something I have overlooked here?
> >>
> >> Thanks,
> >>
> >> Carmen
> >>
> >> _______________________________________________
> >> pyngl-talk mailing list
> >> List instructions, subscriber options, unsubscribe:
> >> http://mailman.ucar.edu/mailman/listinfo/pyngl-talk
> >>
> >
>

_______________________________________________
pyngl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/pyngl-talk
Received on Wed Jun 20 10:43:39 2012

This archive was generated by hypermail 2.1.8 : Tue Jul 03 2012 - 15:43:36 MDT