@@ -534,7 +534,7 @@ bool loglog(const VectorY &y, const std::string &s = "",
534
534
const std::map<std::string, std::string> &keywords = {}) {
535
535
std::vector<std::size_t > x (y.size ());
536
536
for (std::size_t i = 0 ; i < x.size (); ++i)
537
- x.at (i) = i + 1 ; // in loglog scale the values shouldn't be zero
537
+ x.at (i) = i;
538
538
539
539
return loglog (x, y, s, keywords);
540
540
}
@@ -544,7 +544,7 @@ bool loglog(const VectorY &y,
544
544
const std::map<std::string, std::string> &keywords) {
545
545
std::vector<std::size_t > x (y.size ());
546
546
for (std::size_t i = 0 ; i < x.size (); ++i)
547
- x.at (i) = i + 1 ; // in loglog scale the values shouldn't be zero
547
+ x.at (i) = i;
548
548
549
549
return loglog (x, y, " " , keywords);
550
550
}
@@ -568,7 +568,7 @@ bool semilogx(const VectorY &y, const std::string &s = "",
568
568
const std::map<std::string, std::string> &keywords = {}) {
569
569
std::vector<std::size_t > x (y.size ());
570
570
for (std::size_t i = 0 ; i < x.size (); ++i)
571
- x.at (i) = i + 1 ; // in semilogx scale the values shouldn't be zero
571
+ x.at (i) = i;
572
572
573
573
return semilogx (x, y, s, keywords);
574
574
}
@@ -578,7 +578,7 @@ bool semilogx(const VectorY &y,
578
578
const std::map<std::string, std::string> &keywords) {
579
579
std::vector<std::size_t > x (y.size ());
580
580
for (std::size_t i = 0 ; i < x.size (); ++i)
581
- x.at (i) = i + 1 ; // in semilogx scale the values shouldn't be zero
581
+ x.at (i) = i;
582
582
583
583
return semilogx (x, y, " " , keywords);
584
584
}
@@ -602,7 +602,7 @@ bool semilogy(const VectorY &y, const std::string &s = "",
602
602
const std::map<std::string, std::string> &keywords = {}) {
603
603
std::vector<std::size_t > x (y.size ());
604
604
for (std::size_t i = 0 ; i < x.size (); ++i)
605
- x.at (i) = i + 1 ; // in semilogx scale the values shouldn't be zero
605
+ x.at (i) = i;
606
606
607
607
return semilogy (x, y, s, keywords);
608
608
}
@@ -612,7 +612,7 @@ bool semilogy(const VectorY &y,
612
612
const std::map<std::string, std::string> &keywords) {
613
613
std::vector<std::size_t > x (y.size ());
614
614
for (std::size_t i = 0 ; i < x.size (); ++i)
615
- x.at (i) = i + 1 ; // in semilogx scale the values shouldn't be zero
615
+ x.at (i) = i;
616
616
617
617
return semilogy (x, y, " " , keywords);
618
618
}
0 commit comments