我想避免使用every
命令,因为它只是丢弃那些可能非常重要的数据(比如尖峰)。我还想避免后缩小规模,因为这可能会导致图上文字的恶化......
是否有方法/选项强制gnuplot生成最大大小的文件(eps)?
答案 0 :(得分:0)
您需要对数据进行一些自适应压缩。没有真正了解它,那是相当艰难的。
var app = angular.module('app', ['ngRoute']);
app.config(function($routeProvider) {
$routeProvider
// Page routes
.when('/', { templateUrl : 'pages/home.html', controller : 'homeController' })
.when('/about', { templateUrl : 'pages/about.html', controller : 'aboutController' })
.when('/contact', { templateUrl : 'pages/contact.html', controller : 'contactController' })
.otherwise( {redirectTo:'/'} );
});
// create the controller and inject Angular's $scope
app.controller('mainController', function($scope, $location) {
$scope.nextPage = function() { $location.path('/about'); };
$scope.prevPage = function() { $location.path('/contact'); };
});
app.controller('homeController', function($scope, $location) {
$scope.$parent.nextPage = function() { $location.path('/about'); };
$scope.$parent.prevPage = function() { $location.path('/contact'); };
});
app.controller('aboutController', function($scope, $location) {
$scope.$parent.nextPage = function() { $location.path('/contact'); };
$scope.$parent.prevPage = function() { $location.path('/'); };
});
app.controller('contactController', function($scope, $location) {
$scope.$parent.nextPage = function() { $location.path('/'); };
$scope.$parent.prevPage = function() { $location.path('/about'); };
});
命令可以告诉您实际拥有多少数据点,然后您可以将stats
语句调整为合理的值。否则,您可以使用every
来获得预定义的(smooth
)数量的数据点,或者(如果您有一个合理的数据模型),您可以执行set sample
并简单地绘制拟合模型函数而不是数据集。
如果您特别希望在图中显示异常值,这可能会有所帮助:
fit
它绘制了数据集的拟合,以及偏离拟合的所有实际数据点超过阈值。