Skip to content

Commit

Permalink
Update Python library with missing constants for Qt Charts
Browse files Browse the repository at this point in the history
Documented in the wiki. Fixes #4009
TODO: annotate is disabled and it needs work to support the different
types.
  • Loading branch information
amtriathlon committed Aug 23, 2022
1 parent 6914832 commit 1e82202
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Resources/python/library.py
Expand Up @@ -39,7 +39,7 @@ def __GCsetCurve(name="",x=list(),y=list(),f=list(),xaxis="x",yaxis="y", labels=
GC.setCurve(name,list(x),list(y),list(f),xaxis,yaxis,list(labels),list(colors),line,symbol,size,color,opacity,opengl,legend,datalabels,fill)

# setting the axis
def __GCconfigAxis(name,visible=True,align=-1,min=-1,max=-1,type=-1,labelcolor="",color="",log=False,categories=list()):
def __GCconfigAxis(name,visible=True,align=-1,min=-1,max=-1,type=0,labelcolor="",color="",log=False,categories=list()):
if (name == ""):
raise ValueError("axis 'name' must be passed.")
GC.configAxis(name, visible, align, min, max, type, labelcolor, color, log, categories)
Expand Down Expand Up @@ -67,6 +67,11 @@ def __GCannotate(type="label", series="", label="", value=0):
GC_LINE_DOT=3
GC_LINE_DASHDOT=4

# symbol type
GC_SYMBOL_NONE=0
GC_SYMBOL_CIRCLE=1
GC_SYMBOL_RECTANGLE=2

# constants
GC_ALIGN_BOTTOM=0
GC_ALIGN_LEFT=1
Expand Down

0 comments on commit 1e82202

Please sign in to comment.