gr.pygr Reference¶
Python GR module
Exported Classes:
- class gr.pygr.Coords2D(x, y, updatex_callback=None, updatey_callback=None)[source]¶
-
- property x¶
Get the current list/ndarray of x values.
- property y¶
Get the current list/ndarray of y values.
- class gr.pygr.Coords2DList(*args, **kwargs)[source]¶
-
- pop(*args, **kwargs)[source]¶
Remove and return item at index (default last).
Raises IndexError if list is empty or index is out of range.
- class gr.pygr.DeviceCoordConverter(width, height, sizex=None, sizey=None, window=None, scale=None)[source]¶
- class gr.pygr.ErrorBar(x, y, dneg, dpos=None, direction=1, linetype=1, markertype=-32, linecolor=1, markercolor=1, linewidth=1)[source]¶
- HORIZONTAL = 0¶
- VERTICAL = 1¶
- property direction¶
Get ErrorBars direction.
- property dneg¶
Get the current ndarray of absolute deviation in negative direction.
- property dpos¶
Get the current ndarray of absolute deviation in positive direction.
- property x¶
Get the current list/ndarray of x values.
- property y¶
Get the current list/ndarray of y values.
- class gr.pygr.Plot(viewport=(0.1, 0.95, 0.1, 0.95))[source]¶
-
- property autoscale¶
- property offsetXLabel¶
get NDC Y offset for xlabel
- property offsetYLabel¶
get NDC X offset for ylabel
- property sizex¶
…
- property sizey¶
…
- property subTitle¶
get plot subtitle
- property title¶
get plot title
- property viewport¶
get current viewport
- property xlabel¶
get label for x axis
- property ylabel¶
get label for y axis
- class gr.pygr.PlotAxes(viewport, xtick=None, ytick=None, majorx=None, majory=None, drawX=True, drawY=True, ticksize=0.01)[source]¶
- COORDLIST_CLASS¶
alias of
Coords2DList
- COUNT = 0¶
- OPTION = {1: 1, 2: 2}¶
- SCALE_X = 1¶
- SCALE_Y = 2¶
- property autoscale¶
- property backgroundColor¶
- property majorx¶
get current user-defined number of minor tick intervals between major x tick marks
- property majory¶
get current user-defined number of minor tick intervals between major y tick marks
- property scale¶
- property ticksize¶
get current ticksize setting specified in normalized device coordinate unit.
- property xtick¶
get current user-defined interval between minor x ticks
- property ytick¶
get current user-defined interval between minor y ticks
- class gr.pygr.PlotContour(x, y, z, h=None, majorh=0, nx=None, ny=None)[source]¶
-
- property h¶
Get the current list/ndarray of z values for the height.
- property majorh¶
Get the interval of labeled contour lines majorh. A value of 1 will label every line. A value of 2 every second line and so on. A value of 0 disables labeling
- class gr.pygr.PlotCurve(x, y, errBar1=None, errBar2=None, linetype=1, markertype=1, linecolor=None, markercolor=1, legend=None, linewidth=1)[source]¶
- COUNT = 0¶
- property errorBar1¶
Get current ErrorBar #1 instance.
- property errorBar2¶
Get current ErrorBar #2 instance.
- property legend¶
Get current text for a legend.
- class gr.pygr.PlotSurface(x, y, z, colormap=1, option=5, nx=None, ny=None)[source]¶
- property colormap¶
Get the current colormap.
- property option¶
Get current surface display option.
- class gr.pygr.Point(x, y)[source]¶
-
- property x¶
Get the current x value.
- property y¶
Get the current y value.
- class gr.pygr.RegionOfInterest(*args, **kwargs)[source]¶
- LEGEND = 1¶
- TEXT = 2¶
- property reference¶
Get the current reference.
- property regionType¶
Get the current regionType.
- property x¶
Get the current x values.
- property y¶
Get the current y values.
- class gr.pygr.Text(x, y, text, axes=None, charheight=0.027, charup=(0, 1), halign=1, valign=1, textcolor=1, font=None, precision=None, textpath=0, charexpan=1.0, hideviewport=True)[source]¶
- DEFAULT_CHARHEIGHT_FACTOR = 0.027¶
- property charexpan¶
Return the current character expansion factor (width to height ratio).
- property charheight¶
Return the current charheight factor.
- property charup¶
Return the current charup vector (ux, uy).
- property halign¶
Return the horizontal alignment.
- property hideviewport¶
Return the current hide outside viewport state.
- property text¶
Return the current text string.
- property textcolor¶
Return the color index for the text color.
- property textpath¶
Return the current text path (direction in which text will be drawn).
- property valign¶
Return the vertical alignment.