[Matrix-SIG] ezplot problems

Jeffery D. Collins jcollins@pacificnet.net
Thu, 22 Jul 1999 12:05:47 -0700


Thanks for the quick response.  That seemed to work.  How about
the following?  BTW, my working copy of ezplot.py with the
updates is myplot.py, evident from the traceback below.

>>> ez.win("on")
>>> ez.plot(sin(arange(20)*pi/20))
Opening default cgm plotter.
Opening graphics window 0.
>>> ez.cgm("send")
Opening plot file Aa00.cgm.
>>> ez.ps("send")
Opening plot file Aa00.ps.
Traceback (innermost last):
  File "<stdin>", line 1, in ?
  File "/home/jcollins/python-dev/myplot.py", line 641, in ps
    if new_frame == "no" :
NameError: new_frame


Zane Motteler wrote:

> Jeff,
>
> In looking over your output, I think the first error cascaded all
> the others.
>
> Mea culpa, mea culpa, mea maxima culpa! Here's a patch that
> should fix the problem. Note that a similar patch is needed
> in the postscript routine.
>
> ***************
> *** 508,513 ****
> --- 508,515 ----
>             GistPlotter.Plotter ( "none" , n = _cgm_plotter_, hcp = _cgm_file_)
>         _win_plotters_ [_cgm_plotter_].set_bytscl (_cmin_, _cmax_)
>         _set_axis_limits_ ( )
> +       if not hasattr (cgm, "win_no") :
> +          win_no = _win_plotters_ [_cgm_plotter_]._n
>         if _cgm_plotter_ != win_no :
>            _object_list_ [_cgm_plotter_] = _object_list_ [win_no]
>         if _current_graph_ [_cgm_plotter_] == None :
> ***************
> *** 614,619 ****
> --- 616,623 ----
>             GistPlotter.Plotter ( "none" , n = _ps_plotter_, hcp = _ps_file_)
>         _win_plotters_ [_ps_plotter_].set_bytscl (_cmin_, _cmax_)
>         _set_axis_limits_ ( )
> +       if not hasattr (ps, "win_no") :
> +          win_no = _win_plotters_ [_cgm_plotter_]._n
>         if _ps_plotter_ != win_no :
>            _object_list_ [_ps_plotter_] = _object_list_ [win_no]
>         if _current_graph_ [_ps_plotter_] == None :
>
> Cheers,
>
> Zane
>
> --------------------------------------
> Zane C. Motteler
> Computer Scientist, LCP, X, and A Divisions
> Lawrence Livermore National Laboratory
> 7000 East Avenue, L-038
> Livermore, CA 94550-9234
> 925/423-2143, FAX 925/423-9969
> zcm@llnl.gov
>
> _______________________________________________
> Matrix-SIG maillist  -  Matrix-SIG@python.org
> http://www.python.org/mailman/listinfo/matrix-sig