Did I find the right examples for you? yes no

All Samples(12)  |  Call(6)  |  Derive(0)  |  Import(6)
Construct horizontal object of a given width

see: xobj

        def hobj(symb, width):
    """Construct horizontal object of a given width

       see: xobj
    """
    return ''.join( xobj(symb, width) )
        


src/s/y/sympy-0.7.5/sympy/printing/pretty/pretty.py   sympy(Download)
 
from .stringpict import prettyForm, stringPict
from .pretty_symbology import xstr, hobj, vobj, xobj, xsym, pretty_symbol, \
    pretty_atom, pretty_use_unicode, pretty_try_use_unicode, greek_unicode, U, \
    annotated
        rootsign.baseline = max(1, bpretty.baseline)
        #build result
        s = prettyForm(hobj('_', 2 + bpretty.width()))
        s = prettyForm(*bpretty.above(s))
        s = prettyForm(*s.left(rootsign))

src/s/y/sympy-HEAD/sympy/printing/pretty/pretty.py   sympy(Download)
 
from .stringpict import prettyForm, stringPict
from .pretty_symbology import xstr, hobj, vobj, xobj, xsym, pretty_symbol, \
    pretty_atom, pretty_use_unicode, pretty_try_use_unicode, greek_unicode, U, \
    annotated
        rootsign.baseline = max(1, bpretty.baseline)
        #build result
        s = prettyForm(hobj('_', 2 + bpretty.width()))
        s = prettyForm(*bpretty.above(s))
        s = prettyForm(*s.left(rootsign))

src/s/y/sympy-polys-HEAD/sympy/printing/pretty/pretty.py   sympy-polys(Download)
from sympy import Interval
 
from pretty_symbology import xstr, hobj, vobj, xobj, xsym, pretty_symbol,\
        pretty_atom, pretty_use_unicode, pretty_try_use_unicode, greek
 
            rootsign.baseline = max(1, bpretty.baseline)
            #build result
            s = prettyForm(hobj('_', 2+ bpretty.width()))
            s = prettyForm(*bpretty.above(s))
            s = prettyForm(*s.left(rootsign))

src/s/y/sympy-0.7.5/sympy/printing/pretty/stringpict.py   sympy(Download)
from __future__ import print_function, division
 
from .pretty_symbology import hobj, vobj, xsym, xobj, pretty_use_unicode
from sympy.core.compatibility import u, string_types, xrange
 
            if obj is not stringPict.LINE)
 
        lineObj = stringPict(hobj('-', newWidth))
 
        #replace LINE with proper lines

src/s/y/sympy-HEAD/sympy/printing/pretty/stringpict.py   sympy(Download)
from __future__ import print_function, division
 
from .pretty_symbology import hobj, vobj, xsym, xobj, pretty_use_unicode
from sympy.core.compatibility import u, string_types, xrange
 
            if obj is not stringPict.LINE)
 
        lineObj = stringPict(hobj('-', newWidth))
 
        #replace LINE with proper lines

src/s/y/sympy-polys-HEAD/sympy/printing/pretty/stringpict.py   sympy-polys(Download)
"""
 
from pretty_symbology import hobj, vobj, xsym, pretty_use_unicode
 
class stringPict(object):
            if obj is not stringPict.LINE)
 
        lineObj = stringPict(hobj('-', newWidth))
 
        #replace LINE with proper lines