Jinwon and Rama,

It looks like the 'show()' function can be removed safely given Rama's
testing and the Matplotlib documentation [0].  It seems to be a function to
display a plot if you are working in an interactive mode, as in using
iPython or iPythonNotebook.  The plot is still rendered and saved using the
code due to calling the savefig() function.

Cheers,


Cameron

[0] - http://matplotlib.org/1.3.1/api/pyplot_api.html#matplotlib.pyplot.show




On Fri, Jun 6, 2014 at 8:43 AM, Kim, Jinwon <j...@atmos.ucla.edu> wrote:

> Rama Rao has found that commenting out the line "plt.show()" in all
> plotting modules in the module toolkit/metrics.py fixes the problem. I also
> found this line works differently in different OS; in Mac, this line
> displays a plot until the user closes the window. After closing the window,
> the code continues on to the next processing. Unlike on a Mac, this line
> does not display a plot in highpressure; it just moves on to the next
> processing. Function of this line may need to be tested and added to Q&A.
>
>
>
> -----------------------------------------------------------------
> Jinwon Kim
> Joint Institute for Regional Earth System Science and Engineering and
> Dept. Atmospheric and Oceanic Sciences
> University of California, Los Angeles
> 607 Charles E Young Drive East, Young Hall, Room 4242, Los Angeles, CA
> 90095-7228, USA
> j...@atmos.ucla.edu; 310-206-2828
> ________________________________________
> From: Mattmann, Chris A (3980) [chris.a.mattm...@jpl.nasa.gov]
> Sent: Thursday, June 05, 2014 10:13 PM
> To: M. V. S. Rama Rao; rcmes-dev; Kim, Jinwon
> Cc: J.Sanjay; dev@climate.apache.org
> Subject: Re: Error with rcmet 2.1.3 version
>
> copying dev@climate.a.o
>
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> Chris Mattmann, Ph.D.
> Chief Architect
> Instrument Software and Science Data Systems Section (398)
> NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA
> Office: 168-519, Mailstop: 168-527
> Email: chris.a.mattm...@nasa.gov
> WWW:  http://sunset.usc.edu/~mattmann/
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> Adjunct Associate Professor, Computer Science Department
> University of Southern California, Los Angeles, CA 90089 USA
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>
>
>
>
>
>
> -----Original Message-----
> From: "M. V. S. Rama Rao" <rama...@tropmet.res.in>
> Date: Thursday, June 5, 2014 9:59 PM
> To: rcmes-dev <rcmes-...@jpl.nasa.gov>, "Kim, Jinwon (329M-Affiliate)"
> <j...@atmos.ucla.edu>
> Cc: "J.Sanjay" <san...@tropmet.res.in>
> Subject: Error with rcmet 2.1.3 version
>
> >Dear all,
> >
> >I am using Jinwon's new version rcmet 2.1.3. It is working fine with
> >CORDEX-SA data. But when I plot one metric, it displays the plot and the
> >terminal becomes idle. (It does not prompt whether to do any other
> >calculation or not?). When I close the plot window, it gives some error
> >and quits. I have attached herewith my config file as well as the error
> >log file. Is it the problem with any of the libraries installed on my
> >system?
> >
> >Could you please help me with this?
> >
> >Thanks for the help.
> >Rama
> >
> >
> >
> >
> >--
> >M.V.S.RamaRao
> >IITM Research Fellow,
> >Centre for Climate Change Research,
> >Indian Institute of Tropical Meteorology,
> >Dr.Homi Bhabha Road,
> >Pashan,Pune-411008.
> >
> >
>
>

Reply via email to