Skip to content

Commit

Permalink
Merge pull request #5556 from Patowhiz/sdgPlot
Browse files Browse the repository at this point in the history
Plot Options Subdialog.  X-Axis and Y-Axis unshown options
  • Loading branch information
maxwellfundi authored Oct 26, 2019
2 parents ff5465d + c120b14 commit 7507786
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
10 changes: 6 additions & 4 deletions instat/sdgPlots.vb
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ Public Class sdgPlots
Dim clsCoordEqualParam As New RParameter

ucrBaseSubdialog.iHelpTopicID = 136
'facets tab
'facets tab
'Links the factor receivers, used for creating facets, with the selector. The variables need to be factors.
ucr1stFactorReceiver.Selector = ucrFacetSelector
ucr1stFactorReceiver.SetIncludedDataTypes({"factor"})
Expand Down Expand Up @@ -287,13 +287,13 @@ Public Class sdgPlots


ucrChkXaxisAngle.SetText("X axis Tick Labels Angle")
ucrChkXaxisAngle.AddToLinkedControls(ucrNudXAngle, {True}, bNewLinkedAddRemoveParameter:=True, bNewLinkedHideIfParameterMissing:=True, bNewLinkedChangeToDefaultState:=True, objNewDefaultState:=10, bNewLinkedChangeParameterValue:=True)
ucrChkXaxisAngle.AddToLinkedControls(ucrNudXAngle, {True}, bNewLinkedAddRemoveParameter:=True, bNewLinkedHideIfParameterMissing:=True, bNewLinkedChangeToDefaultState:=True, objNewDefaultState:=10, bNewLinkedChangeParameterValue:=True)
ucrNudXAngle.SetParameter(New RParameter("angle"))
ucrChkXaxisAngle.AddParameterPresentCondition(True, "angle")
ucrChkXaxisAngle.AddParameterPresentCondition(False, "angle", False)

ucrChkXaxisSize.SetText("X axis Label Size")
ucrChkXaxisSize.AddToLinkedControls(ucrNudXSize, {True}, bNewLinkedAddRemoveParameter:=True, bNewLinkedHideIfParameterMissing:=True, bNewLinkedChangeToDefaultState:=True, objNewDefaultState:=10, bNewLinkedChangeParameterValue:=True)
ucrChkXaxisSize.AddToLinkedControls(ucrNudXSize, {True}, bNewLinkedAddRemoveParameter:=True, bNewLinkedHideIfParameterMissing:=True, bNewLinkedChangeToDefaultState:=True, objNewDefaultState:=10, bNewLinkedChangeParameterValue:=True)
ucrNudXSize.SetParameter(New RParameter("size"))
ucrNudXSize.DecimalPlaces = 1
ucrNudXSize.Increment = 0.1
Expand Down Expand Up @@ -349,7 +349,9 @@ Public Class sdgPlots
clsThemeFunction = clsNewThemeFunction
clsCoordPolarFunc = clsNewCoordPolarFunction
clsCoordPolarStartOperator = clsNewCoordPolarStartOperator
clsCoordPolarFunc.AddParameter("start", clsROperatorParameter:=clsCoordPolarStartOperator, iPosition:=1)
If Not IsNothing(clsCoordPolarStartOperator) Then
clsCoordPolarFunc.AddParameter("start", clsROperatorParameter:=clsCoordPolarStartOperator, iPosition:=1)
End If
dctThemeFunctions = dctNewThemeFunctions
dctThemeFunctions.TryGetValue("axis.text.x", clsXElementText)
dctThemeFunctions.TryGetValue("axis.title.x", clsXElementTitle)
Expand Down
6 changes: 3 additions & 3 deletions instat/ucrAxes.vb
Original file line number Diff line number Diff line change
Expand Up @@ -341,15 +341,15 @@ Public Class ucrAxes
grpMajorBreaks.Hide()
grpMinorBreaks.Hide()
grpScales.Hide()
If strAxisType = "Continuous" Then
If strAxisType.ToLower = "continuous" Then
'show continous panels
'TODO put controls in panels so group boxes can be used for multiple cases
grpMajorBreaks.Show()
grpMinorBreaks.Show()
grpScales.Show()
ElseIf strAxisType = "Discrete" Then
ElseIf strAxisType.ToLower = "discrete" Then
'show discrete panels
ElseIf strAxisType = "Date" Then
ElseIf strAxisType.ToLower = "date" Then
'show date panels
End If
End Sub
Expand Down

0 comments on commit 7507786

Please sign in to comment.