FloatList ( 56 'manualTicks', 57, 58 descr = _ ( 'List of tick values overriding defaults' ), 59 usertext = _ ( 'Manual ticks' ) ) ) 60 61 def getLength (self, painter ): 62 '''Return tick length in painter coordinates''' 63 64 return self. Int ( 51 'number', 52 6, 53 descr = _ ( 'Number of major ticks to aim for' ), 54 usertext = _ ( 'Number' ) ) ) 55 self. DistancePt ( 46 'length', 47 '6pt', 48 descr = _ ( 'Length of major ticks' ), 49 usertext = _ ( 'Length' ) ) ) 50 self. Line ): 41 '''Major tick settings.''' 42 43 def _init_ (self, name, **args ): 44 setting. translate (context, text, disambiguation ) 39 40 class MajorTick (setting. import controlgraph 33 34 # 35 36 def _ (text, disambiguation = None, context = 'Axis' ): 37 """Translate text.""" 38 return qt. 17 # 18 19 """Widget to plot axes, and to handle conversion of coordinates to plot 20 positions.""" 21 22 import numpy as N 23 import re 24 25 from.
13 # 14 # You should have received a copy of the GNU General Public License along 15 # with this program if not, write to the Free Software Foundation, Inc., 16 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. See the 12 # GNU General Public License for more details. 8 # 9 # This program is distributed in the hope that it will be useful, 10 # but WITHOUT ANY WARRANTY without even the implied warranty of 11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Sanders 2 # Email: Jeremy Sanders 3 # 4 # This program is free software you can redistribute it and/or modify 5 # it under the terms of the GNU General Public License as published by 6 # the Free Software Foundation either version 2 of the License, or 7 # (at your option) any later version.
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Python source code syntax highlighting (style: standard) with prefixed line numbers.Īlternatively you can here view or download the uninterpreted source code file.įor more information about "axis.py" see the Fossies "Dox" file reference documentation and the latest Fossies "Diffs" side-by-side code changes report: 3.3.1_vs_3.4.ġ # Copyright (C) 2003 Jeremy S.