~ubuntu-branches/debian/sid/pyx/sid

« back to all changes in this revision

Viewing changes to pyx/graph/axis/rater.py

  • Committer: Package Import Robot
  • Author(s): Stuart Prescott
  • Date: 2012-12-17 13:45:12 UTC
  • mto: (9.1.1 experimental)
  • mto: This revision was merged to the branch mainline in revision 10.
  • Revision ID: package-import@ubuntu.com-20121217134512-q85pr3q75fxii7mq
Tags: upstream-0.12.1
Import upstream version 0.12.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
#
4
4
# Copyright (C) 2002-2004 Jörg Lehmann <joergl@users.sourceforge.net>
5
5
# Copyright (C) 2003-2004 Michael Schindler <m-schindler@users.sourceforge.net>
6
 
# Copyright (C) 2002-2006 André Wobst <wobsta@users.sourceforge.net>
 
6
# Copyright (C) 2002-2012 André Wobst <wobsta@users.sourceforge.net>
7
7
#
8
8
# This file is part of PyX (http://pyx.sourceforge.net/).
9
9
#
166
166
        - within the rating, all ticks with a higher level are
167
167
          considered as ticks for a given level"""
168
168
        maxticklevel, maxlabellevel = tick.maxlevels(ticks)
 
169
        if not maxticklevel and not maxlabellevel:
 
170
            return None
169
171
        numticks = [0]*maxticklevel
170
172
        numlabels = [0]*maxlabellevel
171
173
        for t in ticks: