doc_content stringlengths 1 386k | doc_id stringlengths 5 188 |
|---|---|
ZipInfo.flag_bits
ZIP flag bits. | python.library.zipfile#zipfile.ZipInfo.flag_bits |
classmethod ZipInfo.from_file(filename, arcname=None, *, strict_timestamps=True)
Construct a ZipInfo instance for a file on the filesystem, in preparation for adding it to a zip file. filename should be the path to a file or directory on the filesystem. If arcname is specified, it is used as the name within the archi... | python.library.zipfile#zipfile.ZipInfo.from_file |
ZipInfo.header_offset
Byte offset to the file header. | python.library.zipfile#zipfile.ZipInfo.header_offset |
ZipInfo.internal_attr
Internal attributes. | python.library.zipfile#zipfile.ZipInfo.internal_attr |
ZipInfo.is_dir()
Return True if this archive member is a directory. This uses the entry’s name: directories should always end with /. New in version 3.6. | python.library.zipfile#zipfile.ZipInfo.is_dir |
ZipInfo.reserved
Must be zero. | python.library.zipfile#zipfile.ZipInfo.reserved |
ZipInfo.volume
Volume number of file header. | python.library.zipfile#zipfile.ZipInfo.volume |
zipfile.ZIP_BZIP2
The numeric constant for the BZIP2 compression method. This requires the bz2 module. New in version 3.3. | python.library.zipfile#zipfile.ZIP_BZIP2 |
zipfile.ZIP_DEFLATED
The numeric constant for the usual ZIP compression method. This requires the zlib module. | python.library.zipfile#zipfile.ZIP_DEFLATED |
zipfile.ZIP_LZMA
The numeric constant for the LZMA compression method. This requires the lzma module. New in version 3.3. Note The ZIP file format specification has included support for bzip2 compression since 2001, and for LZMA compression since 2006. However, some tools (including older Python releases) do not s... | python.library.zipfile#zipfile.ZIP_LZMA |
zipfile.ZIP_STORED
The numeric constant for an uncompressed archive member. | python.library.zipfile#zipfile.ZIP_STORED |
zipimport — Import modules from Zip archives Source code: Lib/zipimport.py This module adds the ability to import Python modules (*.py, *.pyc) and packages from ZIP-format archives. It is usually not needed to use the zipimport module explicitly; it is automatically used by the built-in import mechanism for sys.path it... | python.library.zipimport |
class zipimport.zipimporter(archivepath)
Create a new zipimporter instance. archivepath must be a path to a ZIP file, or to a specific path within a ZIP file. For example, an archivepath of foo/bar.zip/lib will look for modules in the lib directory inside the ZIP file foo/bar.zip (provided that it exists). ZipImportE... | python.library.zipimport#zipimport.zipimporter |
archive
The file name of the importer’s associated ZIP file, without a possible subpath. | python.library.zipimport#zipimport.zipimporter.archive |
find_module(fullname[, path])
Search for a module specified by fullname. fullname must be the fully qualified (dotted) module name. It returns the zipimporter instance itself if the module was found, or None if it wasn’t. The optional path argument is ignored—it’s there for compatibility with the importer protocol. | python.library.zipimport#zipimport.zipimporter.find_module |
get_code(fullname)
Return the code object for the specified module. Raise ZipImportError if the module couldn’t be found. | python.library.zipimport#zipimport.zipimporter.get_code |
get_data(pathname)
Return the data associated with pathname. Raise OSError if the file wasn’t found. Changed in version 3.3: IOError used to be raised instead of OSError. | python.library.zipimport#zipimport.zipimporter.get_data |
get_filename(fullname)
Return the value __file__ would be set to if the specified module was imported. Raise ZipImportError if the module couldn’t be found. New in version 3.1. | python.library.zipimport#zipimport.zipimporter.get_filename |
get_source(fullname)
Return the source code for the specified module. Raise ZipImportError if the module couldn’t be found, return None if the archive does contain the module, but has no source for it. | python.library.zipimport#zipimport.zipimporter.get_source |
is_package(fullname)
Return True if the module specified by fullname is a package. Raise ZipImportError if the module couldn’t be found. | python.library.zipimport#zipimport.zipimporter.is_package |
load_module(fullname)
Load the module specified by fullname. fullname must be the fully qualified (dotted) module name. It returns the imported module, or raises ZipImportError if it wasn’t found. | python.library.zipimport#zipimport.zipimporter.load_module |
prefix
The subpath within the ZIP file where modules are searched. This is the empty string for zipimporter objects which point to the root of the ZIP file. | python.library.zipimport#zipimport.zipimporter.prefix |
exception zipimport.ZipImportError
Exception raised by zipimporter objects. It’s a subclass of ImportError, so it can be caught as ImportError, too. | python.library.zipimport#zipimport.ZipImportError |
zlib — Compression compatible with gzip For applications that require data compression, the functions in this module allow compression and decompression, using the zlib library. The zlib library has its own home page at https://www.zlib.net. There are known incompatibilities between the Python module and versions of th... | python.library.zlib |
zlib.adler32(data[, value])
Computes an Adler-32 checksum of data. (An Adler-32 checksum is almost as reliable as a CRC32 but can be computed much more quickly.) The result is an unsigned 32-bit integer. If value is present, it is used as the starting value of the checksum; otherwise, a default value of 1 is used. Pa... | python.library.zlib#zlib.adler32 |
zlib.compress(data, /, level=-1)
Compresses the bytes in data, returning a bytes object containing compressed data. level is an integer from 0 to 9 or -1 controlling the level of compression; 1 (Z_BEST_SPEED) is fastest and produces the least compression, 9 (Z_BEST_COMPRESSION) is slowest and produces the most. 0 (Z_... | python.library.zlib#zlib.compress |
Compress.compress(data)
Compress data, returning a bytes object containing compressed data for at least part of the data in data. This data should be concatenated to the output produced by any preceding calls to the compress() method. Some input may be kept in internal buffers for later processing. | python.library.zlib#zlib.Compress.compress |
Compress.copy()
Returns a copy of the compression object. This can be used to efficiently compress a set of data that share a common initial prefix. | python.library.zlib#zlib.Compress.copy |
Compress.flush([mode])
All pending input is processed, and a bytes object containing the remaining compressed output is returned. mode can be selected from the constants Z_NO_FLUSH, Z_PARTIAL_FLUSH, Z_SYNC_FLUSH, Z_FULL_FLUSH, Z_BLOCK (zlib 1.2.3.4), or Z_FINISH, defaulting to Z_FINISH. Except Z_FINISH, all constants... | python.library.zlib#zlib.Compress.flush |
zlib.compressobj(level=-1, method=DEFLATED, wbits=MAX_WBITS, memLevel=DEF_MEM_LEVEL, strategy=Z_DEFAULT_STRATEGY[, zdict])
Returns a compression object, to be used for compressing data streams that won’t fit into memory at once. level is the compression level – an integer from 0 to 9 or -1. A value of 1 (Z_BEST_SPEED... | python.library.zlib#zlib.compressobj |
zlib.crc32(data[, value])
Computes a CRC (Cyclic Redundancy Check) checksum of data. The result is an unsigned 32-bit integer. If value is present, it is used as the starting value of the checksum; otherwise, a default value of 0 is used. Passing in value allows computing a running checksum over the concatenation of ... | python.library.zlib#zlib.crc32 |
zlib.decompress(data, /, wbits=MAX_WBITS, bufsize=DEF_BUF_SIZE)
Decompresses the bytes in data, returning a bytes object containing the uncompressed data. The wbits parameter depends on the format of data, and is discussed further below. If bufsize is given, it is used as the initial size of the output buffer. Raises... | python.library.zlib#zlib.decompress |
Decompress.copy()
Returns a copy of the decompression object. This can be used to save the state of the decompressor midway through the data stream in order to speed up random seeks into the stream at a future point. | python.library.zlib#zlib.Decompress.copy |
Decompress.decompress(data, max_length=0)
Decompress data, returning a bytes object containing the uncompressed data corresponding to at least part of the data in string. This data should be concatenated to the output produced by any preceding calls to the decompress() method. Some of the input data may be preserved ... | python.library.zlib#zlib.Decompress.decompress |
Decompress.eof
A boolean indicating whether the end of the compressed data stream has been reached. This makes it possible to distinguish between a properly-formed compressed stream, and an incomplete or truncated one. New in version 3.3. | python.library.zlib#zlib.Decompress.eof |
Decompress.flush([length])
All pending input is processed, and a bytes object containing the remaining uncompressed output is returned. After calling flush(), the decompress() method cannot be called again; the only realistic action is to delete the object. The optional parameter length sets the initial size of the o... | python.library.zlib#zlib.Decompress.flush |
Decompress.unconsumed_tail
A bytes object that contains any data that was not consumed by the last decompress() call because it exceeded the limit for the uncompressed data buffer. This data has not yet been seen by the zlib machinery, so you must feed it (possibly with further data concatenated to it) back to a subs... | python.library.zlib#zlib.Decompress.unconsumed_tail |
Decompress.unused_data
A bytes object which contains any bytes past the end of the compressed data. That is, this remains b"" until the last byte that contains compression data is available. If the whole bytestring turned out to contain compressed data, this is b"", an empty bytes object. | python.library.zlib#zlib.Decompress.unused_data |
zlib.decompressobj(wbits=MAX_WBITS[, zdict])
Returns a decompression object, to be used for decompressing data streams that won’t fit into memory at once. The wbits parameter controls the size of the history buffer (or the “window size”), and what header and trailer format is expected. It has the same meaning as desc... | python.library.zlib#zlib.decompressobj |
exception zlib.error
Exception raised on compression and decompression errors. | python.library.zlib#zlib.error |
zlib.ZLIB_RUNTIME_VERSION
The version string of the zlib library actually loaded by the interpreter. New in version 3.3. | python.library.zlib#zlib.ZLIB_RUNTIME_VERSION |
zlib.ZLIB_VERSION
The version string of the zlib library that was used for building the module. This may be different from the zlib library actually used at runtime, which is available as ZLIB_RUNTIME_VERSION. | python.library.zlib#zlib.ZLIB_VERSION |
zoneinfo — IANA time zone support New in version 3.9. The zoneinfo module provides a concrete time zone implementation to support the IANA time zone database as originally specified in PEP 615. By default, zoneinfo uses the system’s time zone data if available; if no system time zone data is available, the library wi... | python.library.zoneinfo |
zoneinfo.available_timezones()
Get a set containing all the valid keys for IANA time zones available anywhere on the time zone path. This is recalculated on every call to the function. This function only includes canonical zone names and does not include “special” zones such as those under the posix/ and right/ direc... | python.library.zoneinfo#zoneinfo.available_timezones |
exception zoneinfo.InvalidTZPathWarning
Raised when PYTHONTZPATH contains an invalid component that will be filtered out, such as a relative path. | python.library.zoneinfo#zoneinfo.InvalidTZPathWarning |
zoneinfo.reset_tzpath(to=None)
Sets or resets the time zone search path (TZPATH) for the module. When called with no arguments, TZPATH is set to the default value. Calling reset_tzpath will not invalidate the ZoneInfo cache, and so calls to the primary ZoneInfo constructor will only use the new TZPATH in the case of ... | python.library.zoneinfo#zoneinfo.reset_tzpath |
zoneinfo.TZPATH
A read-only sequence representing the time zone search path – when constructing a ZoneInfo from a key, the key is joined to each entry in the TZPATH, and the first file found is used. TZPATH may contain only absolute paths, never relative paths, regardless of how it is configured. The object that zone... | python.library.zoneinfo#zoneinfo.TZPATH |
class zoneinfo.ZoneInfo(key)
A concrete datetime.tzinfo subclass that represents an IANA time zone specified by the string key. Calls to the primary constructor will always return objects that compare identically; put another way, barring cache invalidation via ZoneInfo.clear_cache(), for all values of key, the follo... | python.library.zoneinfo#zoneinfo.ZoneInfo |
classmethod ZoneInfo.clear_cache(*, only_keys=None)
A method for invalidating the cache on the ZoneInfo class. If no arguments are passed, all caches are invalidated and the next call to the primary constructor for each key will return a new instance. If an iterable of key names is passed to the only_keys parameter, ... | python.library.zoneinfo#zoneinfo.ZoneInfo.clear_cache |
classmethod ZoneInfo.from_file(fobj, /, key=None)
Constructs a ZoneInfo object from a file-like object returning bytes (e.g. a file opened in binary mode or an io.BytesIO object). Unlike the primary constructor, this always constructs a new object. The key parameter sets the name of the zone for the purposes of __str... | python.library.zoneinfo#zoneinfo.ZoneInfo.from_file |
ZoneInfo.key
This is a read-only attribute that returns the value of key passed to the constructor, which should be a lookup key in the IANA time zone database (e.g. America/New_York, Europe/Paris or Asia/Tokyo). For zones constructed from file without specifying a key parameter, this will be set to None. Note Altho... | python.library.zoneinfo#zoneinfo.ZoneInfo.key |
classmethod ZoneInfo.no_cache(key)
An alternate constructor that bypasses the constructor’s cache. It is identical to the primary constructor, but returns a new object on each call. This is most likely to be useful for testing or demonstration purposes, but it can also be used to create a system with a different cach... | python.library.zoneinfo#zoneinfo.ZoneInfo.no_cache |
exception zoneinfo.ZoneInfoNotFoundError
Raised when construction of a ZoneInfo object fails because the specified key could not be found on the system. This is a subclass of KeyError. | python.library.zoneinfo#zoneinfo.ZoneInfoNotFoundError |
_thread — Low-level threading API This module provides low-level primitives for working with multiple threads (also called light-weight processes or tasks) — multiple threads of control sharing their global data space. For synchronization, simple locks (also called mutexes or binary semaphores) are provided. The thread... | python.library._thread |
_thread.allocate_lock()
Return a new lock object. Methods of locks are described below. The lock is initially unlocked. | python.library._thread#_thread.allocate_lock |
exception _thread.error
Raised on thread-specific errors. Changed in version 3.3: This is now a synonym of the built-in RuntimeError. | python.library._thread#_thread.error |
_thread.exit()
Raise the SystemExit exception. When not caught, this will cause the thread to exit silently. | python.library._thread#_thread.exit |
_thread.get_ident()
Return the ‘thread identifier’ of the current thread. This is a nonzero integer. Its value has no direct meaning; it is intended as a magic cookie to be used e.g. to index a dictionary of thread-specific data. Thread identifiers may be recycled when a thread exits and another thread is created. | python.library._thread#_thread.get_ident |
_thread.get_native_id()
Return the native integral Thread ID of the current thread assigned by the kernel. This is a non-negative integer. Its value may be used to uniquely identify this particular thread system-wide (until the thread terminates, after which the value may be recycled by the OS). Availability: Windows... | python.library._thread#_thread.get_native_id |
_thread.interrupt_main()
Simulate the effect of a signal.SIGINT signal arriving in the main thread. A thread can use this function to interrupt the main thread. If signal.SIGINT isn’t handled by Python (it was set to signal.SIG_DFL or signal.SIG_IGN), this function does nothing. | python.library._thread#_thread.interrupt_main |
lock.acquire(waitflag=1, timeout=-1)
Without any optional argument, this method acquires the lock unconditionally, if necessary waiting until it is released by another thread (only one thread at a time can acquire a lock — that’s their reason for existence). If the integer waitflag argument is present, the action dep... | python.library._thread#_thread.lock.acquire |
lock.locked()
Return the status of the lock: True if it has been acquired by some thread, False if not. | python.library._thread#_thread.lock.locked |
lock.release()
Releases the lock. The lock must have been acquired earlier, but not necessarily by the same thread. | python.library._thread#_thread.lock.release |
_thread.LockType
This is the type of lock objects. | python.library._thread#_thread.LockType |
_thread.stack_size([size])
Return the thread stack size used when creating new threads. The optional size argument specifies the stack size to be used for subsequently created threads, and must be 0 (use platform or configured default) or a positive integer value of at least 32,768 (32 KiB). If size is not specified,... | python.library._thread#_thread.stack_size |
_thread.start_new_thread(function, args[, kwargs])
Start a new thread and return its identifier. The thread executes the function function with the argument list args (which must be a tuple). The optional kwargs argument specifies a dictionary of keyword arguments. When the function returns, the thread silently exits... | python.library._thread#_thread.start_new_thread |
_thread.TIMEOUT_MAX
The maximum value allowed for the timeout parameter of Lock.acquire(). Specifying a timeout greater than this value will raise an OverflowError. New in version 3.2. | python.library._thread#_thread.TIMEOUT_MAX |
__debug__
This constant is true if Python was not started with an -O option. See also the assert statement. | python.library.constants#__debug__ |
__future__ — Future statement definitions Source code: Lib/__future__.py __future__ is a real module, and serves three purposes: To avoid confusing existing tools that analyze import statements and expect to find the modules they’re importing. To ensure that future statements run under releases prior to 2.1 at least y... | python.library.__future__ |
__import__(name, globals=None, locals=None, fromlist=(), level=0)
Note This is an advanced function that is not needed in everyday Python programming, unlike importlib.import_module(). This function is invoked by the import statement. It can be replaced (by importing the builtins module and assigning to builtins.__... | python.library.functions#__import__ |
__main__ — Top-level script environment '__main__' is the name of the scope in which top-level code executes. A module’s __name__ is set equal to '__main__' when read from standard input, a script, or from an interactive prompt. A module can discover whether or not it is running in the main scope by checking its own __... | python.library.__main__ |
matplotlib._api Helper functions for managing the Matplotlib API. This documentation is only relevant for Matplotlib developers, not for users. Warning This module and its submodules are for internal use only. Do not use them in your own code. We may change the API at any time with no warning. matplotlib._api.cachi... | matplotlib._api_api |
matplotlib._api.caching_module_getattr(cls)[source]
Helper decorator for implementing module-level __getattr__ as a class. This decorator must be used at the module toplevel as follows: @caching_module_getattr
class __getattr__: # The class *must* be named ``__getattr__``.
@property # Only properties are taken ... | matplotlib._api_api#matplotlib._api.caching_module_getattr |
matplotlib._api.check_getitem(_mapping, **kwargs)[source]
kwargs must consist of a single key, value pair. If key is in _mapping, return _mapping[value]; else, raise an appropriate ValueError. Examples >>> _api.check_getitem({"foo": "bar"}, arg=arg) | matplotlib._api_api#matplotlib._api.check_getitem |
matplotlib._api.check_in_list(_values, *, _print_supported_values=True, **kwargs)[source]
For each key, value pair in kwargs, check that value is in _values. Parameters
_valuesiterable
Sequence of values to check on.
_print_supported_valuesbool, default: True
Whether to print _values when raising ValueError... | matplotlib._api_api#matplotlib._api.check_in_list |
matplotlib._api.check_isinstance(_types, **kwargs)[source]
For each key, value pair in kwargs, check that value is an instance of one of _types; if not, raise an appropriate TypeError. As a special case, a None entry in _types is treated as NoneType. Examples >>> _api.check_isinstance((SomeClass, None), arg=arg) | matplotlib._api_api#matplotlib._api.check_isinstance |
matplotlib._api.check_shape(_shape, **kwargs)[source]
For each key, value pair in kwargs, check that value has the shape _shape, if not, raise an appropriate ValueError. None in the shape is treated as a "free" size that can have any length. e.g. (None, 2) -> (N, 2) The values checked must be numpy arrays. Examples T... | matplotlib._api_api#matplotlib._api.check_shape |
classmatplotlib._api.classproperty(fget, fset=None, fdel=None, doc=None)[source]
Bases: object Like property, but also triggers on access via the class, and it is the class that's passed as argument. Examples class C:
@classproperty
def foo(cls):
return cls.__name__
assert C.foo == "C"
propertyfge... | matplotlib._api_api#matplotlib._api.classproperty |
matplotlib._api.deprecation.delete_parameter(since, name, func=None, **kwargs)[source]
Decorator indicating that parameter name of func is being deprecated. The actual implementation of func should keep the name parameter in its signature, or accept a **kwargs argument (through which name would be passed). Parameters... | matplotlib._api_api#matplotlib._api.deprecation.delete_parameter |
matplotlib._api.deprecation.deprecate_method_override(method, obj, *, allow_empty=False, **kwargs)[source]
Return obj.method with a deprecation if it was overridden, else None. Parameters
method
An unbound method, i.e. an expression of the form Class.method_name. Remember that within the body of a method, one can... | matplotlib._api_api#matplotlib._api.deprecation.deprecate_method_override |
classmatplotlib._api.deprecation.deprecate_privatize_attribute(*args, **kwargs)[source]
Bases: object Helper to deprecate public access to an attribute (or method). This helper should only be used at class scope, as follows: class Foo:
attr = _deprecate_privatize_attribute(*args, **kwargs)
where all parameters a... | matplotlib._api_api#matplotlib._api.deprecation.deprecate_privatize_attribute |
matplotlib._api.deprecation.deprecated(since, *, message='', name='', alternative='', pending=False, obj_type=None, addendum='', removal='')[source]
Decorator to mark a function, a class, or a property as deprecated. When deprecating a classmethod, a staticmethod, or a property, the @deprecated decorator should go un... | matplotlib._api_api#matplotlib._api.deprecation.deprecated |
matplotlib._api.deprecation.make_keyword_only(since, name, func=None)[source]
Decorator indicating that passing parameter name (or any of the following ones) positionally to func is being deprecated. When used on a method that has a pyplot wrapper, this should be the outermost decorator, so that boilerplate.py can ac... | matplotlib._api_api#matplotlib._api.deprecation.make_keyword_only |
exceptionmatplotlib._api.deprecation.MatplotlibDeprecationWarning[source]
Bases: DeprecationWarning A class for issuing deprecation warnings for Matplotlib users. | matplotlib._api_api#matplotlib._api.deprecation.MatplotlibDeprecationWarning |
matplotlib._api.deprecation.mplDeprecation[source]
alias of matplotlib._api.deprecation.MatplotlibDeprecationWarning | matplotlib._api_api#matplotlib._api.deprecation.mplDeprecation |
matplotlib._api.deprecation.rename_parameter(since, old, new, func=None)[source]
Decorator indicating that parameter old of func is renamed to new. The actual implementation of func should use new, not old. If old is passed to func, a DeprecationWarning is emitted, and its value is used, even if new is also passed by... | matplotlib._api_api#matplotlib._api.deprecation.rename_parameter |
matplotlib._api.deprecation.suppress_matplotlib_deprecation_warning() | matplotlib._api_api#matplotlib._api.deprecation.suppress_matplotlib_deprecation_warning |
matplotlib._api.deprecation.warn_deprecated(since, *, message='', name='', alternative='', pending=False, obj_type='', addendum='', removal='')[source]
Display a standardized deprecation. Parameters
sincestr
The release at which this API became deprecated.
messagestr, optional
Override the default deprecati... | matplotlib._api_api#matplotlib._api.deprecation.warn_deprecated |
matplotlib._api.select_matching_signature(funcs, *args, **kwargs)[source]
Select and call the function that accepts *args, **kwargs. funcs is a list of functions which should not raise any exception (other than TypeError if the arguments passed do not match their signature). select_matching_signature tries to call ea... | matplotlib._api_api#matplotlib._api.select_matching_signature |
matplotlib._api.warn_external(message, category=None)[source]
warnings.warn wrapper that sets stacklevel to "outside Matplotlib". The original emitter of the warning can be obtained by patching this function back to warnings.warn, i.e. _api.warn_external =
warnings.warn (or functools.partial(warnings.warn, stacklevel... | matplotlib._api_api#matplotlib._api.warn_external |
matplotlib._enums Enums representing sets of strings that Matplotlib uses as input parameters. Matplotlib often uses simple data types like strings or tuples to define a concept; e.g. the line capstyle can be specified as one of 'butt', 'round', or 'projecting'. The classes in this module are used internally and serve ... | matplotlib._enums_api |
classmatplotlib._enums.CapStyle(value)[source]
Define how the two endpoints (caps) of an unclosed line are drawn. How to draw the start and end points of lines that represent a closed curve (i.e. that end in a CLOSEPOLY) is controlled by the line's JoinStyle. For all other lines, how the start and end points are draw... | matplotlib._enums_api#matplotlib._enums.CapStyle |
staticdemo()[source]
Demonstrate how each CapStyle looks for a thick line segment. | matplotlib._enums_api#matplotlib._enums.CapStyle.demo |
classmatplotlib._enums.JoinStyle(value)[source]
Define how the connection between two line segments is drawn. For a visual impression of each JoinStyle, view these docs online, or run JoinStyle.demo. Lines in Matplotlib are typically defined by a 1D Path and a finite linewidth, where the underlying 1D Path represents... | matplotlib._enums_api#matplotlib._enums.JoinStyle |
staticdemo()[source]
Demonstrate how each JoinStyle looks for various join angles. | matplotlib._enums_api#matplotlib._enums.JoinStyle.demo |
matplotlib.afm A python interface to Adobe Font Metrics Files. Although a number of other Python implementations exist, and may be more complete than this, it was decided not to go with them because they were either: copyrighted or used a non-BSD compatible license had too many dependencies and a free standing lib was... | matplotlib.afm_api |
classmatplotlib.afm.AFM(fh)[source]
Bases: object Parse the AFM file in file object fh. propertyfamily_name
The font family name, e.g., 'Times'.
get_angle()[source]
Return the fontangle as float.
get_bbox_char(c, isord=False)[source]
get_capheight()[source]
Return the cap height as float.
get_... | matplotlib.afm_api#matplotlib.afm.AFM |
get_angle()[source]
Return the fontangle as float. | matplotlib.afm_api#matplotlib.afm.AFM.get_angle |
get_bbox_char(c, isord=False)[source] | matplotlib.afm_api#matplotlib.afm.AFM.get_bbox_char |
get_capheight()[source]
Return the cap height as float. | matplotlib.afm_api#matplotlib.afm.AFM.get_capheight |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.