Best Python code snippet using hypothesis
markers.py
Source:markers.py
...299 For unfilled markers this is the whole marker, for filled markers,300 this is the area to be drawn with *markerfacecolor*.301 """302 return self._path303 def get_transform(self):304 """305 Return the transform to be applied to the `.Path` from306 `MarkerStyle.get_path()`.307 """308 return self._transform.frozen()309 def get_alt_path(self):310 """311 Return a `.Path` for the alternate part of the marker.312 For unfilled markers, this is *None*; for filled markers, this is the313 area to be drawn with *markerfacecoloralt*.314 """315 return self._alt_path316 def get_alt_transform(self):317 """318 Return the transform to be applied to the `.Path` from319 `MarkerStyle.get_alt_path()`.320 """321 return self._alt_transform.frozen()322 def get_snap_threshold(self):323 return self._snap_threshold324 def _set_nothing(self):325 self._filled = False326 def _set_custom_marker(self, path):327 rescale = np.max(np.abs(path.vertices)) # max of x's and y's.328 self._transform = Affine2D().scale(0.5 / rescale)329 self._path = path330 def _set_path_marker(self):...
transform.py
Source:transform.py
1# This file was automatically generated by SWIG (http://www.swig.org).2# Version 2.0.113#4# Do not make changes to this file unless you know what you are doing--modify5# the SWIG interface file instead.6from sys import version_info7if version_info >= (2,6,0):8 def swig_import_helper():9 from os.path import dirname10 import imp11 fp = None12 try:13 fp, pathname, description = imp.find_module('_transform', [dirname(__file__)])14 except ImportError:15 import _transform16 return _transform17 if fp is not None:18 try:19 _mod = imp.load_module('_transform', fp, pathname, description)20 finally:21 fp.close()22 return _mod23 _transform = swig_import_helper()24 del swig_import_helper25else:26 import _transform27del version_info28try:29 _swig_property = property30except NameError:31 pass # Python < 2.2 doesn't have 'property'.32def _swig_setattr_nondynamic(self,class_type,name,value,static=1):33 if (name == "thisown"): return self.this.own(value)34 if (name == "this"):35 if type(value).__name__ == 'SwigPyObject':36 self.__dict__[name] = value37 return38 method = class_type.__swig_setmethods__.get(name,None)39 if method: return method(self,value)40 if (not static):41 self.__dict__[name] = value42 else:43 raise AttributeError("You cannot add attributes to %s" % self)44def _swig_setattr(self,class_type,name,value):45 return _swig_setattr_nondynamic(self,class_type,name,value,0)46def _swig_getattr(self,class_type,name):47 if (name == "thisown"): return self.this.own()48 method = class_type.__swig_getmethods__.get(name,None)49 if method: return method(self)50 raise AttributeError(name)51def _swig_repr(self):52 try: strthis = "proxy of " + self.this.__repr__()53 except: strthis = ""54 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)55try:56 _object = object57 _newclass = 158except AttributeError:59 class _object : pass60 _newclass = 061class SwigPyIterator(_object):62 __swig_setmethods__ = {}63 __setattr__ = lambda self, name, value: _swig_setattr(self, SwigPyIterator, name, value)64 __swig_getmethods__ = {}65 __getattr__ = lambda self, name: _swig_getattr(self, SwigPyIterator, name)66 def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract")67 __repr__ = _swig_repr68 __swig_destroy__ = _transform.delete_SwigPyIterator69 __del__ = lambda self : None;70 def value(self): return _transform.SwigPyIterator_value(self)71 def incr(self, n=1): return _transform.SwigPyIterator_incr(self, n)72 def decr(self, n=1): return _transform.SwigPyIterator_decr(self, n)73 def distance(self, *args): return _transform.SwigPyIterator_distance(self, *args)74 def equal(self, *args): return _transform.SwigPyIterator_equal(self, *args)75 def copy(self): return _transform.SwigPyIterator_copy(self)76 def next(self): return _transform.SwigPyIterator_next(self)77 def __next__(self): return _transform.SwigPyIterator___next__(self)78 def previous(self): return _transform.SwigPyIterator_previous(self)79 def advance(self, *args): return _transform.SwigPyIterator_advance(self, *args)80 def __eq__(self, *args): return _transform.SwigPyIterator___eq__(self, *args)81 def __ne__(self, *args): return _transform.SwigPyIterator___ne__(self, *args)82 def __iadd__(self, *args): return _transform.SwigPyIterator___iadd__(self, *args)83 def __isub__(self, *args): return _transform.SwigPyIterator___isub__(self, *args)84 def __add__(self, *args): return _transform.SwigPyIterator___add__(self, *args)85 def __sub__(self, *args): return _transform.SwigPyIterator___sub__(self, *args)86 def __iter__(self): return self87SwigPyIterator_swigregister = _transform.SwigPyIterator_swigregister88SwigPyIterator_swigregister(SwigPyIterator)89def init(*args):90 return _transform.init(*args)91init = _transform.init92def transform(*args):93 return _transform.transform(*args)94transform = _transform.transform95class DoubleVector(_object):96 __swig_setmethods__ = {}97 __setattr__ = lambda self, name, value: _swig_setattr(self, DoubleVector, name, value)98 __swig_getmethods__ = {}99 __getattr__ = lambda self, name: _swig_getattr(self, DoubleVector, name)100 __repr__ = _swig_repr101 def iterator(self): return _transform.DoubleVector_iterator(self)102 def __iter__(self): return self.iterator()103 def __nonzero__(self): return _transform.DoubleVector___nonzero__(self)104 def __bool__(self): return _transform.DoubleVector___bool__(self)105 def __len__(self): return _transform.DoubleVector___len__(self)106 def pop(self): return _transform.DoubleVector_pop(self)107 def __getslice__(self, *args): return _transform.DoubleVector___getslice__(self, *args)108 def __setslice__(self, *args): return _transform.DoubleVector___setslice__(self, *args)109 def __delslice__(self, *args): return _transform.DoubleVector___delslice__(self, *args)110 def __delitem__(self, *args): return _transform.DoubleVector___delitem__(self, *args)111 def __getitem__(self, *args): return _transform.DoubleVector___getitem__(self, *args)112 def __setitem__(self, *args): return _transform.DoubleVector___setitem__(self, *args)113 def append(self, *args): return _transform.DoubleVector_append(self, *args)114 def empty(self): return _transform.DoubleVector_empty(self)115 def size(self): return _transform.DoubleVector_size(self)116 def clear(self): return _transform.DoubleVector_clear(self)117 def swap(self, *args): return _transform.DoubleVector_swap(self, *args)118 def get_allocator(self): return _transform.DoubleVector_get_allocator(self)119 def begin(self): return _transform.DoubleVector_begin(self)120 def end(self): return _transform.DoubleVector_end(self)121 def rbegin(self): return _transform.DoubleVector_rbegin(self)122 def rend(self): return _transform.DoubleVector_rend(self)123 def pop_back(self): return _transform.DoubleVector_pop_back(self)124 def erase(self, *args): return _transform.DoubleVector_erase(self, *args)125 def __init__(self, *args): 126 this = _transform.new_DoubleVector(*args)127 try: self.this.append(this)128 except: self.this = this129 def push_back(self, *args): return _transform.DoubleVector_push_back(self, *args)130 def front(self): return _transform.DoubleVector_front(self)131 def back(self): return _transform.DoubleVector_back(self)132 def assign(self, *args): return _transform.DoubleVector_assign(self, *args)133 def resize(self, *args): return _transform.DoubleVector_resize(self, *args)134 def insert(self, *args): return _transform.DoubleVector_insert(self, *args)135 def reserve(self, *args): return _transform.DoubleVector_reserve(self, *args)136 def capacity(self): return _transform.DoubleVector_capacity(self)137 __swig_destroy__ = _transform.delete_DoubleVector138 __del__ = lambda self : None;139DoubleVector_swigregister = _transform.DoubleVector_swigregister140DoubleVector_swigregister(DoubleVector)...
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!