@@ -173,16 +173,16 @@ object PlotTesting {
173
173
*/
174
174
def longForm (): Plot = {
175
175
val font = new Renderer .FontData (" Ariel" , Renderer .FontStyle .Plain )
176
- val xAxis1 = new NumericAxis (" x1 " , None , None , None , Axis .TickStyle .Both , Some (Axis .LabelSettings (90 , font, numberFormat)),
176
+ val xAxis1 = new NumericAxis (None , None , None , Axis .TickStyle .Both , Some (Axis .LabelSettings (90 , font, numberFormat)),
177
177
Some (Axis .NameSettings (" X1" , font)))
178
- val xAxis2 = new NumericAxis (" x2 " , None , None , None , Axis .TickStyle .Both , Some (Axis .LabelSettings (90 , font, numberFormat)),
178
+ val xAxis2 = new NumericAxis (None , None , None , Axis .TickStyle .Both , Some (Axis .LabelSettings (90 , font, numberFormat)),
179
179
Some (Axis .NameSettings (" X2" , font)))
180
- val xAxisCat = new CategoryAxis (" xcat " , Axis .TickStyle .Both , 0 , font, Some (Axis .NameSettings (" Categories" , font)), Axis .DisplaySide .Max )
181
- val yAxis1 = new NumericAxis (" y1 " , None , None , None , Axis .TickStyle .Both , Some (Axis .LabelSettings (0 , font, numberFormat)),
180
+ val xAxisCat = new CategoryAxis (Axis .TickStyle .Both , 0 , font, Some (Axis .NameSettings (" Categories" , font)), Axis .DisplaySide .Max )
181
+ val yAxis1 = new NumericAxis (None , None , None , Axis .TickStyle .Both , Some (Axis .LabelSettings (0 , font, numberFormat)),
182
182
Some (Axis .NameSettings (" Y1" , font)))
183
- val yAxis2 = new NumericAxis (" y2 " , None , None , None , Axis .TickStyle .Both , Some (Axis .LabelSettings (0 , font, " %1.0f" )),
183
+ val yAxis2 = new NumericAxis (None , None , None , Axis .TickStyle .Both , Some (Axis .LabelSettings (0 , font, " %1.0f" )),
184
184
Some (Axis .NameSettings (" Y2" , font)))
185
- val yAxis3 = new NumericAxis (" y3 " , None , None , None , Axis .TickStyle .Both , Some (Axis .LabelSettings (0 , font, " %1.0f" )),
185
+ val yAxis3 = new NumericAxis (None , None , None , Axis .TickStyle .Both , Some (Axis .LabelSettings (0 , font, " %1.0f" )),
186
186
Some (Axis .NameSettings (" Y3" , font)), Axis .DisplaySide .Max )
187
187
188
188
// Main Scatter plot
@@ -376,11 +376,11 @@ object PlotTesting {
376
376
)
377
377
}
378
378
val font = Renderer .FontData (" Ariel" , Renderer .FontStyle .Plain )
379
- val photonCountAxis = NumericAxis (" Count " , None , None , None , Axis .TickStyle .Both ,
379
+ val photonCountAxis = NumericAxis (None , None , None , Axis .TickStyle .Both ,
380
380
Some (Axis .LabelSettings (0.0 , font, " %1.1f" )), Some (Axis .NameSettings (" Photon Count" , font)), Axis .DisplaySide .Max )
381
- val yAxes = plotStyles.zipWithIndex.map { case (_, i) => NumericAxis (" Y " + i, None , None , None , Axis .TickStyle .Both ,
381
+ val yAxes = plotStyles.zipWithIndex.map { case (_, i) => NumericAxis (None , None , None , Axis .TickStyle .Both ,
382
382
Some (Axis .LabelSettings (0.0 , font, " %1.1f" )), Some (Axis .NameSettings (" Azimuthal Position" , font)), Axis .DisplaySide .Min ) }
383
- val xAxis = NumericAxis (" X " , None , None , None , Axis .TickStyle .Both ,
383
+ val xAxis = NumericAxis (None , None , None , Axis .TickStyle .Both ,
384
384
Some (Axis .LabelSettings (90.0 , font, " %1.1f" )), Some (Axis .NameSettings (" Radial Position" , font)), Axis .DisplaySide .Min )
385
385
val grid = PlotGrid (plotStyles.zipWithIndex.map { case ((cart, scans), i) =>
386
386
Seq (Seq (Plot2D (cart, " X" , " Y" + i)), scans.map(scan => Plot2D (scan, " X" , " Count" ))) },
@@ -399,8 +399,8 @@ object PlotTesting {
399
399
val font = new Renderer .FontData (" Ariel" , Renderer .FontStyle .Plain )
400
400
val style = ScatterStyle (x, y)
401
401
val p2d = Plot2D (style, " x" , " y" )
402
- val xAxis = NumericAxis (" x " , tickLabelInfo = Some (Axis .LabelSettings (90 , font, numberFormat)), name = Some (Axis .NameSettings (" X" , font)))
403
- val yAxis = NumericAxis (" y " , tickLabelInfo = Some (Axis .LabelSettings (0 , font, numberFormat)), name = Some (Axis .NameSettings (" Y" , font)))
402
+ val xAxis = NumericAxis (tickLabelInfo = Some (Axis .LabelSettings (90 , font, numberFormat)), name = Some (Axis .NameSettings (" X" , font)))
403
+ val yAxis = NumericAxis (tickLabelInfo = Some (Axis .LabelSettings (0 , font, numberFormat)), name = Some (Axis .NameSettings (" Y" , font)))
404
404
val grid = PlotGrid (Seq (Seq (Seq (p2d))), Map (" x" -> xAxis, " y" -> yAxis), Seq (1.0 ), Seq (1.0 ))
405
405
Plot (grids = Map (" main" -> Plot .GridData (grid, Bounds (0.0 , 0.05 , 0.95 , 0.95 ))))
406
406
}
@@ -424,7 +424,7 @@ object PlotTesting {
424
424
val ys = xs.map(x => math.sqrt(x))
425
425
val counts = (0 to 9 ).map(i => 1.0 - i* i/ 100.0 )
426
426
Plot .simple(ScatterStyle (xs, xs))
427
- .withAxis(" y2" , NumericAxis .defaultVerticalAxis(" y2 " , " Y2" ).min(0.0 ).maxSide)
427
+ .withAxis(" y2" , NumericAxis .defaultVerticalAxis(" Y2" ).min(0.0 ).maxSide)
428
428
.updatedAxis[NumericAxis ](" x" , _.updatedName(" X" ))
429
429
.updatedAxis[NumericAxis ](" x" , _.updatedName(" Y" ))
430
430
.updatedPlotGrid(_.withRow().withColumn().withRow(0 ).withColumn(0 )
0 commit comments