Set color axis labels to use Arial Bold font call tLabelStyle( "arialbd. Add a title to the color axis using 12 points Arial Bold Italic font call tTitle( "Color Legend Title Place Holder", "arialbi.ttf", 12) dim cAxis as CDColorAxisMBS = tColorAxis( 505, 40, CDXYChartMBS.kTopLeft, 400, CDXYChartMBS.kRight) Reporting a bug and having it closed with out a discussion is defeating. It’s at the point where I don’t even feel like reporting bugs helps anymore. It should be fixed in a reasonable amount of time once reported and verified. I don’t want to have to make a stink or lobby to get something fixed. Set the length to 400 pixels and the labels on the right side. Xojo doesn’t communicate well to let us know if something will be fixed soon or at all. Add a color axis (the legend) in which the top left corner is anchored at // (505, 40). Move the grid lines in front of the contour layer
Add a contour layer using the given data dim layer as CDContourLayerMBS = c.addContourLayer(dataX,dataY,dataZ) When auto-scaling, use tick spacing of 40 pixels as a guideline Set x-axis and y-axis labels to use Arial Bold font call c.tLabelStyle( "arialbd.ttf")Ĭall c.tLabelStyle( "arialbd.ttf") Set x-axis and y-axis title using 12 points Arial Bold Italic font call c.tTitle( "X-Axis Title Place Holder", "arialbi.ttf", 12)Ĭall c.tTitle( "Y-Axis Title Place Holder", "arialbi.ttf", 12) Use // semi-transparent black (80000000) dotted lines for both horizontal and // vertical grid lines call c.setPlotArea( 75, 40, 400, 400, - 1, - 1, - 1, c.dashLineColor( &h80000000, CDXYChartMBS.kDotLine), - 1) Set the plotarea at (75, 40) and of size 400 x 400 pixels. Add a title to the chart using 15 points Arial Bold Italic font call c.addTitle( "z = x * sin(y) + y * sin(x) ", "arialbi.ttf", 15)
Next next // Create a XYChart object of size 600 x 500 pixels dim c as new CDXYChartMBS( 600, 500) dim dataZ( 21* 21- 1) as double for yIndex as integer = 0 to UBound(datay)įor xIndex as integer = 0 to UBound(datay)ĭataZ(yIndex * 21 + xIndex) = x * sin(y) + y * sin(x) In this example, we will compute the values // using the formula z = x * sin(y) + y * sin(x).