Skip to main content

Standard functions used for the QDLED Project at ETH.

Project description

READER:

Function which reads out different files. 

Arguments

Takes everything in **kwargs.
  • 'filename': Filename + Path. Necessary. [String or Chararray]
  • 'Delimiter': Input for the delimitation. e.g. ', ', '\t ', or other types. Standard is ' '. [Single Character]
  • 'allowedChars': Set the allowed characters for the first character in a line. Can be used if line begins with a prefix or with a number. Standard are the numbers 0-10. [List]
  • 'skipLines': Number of lines to be skipped in the file. Useful if the text document starts with lines containing allowed characters but no data. [int]
  • 'flatten': Check if the resulting array has not the same number of arguments on each line. Select length of line which should pass (all other won't). [int]
  • 'datatype': datatype of read file. 'complex', 'float'

Output

File is read and returned as an array of values.
First index is line number and second index is the position on line.

COLORS

Function for colors

Arguments

Takes Literals as arguments
  • N: Number of cmap points
  • cmap_name: Name of the colormap

Output

Returns colormaps in array of RGB colors. First index is the color, and the second index selects the spectral component in R, G, B, alpha

Figurefunctions

Functions to format the figure.

Arguments

Takes literals as arguments
  • ax: Axis of figure to be formated. Necessary
  • projection: '2d', '3d' or 'contour' plot. Standard: '2d' [string or chararray]
  • labels: Dictionary with labels. keys of the dictionary: 'xlabel', 'ylabel', 'zlabel'. If one of those labels is not set, will be set to empty. Standard: {'xlabel': '', 'ylabel': '', 'zlabel': ''} [Dict]
  • fontsize: Fontsize of the axis labels. Standard: 14 [int]
  • ticksize: Fontsize of the tick labels. Standard: 14 [int]
  • ticksepeartionx: Set the spacing between the x-ticks. e.g. 2 will select every second tick to be labeled. Standard: 2 [int]
  • ticksepeartiony: Set the spacing between the y-ticks. e.g. 2 will select every second tick to be labeled. Standard: 2 [int]
  • tickoffsetx: offsets the tick-selection in x-direction. Standard: 0 [int, in 0 to tickseparationx]
  • tickoffsety: offsets the tick-selection in y-direction. Standard: 0 [int, in 0 to tickseparationy]

Output

Axis is processed and returned. 

Plotter

Function for Plotting. 

Arguments

Takes kwargs as arguments
  • 'SweepType': '1D': Only one x and y, 'Multiple': Overlay multiple x and y tuples, '2D': Plots a contourf plot of the x, y and z
  • 'scale': 'lin' or 'log'
  • 'Constrain': Argument to constrain the axes, dictionary.
    • 'Bool': False or True: disables or enables the function
    • 'xlim_min/max': Min/max of x-axis. [int, float]
    • 'ylim_min/max': Min/max of y-axis. [int, float]
  • ticksepeartionx: Set the spacing between the x-ticks. e.g. 2 will select every second tick to be labeled. Standard: 2 [int]
  • ticksepeartiony: Set the spacing between the y-ticks. e.g. 2 will select every second tick to be labeled. Standard: 2 [int]
  • tickoffsetx: offsets the tick-selection in x-direction. Standard: 0 [int, in 0 to tickseparationx]
  • tickoffsety: offsets the tick-selection in y-direction. Standard: 0 [int, in 0 to tickseparationy]
  • 'legend': Bool, shows legend
  • 'show': Bool, Show image or not. Std is show.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

fGQLED-0.17.1-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file fGQLED-0.17.1-py3-none-any.whl.

File metadata

  • Download URL: fGQLED-0.17.1-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for fGQLED-0.17.1-py3-none-any.whl
Algorithm Hash digest
SHA256 481f1ac6554061b5416d6d52b109c7db9d81ad720d969b9b69b6582430e3cc12
MD5 b0344ecc004da366337f2eacd436b732
BLAKE2b-256 1d64539ffdd677c1aa5e6d70cf82997a8fdfc895d5cee1af2ce82f1b391e05fc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page