/[ascend]/trunk/pygtk/plot.i
ViewVC logotype

Diff of /trunk/pygtk/plot.i

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2056 by jpye, Mon Apr 27 06:09:29 2009 UTC revision 2057 by jpye, Thu Jun 25 10:27:30 2009 UTC
# Line 23  SWIG interface for plotting from ASCEND Line 23  SWIG interface for plotting from ASCEND
23              _l = []              _l = []
24              _have_legends = False              _have_legends = False
25              for _c in self.curves:              for _c in self.curves:
26                    _f = _c.getFormat()
27                    _args = [_c.x, _c.y]
28                    if len(_f):
29                        _args += [_f]
30                  if self.isXLog() and self.isYLog():                  if self.isXLog() and self.isYLog():
31                      pylab.loglog(_c.x, _c.y)                      pylab.loglog(*_args)
32                  elif self.isXLog():                  elif self.isXLog():
33                      pylab.semilogx(_c.x, _c.y)                      pylab.semilogx(*_args)
34                  elif self.isYLog():                  elif self.isYLog():
35                      pylab.semilogy(_c.x, _c.y)                      pylab.semilogy(*_args)
36                  else:                  else:
37                      pylab.plot(_c.x, _c.y)                      pylab.plot(*_args)
38                  _l1 = _c.getLegend()                  _l1 = _c.getLegend()
39                  if _l1:                  if _l1:
40                      _have_legends = True                      _have_legends = True

Legend:
Removed from v.2056  
changed lines
  Added in v.2057

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22