@@ -113,7 +113,7 @@ Plot::Plot(const Data::DataTable &dataTable,
113113 if (gotSpecLayout) {
114114 calcDimensionAxises (dataTable);
115115 normalizeColors ();
116- if (options->shapeType != ShapeType::circle)
116+ if (options->geometry != ShapeType::circle)
117117 normalizeSizes ();
118118 calcAxises (dataTable);
119119 }
@@ -201,7 +201,7 @@ Plot::sortedBuckets(const Buckets &buckets, bool main)
201201 }
202202 }
203203
204- if (main && options->sorted ) {
204+ if (main && options->sort == Sort::byValue ) {
205205 std::sort (sorted.begin (),
206206 sorted.end (),
207207 [=](const std::pair<uint64_t , double > &a,
@@ -315,7 +315,7 @@ Axis Plot::calcAxis(ChannelId type, const Data::DataTable &dataTable)
315315 : scale.title ;
316316
317317 if (type == options->subAxisType ()
318- && options->alignType == Base::Align::Type::stretch) {
318+ && options->align == Base::Align::Type::stretch) {
319319 return {Math::Range<double >(0 , 100 ),
320320 title,
321321 " %" ,
@@ -397,12 +397,12 @@ void Plot::calcDimensionAxis(ChannelId type,
397397
398398void Plot::addAlignment ()
399399{
400- if (static_cast <bool >(options->splitted )) return ;
400+ if (static_cast <bool >(options->split )) return ;
401401
402402 auto &axis = axises.at (options->subAxisType ());
403403 if (axis.range .getMin () < 0 ) return ;
404404
405- if (options->alignType == Base::Align::Type::none) return ;
405+ if (options->align == Base::Align::Type::none) return ;
406406
407407 for (auto &bucketIt : subBuckets) {
408408 Math::Range<double > range;
@@ -414,7 +414,7 @@ void Plot::addAlignment()
414414 range.include (size);
415415 }
416416
417- Base::Align aligner (options->alignType ,
417+ Base::Align aligner (options->align ,
418418 Math::Range (0.0 , 1.0 ));
419419 auto transform = aligner.getAligned (range) / range;
420420
@@ -431,10 +431,10 @@ void Plot::addAlignment()
431431
432432void Plot::addSeparation ()
433433{
434- if (static_cast <bool >(options->splitted )) {
435- auto align = options->alignType == Base::Align::Type::none
434+ if (static_cast <bool >(options->split )) {
435+ auto align = options->align == Base::Align::Type::none
436436 ? Base::Align::Type::min
437- : options->alignType ;
437+ : options->align ;
438438
439439 std::vector<Math::Range<double >> ranges (mainBuckets.size (),
440440 Math::Range (0.0 , 0.0 ));
@@ -481,8 +481,8 @@ void Plot::addSeparation()
481481
482482void Plot::normalizeSizes ()
483483{
484- if (options->shapeType == ShapeType::circle
485- || options->shapeType == ShapeType::line) {
484+ if (options->geometry == ShapeType::circle
485+ || options->geometry == ShapeType::line) {
486486 Math::Range<double > size;
487487
488488 for (auto &marker : markers)
0 commit comments