Hard to tell without having the package... Anyways, for that instruction to 
be executed, the Ngl package directory should contain an __init__.py file 
that either directly contains a `def open_wks` statement, or has an import 
statement like `from Ngs.something import *` where "something" is a module 
containing the `def open_wks` statement, and the `*` will allow the 
function to actually be called with `Ngl.open_wks`...

Em terça-feira, 18 de março de 2014 21h37min51s UTC-3, Paul Fisher escreveu:
>
> So I'm using the dmg install on Mavericks and I finally figured out where 
> in the app package to put the PyNGL site-package. The problem is I get 
> complaints about not being able to open an X11 window for any call to 
> plot() that gets handled by NGL:
>
>  plot(c1)
>   File "ClimateGraphics.py", line 138, in plot
>     w = Ngl.open_wks('x11','Climate Workbook')
> AttributeError: 'module' object has no attribute 'open_wks'
>
> The reason I need this is for the ClimateUtilities and ClimateGraphics 
> packages that go with Ray PierreHumbert's "Principles of Planetary 
> Climate". I could use MatPlotLib but for assorted reasons I'd prefer to use 
> NGL (for one thing most of the examples were written to use NGL and do not 
> display all that well with MatPlotLib ... missing axis labels etc.)
>
> I'm trying to create an environment that can be used by high school 
> students studying climate. Obviously we are doing some programming but my 
> goal here is not to turn them into a bunch *nix hackers (... I have a 
> completely separate course for that ...)
>
> Any thoughts out there?
>
> I do have XQuartz installed.
>
> Thanks,
>
> Paul Fisher
>

-- 
You received this message because you are subscribed to the Google Groups 
"spyder" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.

Reply via email to